2007-10-10 Markus Deuling <deuling@de.ibm.com>
[external/binutils.git] / gdb / ChangeLog
1 2007-10-10  Markus Deuling  <deuling@de.ibm.com>
2
3         * xtensa-tdep.c (xtensa_register_type, xtensa_pseudo_register_read)
4         (xtensa_pseudo_register_write, xtensa_register_reggroup_p)
5         (xtensa_unwind_pc, xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6         (xtensa_dump_tdep): Replace current_gdbarch by gdbarch.
7         (xtensa_register_write_masked, xtensa_register_read_masked)
8         (xtensa_supply_gregset, xtensa_store_return_value)
9         (xtensa_extract_return_value): Use get_regcache_arch to get at the
10         current architecture by regcache.
11         (xtensa_frame_cache, call0_frame_get_reg_at_entry, call0_frame_cache)
12         (xtensa_frame_prev_register): Use get_frame_arch to get at the current
13         architecture by frame_info.
14
15 2007-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
16
17         * arm-tdep.c (struct arm_prologue_cache): Remove frameoffset.
18         (thumb_analyze_prologue): Move pv_area_store_would_trash call
19         out of loop.  Do not set cache->frameoffset.
20         (arm_scan_prologue): Use prologue-value mechanism.  Do not set
21         frameoffset.  Simplify framesize.
22         (arm_make_prologue_cache, arm_normal_frame_base): Do not use
23         frameoffset.
24         * arm-tdep.h (enum gdb_regnum): Add ARM_IP_REGNUM.
25
26 2007-10-10  Daniel Jacobowitz  <dan@codesourcery.com>
27
28         * target.c (update_current_target): Call setup_target_debug.
29         (push_target): Do not call it here.
30
31 2007-10-09  Michael Snyder  <msnyder@specifix.com>
32
33         * MAINTAINERS: Update my email address.
34
35 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
36
37         * xtensa-tdep.c: Replace following current-gdbarch based macros by
38         their expression:
39         (xtensa_pseudo_register_read)
40         (xtensa_pseudo_register_write): XTENSA_TARGET_FLAGS.
41         (ARG_NOF, ARG_1ST, xtensa_extract_return_value)
42         (xtensa_store_return_value, xtensa_push_dummy_call): CALL_ABI.
43         (xtensa_pseudo_register_read)
44         (xtensa_pseudo_register_write): ISA_USE_WINDOWED_REGISTERS.
45         (xtensa_breakpoint_from_pc): ISA_USE_DENSITY_INSTRUCTIONS.
46         (xtensa_register_type, xtensa_supply_gregset, xtensa_frame_cache)
47         (xtensa_frame_prev_register): NUM_AREGS.
48         (xtensa_pseudo_register_read, xtensa_pseudo_register_write,
49         (xtensa_supply_gregset, xtensa_frame_cache, xtensa_frame_prev_register,
50         (xtensa_extract_return_value, xtensa_store_return_value): WB_REGNUM.
51         (xtensa_supply_gregset, xtensa_frame_cache)
52         (xtensa_frame_prev_register): WS_REGNUM.
53         (xtensa_supply_gregset): LBEG_REGNUM, LEND_REGNUM, LCOUNT_REGNUM,
54         SAR_REGNUM, EXCCAUSE_REGNUM, EXCVADDR_REGNUM
55         (xtensa_register_name, xtensa_register_type, xtensa_reg_to_regnum)
56         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
57         (xtensa_register_reggroup_p): REGMAP.
58         (call0_track_op): LITBASE_REGNUM.
59         (xtensa_register_type, xtensa_reg_to_regnum, call0_frame_cache):A0_BASE
60         (xtensa_supply_gregset, call0_frame_get_reg_at_entry)
61         (xtensa_frame_prev_register, AREG_NUMBER)
62         (xtensa_register_type): AR_BASE.
63         (xtensa_pseudo_register_read, xtensa_pseudo_register_write): FP_ALIAS.
64         (AREG_NUMBER): AREGS_MASK, WB_MASK, A0_REGNUM.
65         (ARG_1ST, xtensa_pseudo_register_read, xtensa_pseudo_register_write)
66         (xtensa_frame_cache, xtensa_frame_prev_register)
67         (xtensa_extract_return_value, xtensa_store_return_value)
68         (xtensa_push_dummy_call, call0_frame_cache): A0_REGNUM.
69         (xtensa_register_type, xtensa_pseudo_register_read, xtensa_frame_cache)
70         (xtensa_pseudo_register_write, xtensa_unwind_dummy_id)
71         (xtensa_frame_prev_register, xtensa_push_dummy_call)
72         (call0_frame_cache): A1_REGNUM.
73         (xtensa_extract_return_value, xtensa_store_return_value): A2_REGNUM.
74         (xtensa_push_dummy_call): A4_REGNUM.
75         (ARGS_FIRST_REG): A6_REGNUM.
76         (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
77         (xtensa_frame_prev_register): A15_REGNUM.
78         * xtensa-tdep.h: Delete current_gdbarch based macros after replacing
79         them in the appropriate source file:
80         XTENSA_TARGET_FLAGS, SPILL_LOCATION, SPILL_SIZE, CALL_ABI, NUM_AREGS,
81         ISA_USE_WINDOWED_REGISTERS, ISA_USE_DENSITY_INSTRUCTIONS, WB_REGNUM,
82         ISA_USE_EXCEPTIONS, ISA_USE_EXT_L32R, DEBUG_DATA_VADDR_TRAP_COUNT,
83         DEBUG_INST_VADDR_TRAP_COUNT, ISA_MAX_INSN_SIZE, DEBUG_NUM_IBREAKS,
84         DEBUG_NUM_DBREAKS, WS_REGNUM, LBEG_REGNUM, LEND_REGNUM, SAR_REGNUM,
85         REGMAP, LITBASE_REGNUM, DEBUGCAUSE_REGNUM, EXCCAUSE_REGNUM, AR_BASE,
86         EXCVADDR_REGNUM, NUM_IBREAKS, REGMAP_BYTES, NUM_CONTEXTS, FP_ALIAS,
87         FP_LAYOUT, FP_LAYOUT_BYTES, GREGMAP, AREGS_MASK, WB_MASK, A0_REGNUM,
88         A1_REGNUM, A2_REGNUM, A3_REGNUM, A4_REGNUM, A5_REGNUM, A6_REGNUM,
89         A7_REGNUM, A8_REGNUM, A9_REGNUM, A10_REGNUM, A11_REGNUM, A12_REGNUM,
90         A13_REGNUM, A14_REGNUM, A15_REGNUM.
91
92 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
93
94         * h8300-tdep.c (h8300_frame_cache): Use get_frame_arch to get at
95         the current architecture by frame_info.
96         (h8300_frame_prev_register
97         (h8300_print_register): Replace current_gdbarch by gdbarch.
98         (h8300_print_registers_info, h8300_register_type)
99         (h8300_register_type): Likewise.
100
101 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
102
103         * i386-linux-nat.c (fetch_register): Use get_regcache_arch to get at
104         the current architecture by regcache.
105         (store_register, supply_gregset, fill_gregset, i386_linux_resume)
106         (i386_linux_fetch_inferior_registers)
107         (i386_linux_store_inferior_registers): Likewise.
108         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
109         * i386-nto-tdep.c (i386nto_supply_gregset): Likewise.
110         * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
111         * i386-tdep.c (i386_unwind_pc): Replace current_gdbarch by gdbarch.
112         (i386_extract_return_value, i386_store_return_value): Likewise.
113         * i386-tdep.c (i386_frame_prev_register): Use get_frame_arch to get at
114         the current architecture by frame_info.
115         (i386_sigtramp_frame_cache, i386_get_longjmp_target)
116         (i386_register_to_value, i386_value_to_register): Likewise.
117
118 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
119
120         * monitor.c (monitor_supply_register): Use get_regcache_arch to get at
121         the current architecture by regcache.
122         (monitor_store_register, monitor_store_registers): Likewise.
123
124 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
125
126         * dbug-rom.c (dbug_supply_register): Use get_regcache_arch to get at
127         the current architecture by regcache.
128
129 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
130
131         * arch-utils.c (legacy_return_value): Replace current_gdbarch by
132         gdbarch.
133
134 2007-10-09  Markus Deuling  <deuling@de.ibm.com>
135
136         * frame.c (frame_pc_unwind): Use get_frame_arch to get at the current
137         architecture by frame.
138         (frame_save_as_regcache, frame_register_unwind, get_prev_frame_1)
139         (inside_main_func, frame_sp_unwind): Likewise.
140
141 2007-10-09  Daniel Jacobowitz  <dan@codesourcery.com>
142
143         * solib-svr4.c (enable_break): Add the dynamic linker also if
144         auxv succeeds.
145
146 2007-10-09  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
147
148         * MAINTAINERS (Write After Approval): Add self.
149
150 2007-10-09  Pedro Alves  <pedro_alves@portugalmail.pt>
151
152         * stabsread.c (read_huge_number): Initialize local variable to 0.
153
154 2007-10-09  Pierre Muller  <muller@ics.u-strasbg.fr>
155
156         * p-lang.h (pascal_main_name): Add declaration.
157         * p-lang.c (GPC_P_INITIALIZE, GPC_MAIN_PROGRAM_NAME_1)
158         (GPC_MAIN_PROGRAM_NAME_2): New constants.
159         (pascal_main_name): New function.
160         * symtab.c: Include p-lang.h.
161         (find_main_name): Add call to pascal_main_name.
162         * Makefile.in (symtab.o): Add dependency on p-lang.h.
163
164 2007-10-09  Pedro Alves  <pedro_alves@portugalmail.pt>
165
166         * stabsread.c (read_huge_number): Fix handling of octal
167         representation when the bit width is known.
168         (read_range_type): Record unsigned integral types with their size,
169         when the type size is known.
170
171 2007-10-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
172
173         * MAINTAINERS (Write After Approval): Add self.
174
175 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
176
177         * breakpoint.c (print_one_breakpoint_location): ARI fix: 
178         Replace asprintf by xstrprintf.
179
180 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
181
182         * linux-fork.c: ARI fix: include "gdb_dirent.h" instead of <dirent.h>.
183         Makefile.in (linux-fork.o): Add gdb_dirent.h dependency. 
184
185 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
186
187         * linux-fork.c: Move "gdb_wait.h" include back to the position of
188         <sys/wait.h> include before last commit.
189
190 2007-10-08  Maciej W. Rozycki  <macro@mips.com>
191
192         * mips-tdep.c (mips32_next_pc): Fix a typo in BGTZL.
193
194 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
195
196         * aix-thread.c (supply_gprs64, supply_fprs, supply_sprs64)
197         (supply_sprs32, fetch_regs_user_thread, fetch_regs_kernel_thread)
198         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32)
199         (store_regs_user_thread, store_regs_kernel_thread): Use
200         get_regcache_arch or get_frame_arch to get at the current architecture
201         by regcache or by frame, respectively.
202
203 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
204
205         * sh64-tdep.c (sh64_push_dummy_call, sh64_register_type)
206         (sh64_pseudo_register_read, sh64_pseudo_register_write)
207         (sh64_do_fp_register, sh64_do_pseudo_register, sh64_do_register)
208         (sh64_print_register, sh64_media_print_registers_info)
209         (sh64_compact_print_registers_info, sh64_unwind_sp)
210         (sh64_unwind_pc): Replace current_gdbarch by gdbarch.
211         (sh64_show_media_regs, sh64_show_compact_regs, sh64_frame_cache)
212         (sh64_frame_prev_register): Use FRAME to recognize current
213         architecture.
214
215 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
216
217         * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
218         (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
219         (sh_register_reggroup_p, sh_dwarf2_frame_init_reg): Replace
220         current_gdbarch by gdbarch.
221         (sh_generic_show_regs, sh3_show_reg, sh2e_show_regs, sh2a_show_regs)
222         (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
223         (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs, sh_frame_cache)
224         (sh_frame_prev_register, sh_unwind_sp, sh_unwind_pc): Use FRAME to
225         recognize current architecture.
226
227 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
228
229         * remote.c (init_remote_state, fetch_register_using_p)
230         (process_g_packet, remote_fetch_registers, remote_prepare_to_store)
231         (store_register_using_P, store_registers_using_G)
232         (remote_store_registers): Use get_regcache_arch or get_frame_arch to
233         get at the current architecture by regcache or by frame, respectively.
234
235 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
236
237         * m68k-tdep.c (m68k_register_to_value, m68k_value_to_register)
238         (m68k_svr4_extract_return_value, m68k_svr4_store_return_value)
239         (m68k_frame_prev_register, m68k_get_longjmp_target): Use
240         get_regcache_arch or get_frame_arch to get at the current architecture
241         by regcache or by frame, respectively.
242         * m68klinux-tdep.c (m68k_linux_sigtramp_frame_cache): Likewise.
243         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers)
244         (store_register, old_store_inferior_registers, supply_gregset)
245         (supply_fpregset, fill_fpregset): Likewise.
246         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc, m68k_dump_tdep):
247         Replace current_gdbarch by gdbarch.
248
249 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
250
251         * irix5-nat.c (supply_gregset, fill_gregset, supply_fpregset)
252         (fill_fpregset, fetch_core_registers): Use get_regcache_arch or
253         get_frame_arch to get at the current architecture by regcache or by
254         frame, respectively.
255
256 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
257
258         * ia64-tdep.c (ia64_pseudo_register_read, ia64_pseudo_register_write):
259         Replace current_gdbarch by gdbarch.
260         * ia64-tdep.c (ia64_frame_prev_register
261         (ia64_sigtramp_frame_prev_register)
262         (ia64_libunwind_frame_prev_register): Use get_regcache_arch or
263         get_frame_arch to get at the current architecture by regcache or by
264         frame, respectively.
265         * ia64-linux-nat.c (ia64_linux_fetch_register)
266         (ia64_linux_fetch_registers, ia64_linux_store_register)
267         (ia64_linux_store_registers): Likewise.
268
269 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
270
271         * hppa-tdep.c (hppa_stub_unwind_sniffer, hppa_dump_tdep): Replace
272         current_gdbarch by gdbarch.
273         * hppa-linux-nat.c (fetch_register, store_register)
274         (hppa_linux_fetch_inferior_registers)
275         (hppa_linux_store_inferior_registers): Use get_regcache_arch or
276         get_frame_arch to get at the current architecture by regcache or by
277         frame, respectively.
278         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code
279         (hppa_hpux_unwind_adjust_stub): Likewise.
280         * hppa-hpux-nat.c (hppa_hpux_fetch_register, hppa_hpux_store_register)
281         (hppa_hpux_fetch_inferior_registers)
282         (hppa_hpux_store_inferior_registers): Likewise.
283
284 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
285
286         * cris-tdep.c (cris_sigcontext_addr, cris_sigtramp_frame_unwind_cache)
287         (cris_scan_prologue, crisv32_scan_prologue, find_step_target)
288         (cris_software_single_step, cris_supply_gregset): Use get_regcache_arch
289         or get_frame_arch to get at the current architecture by regcache or by
290         frame, respectively.
291         * cris-tdep.c (crisv32_single_step_through_delay, cris_push_dummy_call)
292         (cris_unwind_pc, cris_unwind_sp, cris_register_type, cris_dump_tdep)
293         (crisv32_register_type, cris_dwarf2_frame_init_reg): Replace
294         current_gdbarch by gdbarch.
295
296 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
297
298         * arm-tdep.c (arm_scan_prologue, arm_make_prologue_cache)
299         (thumb_get_next_pc, arm_get_next_pc, arm_extract_return_value)
300         (arm_store_return_value): Use get_regcache_arch or get_frame_arch to
301         get at the current architecture by regcache or by·frame, respectively.
302         (arm_push_dummy_call, arm_dump_tdep): Replace current_gdbarch by
303         gdbarch.
304
305 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
306
307         * amd64-tdep.c (amd64_frame_prev_register, amd64_sigtramp_frame_cache):
308         Use get_regcache_arch or get_frame_arch to get at the current
309         architecture by regcache or by frame, respectively.
310         * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
311         * amd64-nat.c (amd64_supply_native_gregset)
312         (amd64_collect_native_gregset): Replace current_gdbarch by gdbarch.
313
314 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
315
316         * alpha-tdep.c (alpha_register_reggroup_p): Replace current_gdbarch by
317         gdbarch.
318         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
319         (alpha_sigtramp_frame_unwind_cache, alpha_sigtramp_frame_this_id)
320         (alpha_sigtramp_frame_sniffer, alpha_next_pc): Use get_regcache_arch or
321         get_frame_arch to get at the current architecture by regcache or by 
322         frame, respectively.
323         * alpha-nat.c (fetch_osf_core_registers): Likewise.
324
325 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
326
327         * dwarf2-frame.c (read_reg, execute_cfa_program, dwarf2_frame_cache)
328         (dwarf2_frame_default_init_reg, dwarf2_frame_prev_register): Replace
329         current_gdbarch by gdbarch.
330         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Likewise.
331
332 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
333
334         * regcache.c (init_regcache_descr, register_type, read_pc_pid)
335         (write_pc_pid, regcache_dump): Replace current_gdbarch by gdbarch.
336         * regcache.c (regcache_raw_write): Use get_regcache_arch or
337         get_frame_arch to get at the current architecture by regcache or by
338         frame, respectively.
339
340 2007-10-08  Markus Deuling  <deuling@de.ibm.com>
341
342         * findvar.c (value_of_register, locate_var_value): Use
343         get_regcache_arch or get_frame_arch to get at the current architecture
344         by regcache or by frame, respectively.
345         * findvar.c (default_value_from_register, value_from_register): Replace
346         current_gdbarch by gdbarch.
347
348 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
349
350         * config/i386/nm-i386.h (CHILD_POST_STARTUP_INFERIOR): ARI fix: Remove.
351
352 2007-10-08  Pierre Muller  <muller@ics.u-strasbg.fr>
353
354         * linux-fork.c: ARI fix: include "gdb_wait.h" instead of <sys/wait.h>.
355         Makefile.in (linux-fork.o): Add gdb_wait.h dependency. 
356
357 2007-10-05  Daniel Jacobowitz  <dan@codesourcery.com>
358
359         * remote.c (get_offsets): Only call free_symfile_segment_data if
360         data was allocated.
361
362 2007-10-03  Pierre Muller  <muller@ics.u-strasbg.fr>
363
364         * objc-exp.y: ARI fix: remove 4 PARAMS. 
365
366 2007-10-03  Daniel Jacobowitz  <dan@codesourcery.com>
367
368         * NEWS: Use uniform spacing.  Correct version number for GDB 6.7
369         news.  Mention XML support for M68K in GDB 6.7.
370
371 2007-10-03  Daniel Jacobowitz  <dan@codesourcery.com>
372
373         * gdbtypes.c (create_range_type): Do not set TYPE_FIELD_TYPE for the
374         bounds.
375         (init_vector_type): Use builtin_type_int32.
376
377 2007-10-02  Ulrich Weigand  <uweigand@de.ibm.com>
378
379         * s390-tdep.c (s390_regset_from_core_section): Allow excess section
380         size to enable bi-arch generate-core-file support.
381
382 2007-10-02  Markus Deuling  <deuling@de.ibm.com>
383
384         * spu-tdep.c (info_spu_signal_command): Fix output for SPU signal.
385
386 2007-10-02  Carlos Eduardo Seo  <cseo@linux.vnet.ibm.com>
387
388         * tui/tui-interp.c (tui_init): Initialize tui's SIGWINCH
389         signal handler.
390         * tui/tui-win.c (tui_initialize_win): New function for
391         initializing tui's SIGWINCH signal handler.
392         * tui/tui-win.h (tui_initialize_win): Declare.
393
394 2007-10-02  Ulrich Weigand  <uweigand@de.ibm.com>
395
396         * ppc-linux-nat.c (ppc_linux_stopped_data_address): Cast
397         pointer to uintptr_t before casting to CORE_ADDR.
398
399 2007-10-02  Markus Deuling  <deuling@de.ibm.com>
400
401         * linux-nat.c (PTRACE_GETSIGINFO): Add define.
402
403 2007-10-02  Mark Mitchell  <mark@codesourcery.com>
404
405         * mingw-hdep.c (gdb_select): Stop helper threads before returning.
406         * ser-mingw.c (enum select_thread_state): New type.
407         (struct ser_console_state): Add have_started and thread_state.
408         (select_thread_wait): New function.
409         (thread_fn_type): New type.
410         (create_select_thread): New function.
411         (destroy_select_thread): Likewise.
412         (start_select_thread): Likewise.
413         (stop_select_thread): Likewise.
414         (console_select_thread): Use new functions.
415         (pipe_select_thread): Likewise.
416         (file_select_thread): Likewise.
417         (ser_console_wait_handle): Likewise.
418         (ser_console_done_wait_handle): Likewise.
419         (ser_console_close): Likewise.
420         (free_pipe_state): Likewise.
421         (pipe_wait_handle): Likewise.
422         (pipe_done_wait_handle): Likewise.
423         (struct net_windows_state): Derive from ser_console_state.
424         (net_windows_select_thread): Use new functions.
425         (net_windows_wait_handle): Likewise.
426         (net_windows_done_wait_handle): Likewise.
427         (net_windows_close): Likewise.
428
429 2007-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
430
431         * inflow.c (terminal_ours_1): Remove useless line.
432
433 2007-10-02  Daniel Jacobowitz  <dan@codesourcery.com>
434
435         * mips-tdep.c (mips_read_fp_register_double): Correct check for
436         odd FP registers.
437         (mips_print_fp_register): Correct check for even FP registers.
438         (mips_virtual_frame_pointer): New function.
439         (mips_gdbarch_init): Call set_gdbarch_virtual_frame_pointer.
440
441 2007-09-30  Mike Frysinger  <vapier@gentoo.org>
442
443         * value.h (lookup_only_internalvar): New prototype.
444         (create_internalvar): Likewise.
445         * value.c (lookup_only_internalvar): New function.
446         (create_internalvar): Likewise.
447         (lookup_internalvar): Use new lookup_only_internalvar and
448         create_internalvar functions.
449         * parse.c (write_dollar_variable): Look up $ symbols in internal
450         table first rather than last.
451
452 2007-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
453
454         * linux-nat.c (linux_nat_new_thread): New variable.
455         (linux_child_follow_fork): Set inferior_ptid to include LWP ID.  Use
456         linux_nat_switch_fork.
457         (lwp_list): Make public.
458         (add_lwp): Call linux_nat_new_thread.
459         (lin_lwp_attach_lwp, linux_nat_attach): Call add_lwp after stopping
460         the new thread.
461         (resume_callback): Clear lp->siginfo.  Remove unused variable.
462         (linux_nat_resume): Assert that the LWP list is already initialized.
463         Clear lp->siginfo.
464         (save_siginfo): New.
465         (stop_wait_callback, linux_nat_wait): Call it.
466         (linux_nat_set_new_thread, linux_nat_get_siginfo): New.
467         * linux-nat.h (struct lwp_info): Add siginfo.
468         (lwp_list, linux_nat_set_new_thread, linux_nat_get_siginfo): Declare.
469         (ALL_LWPS): Define.
470
471         * amd64-linux-nat.c (amd64_linux_dr): New.
472         (amd64_linux_dr_get): Take a PTID argument.  Correct typo.
473         (amd64_linux_dr_set): Take a PTID argument.
474         (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use ALL_LWPS.
475         (amd64_linux_dr_reset_addr): Use amd64_linux_dr_set_addr.
476         (amd64_linux_dr_get_status): Pass inferior_ptid to amd64_linux_dr_get.
477         (amd64_linux_new_thread): New.
478         (_initialize_amd64_linux_nat): Call linux_nat_set_new_thread.
479         * i386-linux-nat.c (i386_linux_dr): New.
480         (i386_linux_dr_get, i386_linux_dr_set): Take a PTID argument.
481         (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use ALL_LWPS.
482         (i386_linux_dr_reset_addr): Use i386_linux_dr_set_addr.
483         (i386_linux_dr_get_status): Pass inferior_ptid to i386_linux_dr_get.
484         (i386_linux_new_thread): New.
485         (i386_linux_resume): Remove unnecessary PID check.
486         (_initialize_i386_linux_nat): Call linux_nat_set_new_thread.
487         * ia64-linux-nat.c (enable_watchpoints_in_psr): Take PTID argument.
488         (fetch_debug_register, fetch_debug_register_pair): Delete.
489         (debug_registers): New.
490         (ia64_linux_insert_watchpoint, ia64_linux_remove_watchpoint): Use
491         ALL_LWPS and debug_registers.
492         (ia64_linux_new_thread): New.
493         (ia64_linux_stopped_data_address): Use linux_nat_get_siginfo.
494         (_initialize_ia64_linux_nat): Call linux_nat_set_new_thread.
495         * ppc-linux-nat.c (last_stopped_data_address): Delete.
496         (saved_dabr_value): New.
497         (ppc_linux_insert_watchpoint, ppc_linux_remove_watchpoint): Use
498         ALL_LWPS.
499         (ppc_linux_new_thread): New.
500         (ppc_linux_stopped_data_address): Use linux_nat_get_siginfo.
501         (ppc_linux_stopped_by_watchpoint): Call ppc_linux_stopped_data_address.
502         (_initialize_ppc_linux_nat): Call linux_nat_set_new_thread.
503         * s390-nat.c (s390_stopped_by_watchpoint): Clear the watchpoint status
504         after reading it.
505         (s390_fix_watch_points): Take a PTID argument.
506         (s390_insert_watchpoint, s390_remove_watchpoint): Use ALL_LWPS.
507         (_initialize_s390_nat): Call linux_nat_set_new_thread.
508
509 2007-09-30  Daniel Jacobowitz  <dan@codesourcery.com>
510             Jeff Johnston  <jjohnstn@redhat.com>
511
512         * breakpoint.c (watchpoints_triggered): New.
513         (bpstat_stop_status): Remove STOPPED_BY_WATCHPOINT argument.
514         Check watchpoint_triggered instead.  Combine handling for software
515         and hardware watchpoints.  Do not use target_stopped_data_address
516         here.  Always check a watchpoint if its scope breakpoint triggers.
517         Do not stop for thread or overlay events.  Improve check for
518         triggered watchpoints without a value change.
519         (watch_command_1): Insert the scope breakpoint first.  Link the
520         scope breakpoint to the watchpoint.
521         * breakpoint.h (enum watchpoint_triggered): New.
522         (struct breakpoint): Add watchpoint_triggered.
523         (bpstat_stop_status): Update prototype.
524         (watchpoints_triggered): Declare.
525         * infrun.c (enum infwait_status): Add infwait_step_watch_state.
526         (stepped_after_stopped_by_watchpoint): Delete.
527         (handle_inferior_event): Make stepped_after_stopped_by_watchpoint
528         local.  Handle infwait_step_watch_state.  Update calls to
529         bpstat_stop_status.  Use watchpoints_triggered to check
530         watchpoints.
531         * remote.c (stepped_after_stopped_by_watchpoint): Remove extern.
532         (remote_stopped_data_address): Do not check it.
533
534 2007-09-29  Daniel Jacobowitz  <dan@codesourcery.com>
535
536         * configure.ac: Add $LIBINTL when testing libbfd.
537         * configure: Regenerated.
538
539 2007-09-28  Vladimir Prus  <vladimir@codesourcery.com>
540
541         * NEW: Mention pending breakpoint changes and
542         support for breakpoints at multiple locations.
543         
544 2007-09-27  Daniel Jacobowitz  <dan@codesourcery.com>
545
546         * arm-linux-tdep.c (arm_linux_software_single_step): New.
547         (arm_linux_init_abi): Use it.
548         * arm-tdep.c (arm_get_next_pc): Make global.  Handle all-ones
549         condition correctly.
550         * arm-tdep.h (arm_get_next_pc): Declare.
551         * Makefile.in (arm-linux-tdep.o): Update.
552
553 2007-09-26  Vladimir Prus  <vladimir@codesourcery.com>
554
555         * varobj.c (install_new_value): Don't
556         call value_get_print_value when a value is
557         lazy.  Update the print_value member in a
558         single place.
559
560 2007-09-26  Vladimir Prus  <vladimir@codesourcery.com>
561
562         * breakpoint.c (create_breakpoint): Set
563         condition on each location, not on the first
564         location of breakpoint.
565         
566 2007-09-26  Jim Blandy  <jimb@codesourcery.com>
567
568         * remote.c (getpkt_sane): Fix error message.  No animals were
569         harmed in the making of this debugger.
570
571 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
572
573         * p-typeprint.c: Fix 11 ARI reported problems.
574         (pascal_print_type): Fix 4 operator at end of line.
575         (pascal_type_print_method_args) : Replace 2 DEPRECATED_STREQN macros 
576         using strncmp function.
577         (pascal_type_print_base): Fix 2 operator at end of line.
578         (pascal_type_print_base) : Replace 3 DEPRECATED_STREQN macros 
579         using strncmp function.
580
581
582 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
583
584         * Fix PR pascal/2231
585         dwarf2read.c (read_subroutine_type): 
586         All pascal functions are prototyped. 
587
588 2007-09-26  Pierre Muller  <muller@ics.u-strasbg.fr>
589
590         * Fix PR pascal/2283
591         p-valprint.c (pascal_val_print): correct current language check.
592         Also print array of char as strings.
593
594
595 2007-09-26  David Ung  <davidu@mips.com>
596             Maciej W. Rozycki  <macro@mips.com>
597
598         * mips-tdep.c (mips_n32n64_return_value): Fix a comment.
599
600 2007-09-25  Pierre Muller  <muller@ics.u-strasbg.fr>
601
602         * p-exp.y: Fix 12 ARI reported problems.
603         (name_not_typename): Fix 2 operator at end of line issues.
604         (yylex): Fix 3 operator at end of line issues.
605         Replace 7 DEPRECATED_STREQ macros using strcmp function.
606
607 2007-09-25  David Ung  <davidu@mips.com>
608             Maciej W. Rozycki  <macro@mips.com>
609
610         * mips-tdep.c (mips_n32n64_return_value): Per N32/N64 ABI
611         rules return composite types in registers as appropriate.
612
613 2007-09-24  Jim Blandy  <jimb@codesourcery.com>
614
615         * symfile.h (struct symfile_segment_data): Doc fixes.
616         * symfile.c (symfile_map_offsets_to_segments): Doc fixes.
617         Assert that we were passed some loaded segment addresses,
618         and that sections' segment numbers are valid.
619         Simplify offset calculation.
620         * remote.c (get_offsets): Clarify selection of relocate-by-segment
621         strategy, and set num_segments correctly.  Delete redundant
622         assignments to do_sections.
623
624 2007-09-24  Daniel Jacobowitz  <dan@codesourcery.com>
625
626         * frame.c (get_prev_frame_1): Also check for PC in the same register.
627
628 2007-09-24  Vladimir Prus  <vladimir@codesourcery.com>
629         
630         * breakpoint.c (remove_sal): New.
631         (expand_line_sal_maybe): New.
632         (create_breakpoints): Call expand_line_sal_maybe.
633         (clear_command): Add comment.
634         (breakpoint_re_set_one): Call expand_line_sal_maybe.
635         * linespec.c (decode_indirect): Set explicit_pc to 1.
636         (decode_all_digits): Set explicit_line to 1.
637         (append_expanded_sal): New.
638         (expand_line_sal): New.
639         * linespec.h (expand_line_sal): Declare.
640         * symtab.c (init_sal): Initialize explicit_pc 
641         and explicit_line.
642         * symtab.h (struct symtab_and_line): New fields
643         explicit_pc and explicit_line.  
644
645 2007-09-23  Daniel Jacobowitz  <dan@codesourcery.com>
646
647         * infcall.c (call_function_by_hand): Handle language-specific
648         pass and return by reference.
649
650         * cp-abi.c (cp_pass_by_reference): New.
651         * cp-abi.h (cp_pass_by_reference): Declare.
652         (struct cp_abi_ops): Add pass_by_reference.
653         * gnu-v3-abi.c (gnuv3_pass_by_reference): New.
654         (init_gnuv3_ops): Set pass_by_reference.
655
656         * language.c (language_pass_by_reference): New.
657         (default_pass_by_reference): New.
658         (unknown_language_defn, auto_language_defn, local_language_defn): Add
659         default_pass_by_reference.
660         * langauge.h (struct language_defn): Add la_pass_by_reference.
661         (language_pass_by_reference, default_pass_by_reference): Declare.
662         * ada-lang.c (ada_language_defn): Add default_pass_by_reference.
663         * c-lang.c (c_language_defn, asm_language_defn)
664         (minimal_language_defn): Likewise.
665         (cplus_language_defn): Add cp_pass_by_reference.
666         * f-lang.c (f_language_defn): Add default_pass_by_reference.
667         * jv-lang.c (java_language_defn): Likewise.
668         * m2-lang.c (m2_language_defn): Likewise.
669         * objc-lang.c (objc_language_defn): Likewise.
670         * p-lang.c (pascal_language_defn): Likewise.
671         * scm-lang.c (scm_language_defn): Likewise
672
673 2007-09-23  Vladimir Prus  <vladimir@codesourcery.com>
674
675         Allow a code breakpoint to have several locations
676         associated with it.
677         * breakpoint.h (enum enable_state): Remove the
678         bp_shlib_disabled enumerator. 
679         (struct bp_location): New members shlib_disabled,
680         global_next, enabled and function_name.
681         Rename pending to condition_not_parsed.
682
683         * breakpoint.c (ALL_BP_LOCATIONS): Iterate over global_next.
684         (ALL_BP_LOCATIONS_SAFE): Likewise.
685         (breakpoint_enabled): Don't check for pending.
686         (condition_command): Free and update all locations of
687         a breakpoint.
688         (insert_bp_location): Adjust.
689         (software_breakpoint_inserted_here_p): Don't care
690         if breakpoint is enabled, as soon as it's inserted.
691         (print_it_typical): Print bpstat's location, not
692         bpstat's breakpoint's location.
693         (bpstat_stop_status): Iterate over all locations, not
694         all breakpoints.
695         (print_breakpoint_location): New.
696         (print_one_breakpoint): Renamed to
697         (print_one_breakpoint_location): ...this. Take
698         parameters to describe which location is being
699         printed. Modify code to properly print header
700         for several locations and individual locations.
701         (print_one_breakpoint): Print all locations.
702         (breakpoint_has_pc): New.
703         (describe_other_breakpoints): Use the above.
704         (check_duplicates): Renamed to...
705         (check_duplicates_for): .. this.
706         (check_duplicates): Use check_duplicates_for.
707         (allocate_bp_location): Adjust.
708         (set_raw_breakpoint_without_location): New,
709         extracted from set_raw_breakpoint.
710         (set_breakpoint_location_function): New.
711         (set_raw_breakpoint): Use 
712         set_raw_breakpoint_without_location.
713         (make_breakpoint_permanent): Mark all locations
714         as inserted.
715         (disable_breakpoints_in_shlibs): Iterate over
716         locations.
717         (disable_breakpoints_in_unloaded_shlib): Likewise.
718         (re_enable_breakpoints_in_shlibs): Likewise.
719         (mention): Say "pending" when breakpoint has
720         zero locations.  If breakpoint has more than one
721         location, say so.
722         (add_location_to_breakpoint): New.
723         (create_breakpoint): Accept symtabs_and_lines, not
724         symtab_and_line. Pass extra sals to 
725         add_location_to_breakpoint.
726         (create_breakpoints): Pass symtabs_and_lines to
727         create_breakpoints.
728         (break_command_1): Make pending breakpoints
729         have zero locations.
730         (do_captured_breakpoint): Remove wrong allocation.
731         (clear_command): Iterate over all locations.
732         (unlink_locations_from_global_list): Renamed
733         from unlink_location_from_global_list. Remove
734         all locations.
735         (delete_breakpoint): Remove all locations.
736         Iterate over all locations when deciding which
737         other location to re-enable.
738         (all_locations_are_pending): New.
739         (update_breakpoint_locations): Renamed from
740         update_breakpoint_location. Try to match old
741         and new locations using names of containing
742         functions.
743         (breakpoint_re_set_one): Adjust.
744         (find_location_by_number): New.
745         (disable_command): Allow disabling individual location.
746         (enable_command): Allow enabling individual location.
747         * breakpoint.c: Adjust all uses of breakpoint's
748         enable state to for bp_shlib_disabled change.
749         
750 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
751
752         * breakpoint.c (do_restore_lang_radix_cleanup): Remove.
753         (resolve_pending_breakpoint): Remove.
754         (re_enable_breakpoints_in_shlibs): Remove.
755         (unlink_locations_from_global_list): New.
756         (update_breakpoint_locations): New.
757         (breakpoint_re_set_one): Don't bail out on pending breakpoints.
758         Use parse_condition and update_breakpoint_location to
759         reset breakpoint.  Ignore 'symbol not found' error from
760         decode_line_1.
761         (breakpoint_re_set): Don't emit newline before the
762         reason why breakpoint is not reset.
763         (do_enable_breakpoint): Don't specially process pending
764         breakpoints.
765         (free_bp_location): New.
766         (break_command_1): For pending breakpoints, initialize
767         all fields of a sal with zeroes.
768         * breakpoint.h (re_enable_breakpoints_in_shlibs): Remove.
769         * infcmd.c (post_create_inferior): Don't call
770         re_enable_breakpoints_in_shlibs.
771         * infrun.c (handle_inferior_event): Likewise.
772         * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
773         * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
774         * win32-nat.c (get_win32_debug_event): Likewise.
775         
776 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
777
778         * breakpoint.c (create_breakpoint): Split from
779         create_breakpoints, implementing most of its logic.
780         Take just a single sal, single address string and
781         single condition.  Do not take parsed condition at
782         all.
783         (create_breakpoints): Just call create_breakpoint
784         for each sal.
785         (find_condition_and_thread): New.
786         (break_command_1): Use find_condition_and_thread.
787         Do not keep parsed conditions.
788         (do_captured_breakpoint): Don't convert
789         condition string to struct expression.
790         
791 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
792
793         * breakpoint.h (struct breakpoint): Move the cond 
794         field to...
795         (struct bp_location): Here.
796         * breakpoint.c (condition_command, bpstat_stop_status)
797         (print_one_breakpoint, allocate_bp_location)
798         (solib_load_unload_1, create_fork_vfork_event_catchpoint)
799         (create_exec_event_catchpoint, create_breakpoints)
800         (break_command_1, watch_command_1, handle_gnu_v3_exceptions)
801         (create_ada_exception_breakpoint, set_breakpoint_sal)
802         (delete_breakpoint, breakpoint_re_set_one): Adjust.
803         * tui/tui-winsource.c (tui_update_breakpoint_info): Adjust.
804         
805 2007-09-22  Vladimir Prus  <vladimir@codesourcery.com>
806
807         Associate bp_stat with bp_location, not breakpoint.
808         * breakpoint.h (breakpoint_at): Change type
809         to bp_location*.
810         * breakpoint.c (bpstat_alloc): Take bp_location,
811         not breakpoint.
812         (bpstat_find_breakpoint): Look at bpstat's location's
813         owner, not at bpstat->breakpoint_at.
814         (bpstat_find_step_resume_breakpoint): Likewise.
815         (bpstat_num): Likewise.
816         (print_it_typical): Likewise.
817         (print_bp_stop_message): Likewise.
818         (watchpoint_check): Likewise.
819         (bpstat_what): Likewise.
820         (bpstat_get_triggered_catchpoints): Likewise.
821         (breakpoint_auto_delete): Likewise.
822         (delete_breakpoint): Likewise.  
823         (bpstat_stop_status): Pass location, not breakpoint,
824         to bpstat_alloc.  Look at bpstat's location's
825         owner, not at bpstat->breakpoint_at.
826
827 2007-09-21  Jim Blandy  <jimb@codesourcery.com>
828
829         * macrotab.h (new_macro_table): Document that removing information
830         from an obstack/bcache-managed macro table leaks memory.
831         * macrotab.c (macro_free, macro_bcache_free): Instead of asserting
832         that data is never freed in obstack/bcache-managed macro tables,
833         just leak the storage.
834         (macro_undef): If we're undefining a macro at exactly the same
835         source location that we defined it, simply remove the definition
836         altogether.
837
838 2007-09-21  Joel Brobecker  <brobecker@adacore.com>
839
840         * symfile.h (struct sym_fns): Add new field sym_read_linetable.
841         * coffread.c, dbxread.c, elfread.c, mipsread.c somread.c:
842         Adjust the struct sym_fns object accordingly by setting
843         the new field to NULL.
844         * xcoffread.c (aix_process_linenos): Make static.
845         (xcoff_sym_fns): Set new field to aix_process_linenos.
846         * buildsym.c (end_symtab): Replace call to PROCESS_LINENUMBER_HOOK
847         by call to new the new sym_fns sym_read_linetable function.
848         * config/powerpc/aix.mt (DEPRECATED_TM_FILE): Delete.
849         * config/rs6000/tm-rs6000.h: Delete.
850
851 2007-09-21  David Ung  <davidu@mips.com>
852             Maciej W. Rozycki  <macro@mips.com>
853
854         * mips-tdep.c (mips_n32n64_push_dummy_call): Per N32/N64 ABI
855         rules do not treat composite types specially.
856
857 2007-09-20  Maciej W. Rozycki  <macro@mips.com>
858
859         * mips-tdep.c (mips32_in_function_epilogue_p): New function.
860         (mips16_in_function_epilogue_p): Likewise.
861         (mips_in_function_epilogue_p): Likewise.
862         (mips_gdbarch_init): Register mips_in_function_epilogue_p().
863
864 2007-09-19  Joel Brobecker  <brobecker@adacore.com>
865
866         * configure.ac: Add check for "etext".
867         * configure, config.in: Regenerate.
868         * maint.c (TEXTEND): Only define if either _etext or etext
869         are available.
870         Disable the profiling functionality if TEXTEND is not defined.
871
872 2007-09-19  Daniel Jacobowitz  <dan@codesourcery.com>
873
874         * mips-tdep.c (mips_stub_frame_cache): Correct the saved return
875         address register.  Correct the call to frame_id_build.
876         (mips_stub_frame_sniffer): Use the stub unwinder when the PC
877         is invalid.
878
879 2007-09-18  Joel Brobecker  <brobecker@adacore.com>
880
881         * ia64-tdep.c (refine_prologue_limit): Make sure we don't scan
882         the linetable past the function end.
883
884 2007-09-18  James E. Wilson  <wilson@specifix.com>
885
886         * MAINTAINERS: Update my email address.
887
888 2007-09-18  Jerome Guitton  <guitton@adacore.com>
889
890         * inf-ttrace.c (inf_ttrace_private_thread_info): New structure type.
891         (inf_ttrace_delete_dying_threads_callback): New function.
892         (inf_ttrace_resume): After resuming the execution, iterate over
893         the dying threads to delete them for the thread list.
894         (inf_ttrace_wait): on TTEVT_LWP_EXIT and TTEVT_LWP_TERMINATE,
895         mark the corresponding thread as dying instead of removing it
896         from the thread list.
897         (inf_ttrace_thread_alive): return 0 for dying threads.
898
899 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
900
901         * infrun.c (insert_step_resume_breakpoint_at_frame): Add assertion
902         that return_frame is not null.
903
904 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
905
906         * solib-svr4.c: Add include of "auxv.h".
907         (enable_break): Use the AT_BASE auxiliary entry if available.
908         * Makefile.in (solib-svr4.o): Update dependencies.
909
910 2007-09-17  Joel Brobecker  <brobecker@adacore.com>
911
912         * NEWS: Create a new section for the next release branch.
913         Rename the section of the current branch, now that it has
914         been cut.
915
916 2007-09-17  Jerome Guitton  <guitton@adacore.com>
917
918         * dwarf2loc.c (dwarf_expr_frame_base): Guard against NULL.
919         * Makefile.in (dwarf2loc.o): Depend on gdb_assert.h.
920
921 2007-09-16  Vladimir Prus  <vladimir@codesourcery.com>
922
923         * mi/mi-cmds.c (mi_cmds): Register -list-features.
924         * mi/mi-cmds.h (mi_cmd_list_features): New.
925         * mi/mi-main.c (mi_cmd_list_features): New.
926         
927 2007-09-11  Joel Brobecker  <brobecker@adacore.com>
928
929         GDB 6.7 branch created (branch timestamp: 2007-09-07 14:00 UTC)
930         * version.in: Bump version to 6.7.50-20070911-cvs.
931
932 2007-09-10  Daniel Jacobowitz  <dan@codesourcery.com>
933
934         * thread.c (free_thread): Do not delete the step resume breakpoint
935         right away.
936
937 2007-09-10  Daniel Jacobowitz  <dan@codesourcery.com>
938
939         * arch-utils.c (gdbarch_info_fill): Also try core_bfd.
940         * corelow.c (core_read_description): New.
941         (init_core_ops): Set to_read_description.
942         * gdbarch.sh: Add gdbarch_core_read_description.
943         * mips-linux-tdep.c (mips_linux_core_read_description): New.
944         (mips_linux_init_abi): Call set_gdbarch_core_read_description.
945         * mips-tdep.c (mips_tdesc_gp32, mips_tdesc_gp64): New.
946         (mips_register_g_packet_guesses): Use them.
947         (_initialize_mips_tdep): Initialize them.
948         * mips-tdep.h (mips_tdesc_gp32, mips_tdesc_gp64): Declare.
949         * gdbarch.h, gdbarch.c: Regenerated.
950
951 2007-09-10  Ulrich Weigand  <uweigand@de.ibm.com>
952
953         * infrun.c (stepping_past_breakpoint): New global variable.
954         (stepping_past_breakpoint_ptid): Likewise.
955         (prepare_to_proceed): Add STEP parameter.  Do not check for Ctrl-C.
956         Only switch threads if we need to single-step over a breakpoint hit
957         in the previously selected thread.  If stepping, remember previous
958         thread to switch back to in STEPPING_PAST_BREAKPOINT[_PTID].  Call
959         switch_to_thread instead of copying its contents.
960         (proceed): Pass STEP to prepare_to_proceed.  Always set ONEPROC if
961         prepare_to_proceed returns true.
962         (init_wait_for_inferior): Reset STEPPING_PAST_BREAKPOINT.
963         (context_switch): Call switch_to_thread.
964         (handle_inferior_event): Switch back to previous thread if requested
965         in STEPPING_PAST_BREAKPOINT[_PTID] by prepare_to_proceed.
966         * gdbthread.h (switch_to_thread): Add prototype.
967         * thread.c (switch_to_thread): Make global.
968
969 2007-09-07  Pierre Muller  <muller@ics.u-strasbg.fr>
970
971          * p-valprint.c: Fix 7 ARI reported problems.
972          (pascal_val_print): Fix one operator at end of line issue.
973          Use paddress function to remove use of
974          deprecated_print_address_numeric function (2 times).
975          Use SYMBOL_LINKAGE_NAME instead of DEPRECATED_SYMBOL_NAME.
976          (pascal_value_print): Fix 3 operator at end of line issues.
977
978 2007-09-07  Daniel Jacobowitz  <dan@codesourcery.com>
979
980         PR gdb/2103
981         * arm-tdep.c (arm_in_call_stub): Delete.
982         (arm_skip_stub): Handle from_arm and from_thumb stubs.
983
984 2007-09-06  Daniel Jacobowitz  <dan@codesourcery.com>
985
986         * ppc-sysv-tdep.c (do_ppc_sysv_return_value): Handle other integer
987         types.
988
989 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
990             Jim Blandy  <jimb@codesourcery.com>
991
992         * NEWS: Update description of string changes.  Mention print/s.
993         * c-valprint.c (textual_element_type): New.
994         (c_val_print): Use it.  Do not skip address printing for pointers
995         with a string format.
996         (c_value_print): Doc update.
997         * dwarf2read.c (read_array_type): Use make_vector_type.
998         * gdbtypes.c (make_vector_type): New.
999         (init_vector_type): Use it.
1000         (gdbtypes_post_init): Initialize builtin_true_unsigned_char.
1001         (_initialize_gdbtypes): Mark int8_t and uint8_t as TYPE_FLAG_NOTTEXT.
1002         * gdbtypes.h (struct builtin_type): Add builtin_true_unsigned_char.
1003         (TYPE_FLAG_NOTTEXT, TYPE_NOTTEXT): New.
1004         (make_vector_type): New.
1005         * printcmd.c (print_formatted): Only handle 's' and 'i' for examine.
1006         Call the language print routine for string format.
1007         (print_scalar_formatted): Call val_print for string format.  Handle
1008         unsigned original types for char format.
1009         (validate_format): Do not reject string format.
1010         * stabsread.c (read_type): Use make_vector_type.
1011         * xml-tdesc.c (tdesc_start_vector): Use init_vector_type.
1012
1013 2007-09-04  Michael Snyder  <msnyder@access-company.com>
1014
1015         * expprint.c (print_subexp_standard): Check strchr for null.
1016         * Makefile.in (expprint.o): Depend on gdb_assert.h.
1017
1018         * gnu-v2-abi.c (gnuv2_value_rtti_type): Guard against null.
1019
1020         * stabsread.c (patch_block_status): Guard against null.
1021         * Makefile.in (stabsread.o): Depend on gdb_assert.h.
1022
1023 2007-09-04  Daniel Jacobowitz  <dan@codesourcery.com>
1024
1025         * printcmd.c (printf_command): Handle ptr_arg.  Correct typo
1026         in internal error message.
1027
1028 2007-09-04  Pedro Alves  <pedro_alves@portugalmail.pt>
1029             Daniel Jacobowitz  <dan@codesourcery.com>
1030
1031         * infcmd.c (post_create_inferior): Update comment.
1032         (run_command_1): Always call post_create_inferior with 0 as
1033         from_tty.
1034
1035         * i386-cygwin-tdep.h: New.
1036         * i386-cygwin-tdep.c: Include "i386-cygwin-tdep.h".
1037         (win32_xfer_shared_library): Make it extern.
1038
1039         * win32-nat.c: Include gdb_obstack.h and xml-support.h and
1040         i386-cygwin-tdep.h.
1041         (win32_so_ops): Delete.
1042         (get_relocated_section_addrs): Delete.
1043         (solib_symbols_add): Delete.
1044         (register_loaded_dll): Delete.
1045         (win32_make_so): New.
1046         (handle_load_dll): Use win32_make_so.
1047         (win32_free_so): Free the passed in so.
1048         (win32_relocate_section_addresses): Delete.
1049         (win32_solib_create_inferior_hook): Delete.
1050         (handle_unload_dll): Don't add PE offset here.  Free so with
1051         win32_free_so instead of free_so.
1052         (win32_special_symbol_handling): Delete.
1053         (get_win32_debug_event): Remove unneeded calls.  Set state to
1054         TARGET_WAITKIND_LOADED on a dll unload.
1055         (do_initial_win32_stuff): Clear cygwin_load_start and
1056         cygwin_load_end.
1057         (map_code_section_args): Delete.
1058         (dll_code_sections_add): Delete.
1059         (core_section_load_dll_symbols): Delete.
1060         (win32_xfer_shared_libraries): New.
1061         (win32_current_sos): Delete.
1062         (win32_xfer_partial): New.
1063         (open_symbol_file_object): Delete.
1064         (in_dynsym_resolve_code): Delete.
1065         (init_win32_ops): Set win32_xfer_partial as to_xfer_partial member
1066         of win32_ops.  Remove win32_so_ops settings.  Don't set
1067         current_target_so_ops here.
1068
1069         * Makefile.in (i386_cygwin_tdep_h): New variable.
1070         (i386-cygwin-tdep.o): Update dependencies.
1071         (win32-nat.o): Update dependencies.
1072
1073 2007-09-04  Pedro Alves  <pedro_alves@portugalmail.pt>
1074             Daniel Jacobowitz  <dan@codesourcery.com>
1075
1076         * gdbarch.sh (core_xfer_shared_libraries): New.
1077
1078         * corelow.c (core_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1079
1080         * gdb_obstack.h (obstack_grow_str, obstack_grow_str0): New.
1081
1082         * xml-support.c (gdb_xml_parse): Debug output tweaks.
1083         (xml_escape_text): New.
1084         * xml-support.h (xml_escape_text): Declare.
1085
1086         * config/i386/cygwin.mh (NATDEPFILES): Move corelow.o to ...
1087         * config/i386/cygwin.mt (TDEPFILES): ... here.
1088
1089         * win32-nat.c: (fetch_elf_core_registers): Delete.
1090         (win32_elf_core_fn): Delete.
1091         (_initialize_core_win32): Delete.
1092
1093         * i386-cygwin-tdep.c: Include "regset.h", "gdb_objstack.h",
1094         "xml-support.h" and "gdbcore.h".
1095         (i386_win32_gregset_reg_offset): New.
1096         (I386_WIN32_SIZEOF_GREGSET): New.
1097         (i386_win32_regset_from_core_section): New.
1098         (win32_xfer_shared_library): New.
1099         (struct cpms_data): New.
1100         (core_process_module_section): New.
1101         (win32_core_xfer_shared_libraries): New.
1102         (i386_cygwin_skip_trampoline_code): Register gregset_reg_offset,
1103         gregset_num_regs, sizeof_gregset members of tdep.  Register
1104         regset_from_core_section and core_xfer_shared_libraries callbacks.
1105
1106         * Makefile.in (i386-cygwin-tdep.o): Update dependencies.
1107         * gdbarch.h, gdbarch.c: Regenerate.
1108
1109 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
1110
1111         * corelow.c (core_xfer_partial): Pass writebuf to
1112         deprecated_xfer_memory in TARGET_OBJECT_MEMORY write case.
1113
1114 2007-09-03  Pedro Alves  <pedro_alves@portugalmail.pt>
1115
1116         * arm-tdep.h (arm_skip_stub): Declare.
1117         * arm-wince-tdep.c: Don't include "solib-svr4.h".  Include
1118         "gdbcore.h".
1119         (arm_pe_skip_trampoline_code): New function.
1120         (arm_wince_init_abi): Register arm_pe_skip_trampoline_code as
1121         gdbarch_skip_trampoline_code callback.
1122         * Makefile.in (arm-wince-tdep.o): Update dependencies.
1123
1124 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
1125
1126         * MAINTAINERS: Move Fred Fish to Past Maintainers.
1127
1128 2007-09-03  Daniel Jacobowitz  <dan@codesourcery.com>
1129
1130         * configure.ac: Add --with-expat.
1131         * configure: Regenerated.
1132
1133 2007-09-03  Andreas Schwab  <schwab@suse.de>
1134
1135         * configure.ac: Accept --with-system-readline.
1136         (READLINE, READLINE_DEPS, READLINE_CFLAGS): Define and substitute.
1137         * configure: Regenerate.
1138         * Makefile.in (READLINE, READLINE_DEPS, READLINE_CFLAGS): Use
1139         substituted values.
1140         (CDEPS): Use $(READLINE_DEPS) instead of $(READLINE).
1141
1142 2007-09-03  Maxim Grigoriev  <maxim2405@gmail.com>
1143             Daniel Jacobowitz  <dan@codesourcery.com>
1144
1145         * mi-main.c (mi_load_progress): Handle MI2 and MI3 interpreters.
1146
1147 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1148
1149         * top.c (print_gdb_version): Fixed a string end-of-line compiler error.
1150
1151 2007-09-02  Daniel Jacobowitz  <dan@codesourcery.com>
1152
1153         * top.c (print_gdb_version): Update for GPL version 3.
1154
1155 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1156
1157         * NEWS: Mention the build-id .debug files verification.
1158
1159 2007-09-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
1160
1161         * linux-nat.c (linux_nat_make_corefile_notes): Fixed a buffer overflow.
1162
1163 2007-09-01  Jan Kratochvil  <jan.kratochvil@redhat.com>
1164
1165         * Makefile.in (symfile.o): Update dependencies.
1166         * symfile.c (symbol_file_add_with_addrs_or_offsets): Initialize the
1167         DEBUGFILE variable.  FIND_SEPARATE_DEBUG_FILE called only if !PSYMTABS.
1168         (struct build_id): New structure.
1169         (build_id_bfd_get, build_id_verify, build_id_to_debug_filename): New.
1170         (find_separate_debug_file): New variable BUILD_ID.
1171         Call BUILD_ID_BFD_GET with BUILD_ID_TO_DEBUG_FILENAME as the first try.
1172
1173 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
1174
1175         * varobj.c (struct varobj): Fix comment
1176         for the type member not to lie when it can be 
1177         NULL.
1178         
1179 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
1180
1181         Implement -var-info-path-expression.
1182
1183         * mi/mi-cmds.h (mi_cmd_var_info_path_expression):
1184         Declare.
1185         * mi/mi-cmds.c (mi_cmds): Register var-info-path-expression.
1186         * mi/mi-cmd-var.c (mi_cmd_var_info_path_expression): New.
1187         * varobj.c (struct varobj): New field 'path_expr'.
1188         (c_path_expr_of_child, cplus_path_expr_of_child)
1189         (java_path_expr_of_child): New.
1190         (struct language_specific): New field path_expr_of_child.
1191         (varobj_create): Initialize the path_expr field.
1192         (varobj_get_path_expr): New.
1193         (new_variable): Initialize the path_expr field.
1194         (free_variable): Free the path_expr field.
1195         (adjust_value_for_children_access): New parameter
1196         WAS_TYPE.
1197         (c_number_of_children): Adjust.
1198         (c_describe_child): New parameter CFULL_EXPRESSION.
1199         Compute full expression.
1200         (c_value_of_child, c_type_of_child): Adjust.
1201         (cplus_number_of_children): Adjust.
1202         (cplus_describe_child): New parameter CFULL_EXPRESSION.
1203         Compute full expression.
1204         (cplus_name_of_child, cplus_value_of_child)
1205         (cplus_type_of_child): Adjust.
1206         * varobj.h (varobj_get_path_expr): Declare.
1207
1208 2007-08-31  Vladimir Prus  <vladimir@codesourcery.com>
1209
1210         * mi/mi-cmd-var.c (print_varobj): If a varobj
1211         type is NULL, don't try to print it.
1212         
1213 2007-08-30  Alan Modra  <amodra@bigpond.net.au>
1214
1215         * ppc-linux-nat.c (right_fill_reg): Delete.
1216         (supply_gregset): Use ppc_supply_gregset.
1217         (supply_fpregset): Use ppc_supply_fpregset.
1218         (fill_gregset): Use ppc_collect_gregset.
1219         (fill_fpregset): Use ppc_collect_fpregset.
1220         * ppc-linux-tdep.c (PPC_LINUX_PT_*): Don't define.
1221         (right_supply_register, ppc_linux_supply_gregset): Delete.
1222         (ppc32_linux_supply_gregset, ppc64_linux_supply_gregset): Delete.
1223         (ppc_linux_supply_fpregset): Delete.
1224         (ppc_linux_collect_gregset): New function.
1225         (ppc32_linux_reg_offsets, ppc64_linux_reg_offsets): New.
1226         (ppc32_linux_gregset, ppc64_linux_gregset): Update to use reg offsets,
1227         ppc_linux_supply_gregset, and ppc_collect_gregset.
1228         (ppc_linux_fpregset): Rename to ppc32_linux_fpregset and update.
1229         (ppc_linux_gregset, ppc_linux_fpregset): New functions.
1230         (ppc_linux_regset_from_core_section): Update.
1231         * ppc-tdep.h (ppc_linux_gregset, ppc_linux_fpregset): Declare.
1232         (ppc_linux_supply_gregset, ppc_linux_supply_fpregset): Delete.
1233         (struct ppc_reg_offsets): Add gpr_size, xr_size, fpscr_size fields.
1234         * ppcobsd-tdep.c (ppcobsd_supply_gregset): Delete FIXME and assert.
1235         (ppcobsd_collect_gregset): Likewise.
1236         (_initialize_ppcnbsd_tdep): Init gpr_size, xr_size, fpscr_size.
1237         * ppcnbsd-tdep.c (_initialize_ppcobsd_tdep): Likewise.
1238         * ppcobsd-nat.c (_initialize_ppcobsd_nat): Likewise.
1239         * rs6000-aix-tdep.c (rs6000_aix32_reg_offsets): Likewise.
1240         (rs6000_aix64_reg_offsets): Likewise.
1241         (rs6000_aix_supply_regset): Call ppc_supply_fpregset without testing
1242         ppc_floating_point_unit_p.
1243         (rs6000_aix_collect_regset): Similarly.
1244         * rs6000-tdep.c (ppc_supply_reg): Add regsize param.  Adjust offset
1245         when regsize is larger than regcache register size.
1246         (ppc_collect_reg): Similarly zero pad when regsize is larger than
1247         regcache register size.
1248         (ppc_greg_offset): New function, split out from..
1249         (ppc_supply_gregset): ..here.  Separate code handling all regs from
1250         single reg case.  Correct xer offset.
1251         (ppc_fpreg_offset): New function, split out from..
1252         (ppc_supply_fpregset): ..here.  Separate code handling all regs from
1253         single reg case.
1254         (ppc_collect_gregset, ppc_collect_fpregset): Likewise.
1255         (ppc_supply_fpregset, ppc_collect_fpregset): Don't assert we have
1256         a fp unit, instead return if no fp.
1257
1258 2007-08-29  Jim Blandy  <jimb@codesourcery.com>
1259
1260         * breakpoint.c (watch_command_1): Remove '#ifdef HPUXHPPA' block;
1261         this code has not been compiled for two years.
1262
1263 2007-08-29  Michael Snyder  <msnyder@access-company.com>
1264
1265         * event-top.c (gdb_readline2): Return after EOF.
1266
1267 2007-08-29  Joel Brobecker  <brobecker@adacore.com>
1268
1269         * symtab.c: Remove a function that has been commented out 3 years ago.
1270
1271 2007-08-29  Randolph Chung  <tausq@debian.org>
1272
1273         * hppa-tdep.c (hppa32_cannot_fetch_register)
1274         (hppa64_cannot_fetch_register): New functions.
1275         (hppa_gdbarch_init): Set cannot_fetch_register appropriately.
1276         * hppa-tdep.h (hppa_regnum): Add HPPA_CR26_REGNUM.
1277
1278 2007-08-28  Michael Snyder  <msnyder@access-company.com>
1279
1280         * mi/mi-cmd-var.c (mi_print_value_p): No longer necessary to 
1281         check for null before calling check_typedef.
1282
1283         * NEWS: Mention Coverity bug fixes.
1284
1285 2007-08-27  Markus Deuling  <deuling@de.ibm.com>
1286
1287         * spu-tdep.c (spu_pointer_to_address): New function.
1288         (spu_integer_to_address): Likewise.
1289         (spu_gdbarch_init): Add spu_pointer_to_address and 
1290         spu_integer_to_address to gdbarch.
1291
1292 2007-08-26  Pedro Alves  <pedro_alves@portugalmail.pt>
1293
1294         * arm-wince-tdep.c (ARM_WINCE_JB_PC): Change to 10.
1295
1296 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1297
1298         * Makefile.in (copying.c): Use the top-level COPYING3 as the file
1299         that contains the GDB license.
1300         * copying.awk: Adjust to the GPLv3 wording.
1301         * copying.c: Regenerate.
1302
1303 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1304
1305         * copying.awk: Protoization, and i18n markup.
1306
1307 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1308
1309         * config/djgpp/djconfig.sh: Switch license to GPLv3.
1310         * copyright.sh: Likewise.
1311         * gdb-events.sh: Likewise.
1312         * gdb_gcore.sh: Likewise.
1313         * gdb_mbuild.sh: Likewise.
1314         * gdbarch.sh: Likewise.
1315         * observer.sh: Likewise.
1316         * features/feature_to_c.sh: Likewise.
1317         * regformats/regdat.sh: Likewise.
1318
1319 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1320
1321         Switch the license of all .c files to GPLv3.
1322         Switch the license of all .h files to GPLv3.
1323         Switch the license of all .cc files to GPLv3.
1324
1325 2007-08-23  Joel Brobecker  <brobecker@adacore.com>
1326
1327         * configure.ac: Switch license to GPLv3.
1328
1329 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
1330
1331         * mips-tdep.c (mips_gdbarch_init): Use Tag_GNU_MIPS_ABI_FP to
1332         determine the file's FPU type.
1333
1334 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
1335
1336         * mips-tdep.c (mips_n32n64_fp_arg_chunk_p): New.
1337         (mips_n32n64_push_dummy_call): Always increment float_argreg along
1338         with argreg.  Use mips_n32n64_fp_arg_chunk_p.
1339
1340 2007-08-22  Daniel Jacobowitz  <dan@codesourcery.com>
1341
1342         * solib-svr4.c (scan_dyntag): Only read target memory when necessary.
1343         Fix formatting.
1344         (elf_locate_base): Look for DT_MIPS_RLD_MAP first.  Expand comments.
1345         (elf_lookup_lib_symbol): Fix formatting.
1346
1347 2007-08-21  Michael Snyder  <msnyder@access-company.com>
1348
1349         * dbxread.c (read_dbx_symtab): Guard null deref.
1350         Break up long line.
1351
1352         * valops.c (find_overload_match): Guard against NULL.
1353
1354 2007-08-21  Daniel Jacobowitz  <dan@codesourcery.com>
1355
1356         * MAINTAINERS (Patch Champions): Remove self.
1357
1358 2007-08-21  Chris Smith  <chris.smith@st.com>
1359
1360         * cli/cli-script.c (read_command_lines): Call dont_repeat for each
1361         line.
1362
1363 2007-08-18  Michael Snyder  <msnyder@access-company.com>
1364
1365         * stabsread.c (dbx_lookup_type): Memory leak.
1366
1367         * event-loop.c (delete_async_signal_handler): Move pointer null
1368         test to before pointer dereference.
1369
1370         * ui-out.c (append_header_to_list): Possible cut and paste error.
1371
1372         * MAINTAINERS: white space tweak.
1373
1374 2007-08-17  Michael Snyder  <msnyder@access-company.com>
1375
1376         * stack.c (print_frame): Memory leak.
1377
1378         * completer.c (filename_completer): Avoid memory leak.
1379         Remove unnecessary nested block.
1380
1381         * c-exp.y (parse_number): Memory leak.
1382
1383         * completer.c (location_completer): Must free 'fn_list', except 
1384         in the one case where it is returned (as 'list').
1385
1386         * varobj.c (value_of_root): Memory leak.
1387
1388         * gdbtypes.h (virtual_base_list): Remove export decl.
1389         * gdbtypes.c (virtual_base_list): Make static.  Not called outside.
1390         (virtual_base_index): Memory leak.
1391         (virtual_base_index_skip_primaries): Ditto.
1392
1393 2007-08-17  Maxim Grigoriev  <maxim2405@gmail.com>
1394
1395         * xtensa-tdep.c (ARG_NOF, ARG_1ST, PS_WOE, PS_EXC, C0_MAXOPDS)
1396         (C0_NREGS, C0_CLESV, C0_SP, C0_FP, C0_RA, C0_ARGS, C0_NARGS)
1397         (C0_CONST, C0_INEXP, C0_NOSTK): New macros.
1398         (xtensa_read_register): New function.
1399         (xtensa_windowed_frame_cache, xtensa_call0_frame_cache, xtensa_c0reg)
1400         (xtensa_insn_kind): New types.
1401         (xtensa_frame_cache, xtensa_alloc_frame_cache, xtensa_frame_cache)
1402         (xtensa_frame_prev_register, xtensa_return_value, xtensa_skip_prologue)
1403         (xtensa_verify_config, xtensa_pseudo_register_read)
1404         (xtensa_pseudo_register_write, xtensa_extract_return_value)
1405         (xtensa_store_return_value)
1406         (xtensa_push_dummy_call): Extended to support Xtensa Call0 ABI.
1407         (windowing_enabled, extract_call_winsize, xtensa_unwind_dummy_id)
1408         (xtensa_frame_this_id, xtensa_frame_prev_register)
1409         (xtensa_register_type, xtensa_reg_to_regnum): Cosmetic changes.
1410         (call0_frame_cache, call0_frame_get_reg_at_entry)
1411         (call0_classify_opcode, call0_track_op)
1412         (call0_analyze_prologue, call0_frame_cache): New functions.
1413
1414 2007-08-17  Vladimir Prus  <vladimir@codesourcery.com>
1415
1416         * breakpoint.c (bpstat_free): New.
1417         (bpstat_clear): Use bpstat_free.
1418         (delete_breakpoint): Document why we cannot
1419         remove bpstats from stop_bpstat.
1420         * breakpoint.h (bpstat_free): Declare.
1421                 
1422 2007-08-16  Michael Snyder  <msnyder@access-company.com>
1423
1424         * event-loop.c (gdb_wait_for_event): Move statement into "if" block.
1425
1426 2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
1427             Joel Brobecker  <brobecker@adacore.com>
1428
1429         * ada-lang.c (resolve_subexp): Correct arity of binary operators.
1430
1431 2007-08-15  Paul Hilfinger  <hilfinger@adacore.com>
1432             Joel Brobecker  <brobecker@adacore.com>
1433
1434         * ada-lang.c (possible_user_operator_p): Alternative fix to last
1435         checkin guarding against NULL.
1436
1437 2007-08-14  Michael Snyder  <msnyder@access-company.com>
1438
1439         * tui-command.c, tui-data.c, tui-disasm.c, tui-file.c, tui-io.c,
1440         tui-layout.c, tui-regs.c, tui-source.c, tui-win.c, tui-windata.c,
1441         tui-wingeneral.c, tui-winsource.c: Coding standard, && and ||
1442         go at beginning of new line.
1443
1444         * tui-data.c, tui-data.h, tui-disasm.c, tui-disasm.h, tui-hooks.c,
1445         tui-io.c, tui-layout.c, tui-layout.h, tui-out.c, tui-regs.c,
1446         tui-source.c, tui-source.h, tui-stack.c, tui-win.c, tui-win.h,
1447         tui-windata.c, tui-windata.h, tui-wingeneral.c, tui-winsource.c,
1448         tui-winsource.h, tui.c, tui.h: Function declarations and 
1449         definitions, wrap long lines.
1450
1451         * tui-command.c, tui-data.c, tui-disasm.c, tui-layout.c,
1452         tui-regs.c, tui-win.c, tui-windata.c, tui-winsource.c, tui.c:
1453         Reformat block comments to GNU standard.
1454
1455         * tui-command.c, tui-data.c, tui-data.h, tui-disasm.c, tui-file.c,
1456         tui-hooks.c, tui-interp.c, tui-io.c, tui-layout.c, tui-out.c,
1457         tui-regs.c, tui-regs.h, tui-source.c, tui-stack.c, tui-win.c,
1458         tui-windata.c, tui-wingeneral.c, tui-winsource.c, tui-winsource.h,
1459         tui.c, tui.h: Comment reformatting to coding standard (capitals, 
1460         spaces after periods, etc).     
1461
1462         * tui-data.c, tui-data.h, tui-disasm.c, tui-hooks.c, tui-layout.c,
1463         tui-regs.c, tui-source.c, tui-stack.c, tui-win.c, tui-windata.c,
1464         tui-wingeneral.c, tui-wingeneral.h, tui-winsource.c, tui.c,
1465         tui-winsource.h: Whitespace changes, fix pointer declarations
1466         to be consistant.
1467
1468 2007-08-14  Joel Brobecker  <brobecker@adacore.com>
1469             Michael Snyder  <msnyder@access-company.com>
1470
1471         * ada-lang.c (field_alignment): Guard against NULL.
1472
1473 2007-08-14  Joel Brobecker  <brobecker@adacore.com>
1474
1475         * MAINTAINERS (Global Maintainers): Add self.
1476
1477 2007-08-14  Michael Snyder  <msnyder@access-company.com>
1478
1479         * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
1480
1481         * ada-lang.c (possible_user_operator_p): Guard against NULL.
1482
1483         * varobj.c (cplus_describe_child): Guard against null.
1484         Use "NULL" instead of "0" to initialize pointers.
1485
1486 2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
1487
1488         * arm-tdep.c (arm_gdbarch_init): Allow unknown ABI and FPU settings
1489         to match any gdbarch with matching OSABI.  Set default ABI and FPU
1490         after running the OSABI handler.
1491
1492 2007-08-14  Daniel Jacobowitz  <dan@codesourcery.com>
1493
1494         * config/i386/linux.mh (NATDEPFILES): Move corelow.o from here...
1495         * config/i386/linux.mt (TDEPFILES): ...to here.
1496
1497 2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
1498
1499         * breakpoint.c (disable_breakpoints_in_shlibs): Remove
1500         the 'silent' parameter and code to implement that.
1501         * breakpoint.h (disable_breakpoints_in_shlibs): Adjust
1502         prototype.
1503         * win32-nat.c: Adjust.
1504         * solib.c: Adjust.
1505         
1506 2007-08-14  Vladimir Prus  <vladimir@codesourcery.com>
1507
1508         * breakpoint.c (update_breakpoints_after_exec): Don't
1509         set address to zero.
1510
1511 2007-08-13  Michael Snyder  <msnyder@access-company.com>
1512
1513         * valops.c: Whitespace clean-up.
1514
1515         * tui/tui-winsource.c (tui_alloc_source_buffer): Clean up allocation.
1516
1517         * event-top.c (command_line_handler): Memory leak.
1518
1519         * mi/mi-cmd-var.c (mi_cmd_var_set_format): Memory leak.
1520         No need to make copy.
1521
1522         * source.c (find_source_lines): Require symtab 's'.
1523
1524 2007-08-11  Michael Snyder  <msnyder@access-company.com>
1525
1526         * completer.c: Spelling fix in comments.
1527
1528 2007-08-10  Michael Snyder  <msnyder@access-company.com>
1529
1530         * gdbtypes.c: Coding standard cleanup.
1531         * gdbtypes.c: Comment/whitespace cleanup.
1532
1533         * stabsread.c (read_huge_number): Attempt to compute value before
1534         values that it depends on.
1535
1536         * linespec.c (decode_dollar): Dead code, ptr can't be non-null.
1537         (decode_objc): Use "NULL" instead of 0.
1538         (find_method): Ditto.
1539         (decode_all_digits): Ditto.
1540         (decode_dollar): Ditto.
1541
1542         * mi/mi-main.c (mi_cmd_data_evaluate_expression): Resource leak.
1543
1544         * mi/mi-cmd-var.c (mi_cmd_var_list_children): Memory leak.
1545
1546         * solib-svr4.c (enable_break): Don't free tmp_pathname until
1547         after closing bfd.
1548
1549         * completer.c: Comment/whitespace cleanup.
1550
1551 2007-08-10  Joel Brobecker  <brobecker@adacore.com>
1552
1553         * Makefile.in (i386nbsd-nat.o): Add missing dependency.
1554
1555 2007-08-10  Maxim Grigoriev  <maxim2405@gmail.com>
1556
1557         * remote-fileio.c (remote_fileio_resize_fd_map): Initialize newly
1558         allocated file descriptors.
1559
1560 2007-08-10  Joel Brobecker  <brobecker@adacore.com>
1561
1562         * Makefile.in: Minor cleanup throughout; add some missing variables,
1563         add some missing rules, remove some rules that are no longer needed,
1564         and fix the dependencies in several rules.
1565
1566 2007-08-10  Ludovic Courtès  <ludo@gnu.org>
1567
1568         * Makefile.in (SFILES): Add scm-{exp,lang,valprint}.c.
1569         (scm_lang_h, scm_tags_h): New.
1570         (COMMON_OBS): Add scm-{exp,lang,valprint}.o.
1571         (scm-exp.o, scm-lang.o, scm-valprint.o): New targets.
1572         * defs.h (enum language): Add `language_scm'.
1573
1574         * MAINTAINERS: Add Emacs local variables to use UTF-8 upon
1575         opening.
1576
1577 2007-08-09  Ludovic Courtès  <ludo@gnu.org>
1578
1579         * MAINTAINERS (Write After Approval): Add myself.
1580
1581 2007-08-09  Michael Snyder  <msnyder@access-company.com>
1582
1583         * solib.c (solib_open): Memory leak -- openp returns xmalloc buffer.
1584
1585 2007-08-09  Joel Brobecker  <brobecker@adacore.com>
1586
1587         * solib-som.c (som_relocate_section_addresses): Stop saving
1588         the $CODE$ section in the so_list structure.
1589
1590 2007-08-08  Maxim Grigoriev  <maxim2405@gmail.com>
1591
1592         * xtensa-tdep.h (XTENSA_MAX_COPROCESSOR): New.
1593         (xtensa_register_group_t): Add entries for coprocessors.
1594         * xtensa-tdep.c (xtensa_init_reggroups): New register groups.
1595         (xtensa_add_reggroups): Likewise.
1596         (xtensa_register_reggroup_p): Likewise.
1597         (xtensa_coprocessor_register_group): New function.
1598         (xtensa_cp): New.
1599
1600 2007-08-08  Jan Kratochvil  <jan.kratochvil@redhat.com>
1601
1602         * serial.c (serial_open): Fix the OPEN parameter macro expansion.
1603
1604 2007-08-08  Michael Snyder  <msnyder@access-company.com>
1605
1606         * target.c (target_read_string): Guard against null.
1607
1608         * varobj.c (value_of_root): Move alloc after return to avoid leak.
1609
1610         * tui/tui-layout.c (tui_set_layout): Dead code, dead variable.
1611         (tui_set_layout_for_display_command): Mem leak.
1612
1613         * top.c (command_line_input): Memory leak.
1614
1615         * solib-svr4.c (open_symbol_file_object): Memory leak.
1616         (svr4_current_sos): Ditto.
1617         (enable_break): Ditto.
1618
1619         * cp-valprint.c (cp_print_hpacc_virtual_table_entries): Memory leak.
1620
1621         * dwarf2read.c (add_partial_symbol): Memory leak.
1622
1623 2007-08-06  Michael Snyder  <msnyder@access-company.com>
1624
1625         * ada-lang.c (desc_bounds): Comparison of function address to NULL.
1626
1627 2007-08-05  Jim Blandy  <jimb@codesourcery.com>
1628
1629         * macroexp.c (init_buffer): Remove testing code that overrides the
1630         caller's length guess.
1631         (gather_arguments): Use a larger initial size, now that the vector
1632         growth code has been exercised.
1633
1634 2007-08-05  Pedro Alves  <pedro_alves@portugalmail.pt>
1635
1636         * solib-target.c (solib_target_relocate_section_addresses): Add
1637         orig_delta to addr_high.
1638
1639 2007-08-04  Michael Snyder  <msnyder@access-company.com>
1640
1641         * remote-fileio.c (remote_fileio_func_write): Memory leak.
1642
1643         * breakpoint.c (print_one_breakpoint): Off by one error.
1644
1645         * tracepoint.c (add_register): Off by one error.
1646         (stringify_collection_list): Free malloc buffer.
1647
1648 2007-08-03  Michael Snyder  <msnyder@access-company.com>
1649
1650         * mi-cmd-var.c (mi_cmd_var_delete): Remove unused variable,
1651         stop memory leak, straighten out cleanups.
1652
1653         * jv-lang.c (java_link_class_type): Guard against NULL.
1654
1655 2007-08-02  Michael Snyder  <msnyder@access-company.com>
1656
1657         * gdbtypes.c (create_set_type): Test should only be done within
1658         the preceeding if block.  Otherwise, variable is uninitialized.
1659
1660         * gdbtypes.c (check_typedef): Guard NULL.
1661
1662 2007-08-01  Michael Snyder  <msnyder@access-company.com>
1663
1664         * cli/cli-decode.c (lookup_cmd): Check for null earlier, to 
1665         avoid dereference in lookup_cmd_1.
1666
1667         * tui/tui-data.c (tui_alloc_content): Move assign out of if, 
1668         clean up long lines.
1669         (tui_alloc_generic_win_info): Tidy by using XMALLOC macro.
1670         (tui_alloc_win_info): Ditto.
1671         (tui_add_content_elements): Ditto.
1672         * tui/tui-file.c (tui_file_magic): Ditto.
1673
1674 2007-07-31  Michael Snyder  <msnyder@access-company.com>
1675
1676         * breakpoint.c (breakpoint_init_inferior): Add 'else' to 'if'.
1677         True and false paths are mutually exclusive.
1678
1679         * event-top.c (command_line_handler): Add pedantic return.
1680
1681         * f-valprint.c (info_common_command): Bail out to prevent null
1682         pointer deref.  Break up a long line.
1683
1684         * exec.c (xfer_memory): Remove redundant condition from 'if'.
1685
1686         * symfile.c (reread_separate_symbols): Free xmalloced memory.
1687
1688         * printcmd.c (build_address_symbolic): Remove dead code and dead 
1689         variable.
1690
1691 2007-07-31  Daniel Jacobowitz  <dan@codesourcery.com>
1692
1693         * linespec.c (minsym_found): Advance to the next line if possible.
1694
1695 2007-07-31  Pedro Alves  <pedro_alves@portugalmail.pt>
1696
1697         * arm-wince-tdep.c (arm_wince_init_abi): Remove svr4 related call.
1698         * config/arm/wince.mt (TDEPFILES): Remove solib-legacy.o and
1699         solib-svr4.o, and add solib-target.o
1700
1701 2007-07-27  Michael Snyder  <msnyder@access-company.com>
1702
1703         * tui/tui-data.c (tui_alloc_generic_win_info): Wrong arg for sizeof.
1704
1705 2007-07-26  Maciej W. Rozycki  <macro@linux-mips.org>
1706
1707         * MAINTAINERS (Write After Approval): Add myself.
1708
1709 2007-07-26  Maciej W. Rozycki  <macro@mips.com>
1710
1711         * Makefile.in (MAKEHTMLFLAGS): Also search the current directory
1712         for include files.
1713
1714 2007-07-25  Maciej W. Rozycki  <macro@mips.com>
1715
1716         * Makefile.in (MAKEHTMLFLAGS): Remove "-glossary".
1717
1718 2007-07-24  Michael Snyder  <msnyder@access-company.com>
1719
1720         * solib-svr4.c (svr4_fetch_objfile_link_map): Null pointer check of
1721         'buffer' must cover both branches that call strcmp (Coverity).
1722
1723         * stack.c (print_frame_args): Check return value of lookup_symbol.
1724
1725         * ax-gdb.c (find_field): Guard against null ptr.
1726
1727 2007-07-24  Ulrich Weigand  <uweigand@de.ibm.com>
1728
1729         * regformats/reg-spu.dat: Fix order of npc, id registers.
1730
1731 2007-07-24  Ulrich Weigand  <uweigand@de.ibm.com>
1732
1733         * target.c (memory_xfer_partial): Accesses to unmapped overlay
1734         sections should always go to the executable file.
1735
1736 2004-07-20  Chris Dearman  <chris@mips.com>
1737
1738         * mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
1739         prologue instructions.
1740
1741 2007-07-20  Maciej W. Rozycki  <macro@mips.com>
1742
1743         * mips-tdep.c (mips_next_pc): Use is_mips16_addr() instead of
1744         a direct test.
1745
1746 2007-07-20  Chris Dearman  <chris@mips.com>
1747             Maciej W. Rozycki  <macro@mips.com>
1748
1749         * mips-tdep.c (fetch_mips_16): Fix typos and reformat the
1750         description.
1751
1752 2007-07-17  Pedro Alves  <pedro_alves@portugalmail.pt>
1753             Daniel Jacobowitz  <dan@codesourcery.com>
1754
1755         * config/i386/cygwin.mt (TDEPFILES): Add solib-target.o.
1756         * coff-pe-read.c (read_pe_exported_syms): Delete verbose
1757         printf.
1758         * NEWS: Mention gdbserver DLL support.
1759
1760 2007-07-17  Daniel Jacobowitz  <dan@codesourcery.com>
1761
1762         * dwarf2read.c (dwarf_decode_lines): Detect address size mismatches.
1763
1764 2007-07-16  H.J. Lu  <hongjiu.lu@intel.com>
1765
1766         * i386-linux-nat.c (fetch_regs): Work around gcc 3.4 alias
1767         warning bug.
1768
1769 2007-07-13  Kevin Buettner  <kevinb@redhat.com>
1770
1771         * mep-tdep.c (mep_analyze_prologue): Update comment for BRA
1772         instruction case.
1773
1774 2007-07-12  Kevin Buettner  <kevinb@redhat.com>
1775
1776         * mep-tdep.c (IS_BRA, BRA_DISP): New macros.
1777         (mep_analyze_prologue): Add case for BRA instruction.
1778
1779 2007-07-12  Ulrich Weigand  <uweigand@de.ibm.com>
1780
1781         * solib-svr4.c (LM_ADDR_CHECK): Relax prelink recognition heuristic.
1782
1783 2007-07-10  Nick Roberts  <nickrob@snap.net.nz>
1784
1785         * breakpoint.c: Include "top.h".
1786         (breakpoint_1): Don't set convenience variable $_ if server prefix
1787         is used.
1788         (_initialize_breakpoint): Describe this behaviour in command help.
1789
1790 2007-07-08  Pedro Alves  <pedro_alves@portugalmail.pt>
1791
1792         * solib-target.c (library_list_start_segment): Cast address to
1793         CORE_ADDR.
1794
1795 2007-07-06  Mark Kettenis  <kettenis@gnu.org>
1796
1797         * bsd-uthread.c (bsd_uthread_wait): Don't try to fetch thread IDs
1798         for terminated processes.
1799
1800 2007-07-05  Michael Snyder  <msnyder@access-company.com>
1801
1802         * event-top.c (cli_command_loop): Prompt string can (and should)
1803         be freed after call to readline (Coverity).  Also move local var
1804         declarations into block where they are used.
1805
1806         * tui/tui-interp.c (tui_command_loop): Prompt string can (and
1807         should) be freed after call to readline (Coverity).  Also move
1808         local var declarations into block where they are used.
1809
1810 2007-07-03  Andreas Schwab  <schwab@suse.de>
1811
1812         * linux-nat.c (linux_nat_info_proc_cmd): Fix parsing of columns in
1813         /proc/../stat.
1814
1815 2007-07-03  Paul Gilliam  <pgilliam@us.ibm.com>
1816             Thiago Bauermann  <bauerman@br.ibm.com>
1817             Joseph S. Myers  <joseph@codesourcery.com>
1818             Daniel Jacobowitz  <dan@codesourcery.com>
1819
1820         * remote.c (remote_check_symbols): Use
1821         gdbarch_convert_from_func_ptr_addr.
1822         * infcall.c (find_function_addr): Handle function descriptors
1823         without debugging information.
1824         * ppc-linux-tdep.c (ppc_linux_convert_from_func_ptr_addr): Renamed
1825         from ppc64_linux_convert_from_func_ptr_addr.  Handle -msecure-plt.
1826         (ppc_linux_init_abi): Always set convert_from_func_ptr_addr.
1827         * solib-svr4.c (solib_break_names): Remove "._dl_debug_state".
1828         (bfd_lookup_symbol): Do not take a SECT_FLAGS argument.  Always
1829         allow SEC_CODE and SEC_DATA.
1830         (enable_break): Update calls.  Pass current_target to solib_add.
1831         Use gdbarch_convert_from_func_ptr_addr.
1832
1833 2007-07-03  Ilko Iliev  <iliev@ronetix.at>
1834             Daniel Jacobowitz  <dan@codesourcery.com>
1835
1836         * symfile.c (print_transfer_performance): Avoid integer overflow.
1837         Use larger units.
1838
1839 2007-07-03  Markus Deuling  <deuling@de.ibm.com>
1840
1841         * cp-namespace.c (lookup_symbol_file): Add block to
1842         lookup_symbol_global call.
1843         * Makefile.in (solist_h): Add dependency on symtab header.
1844         (symtab.o): Add dependency on solist header.
1845         * solib.c (solib_global_lookup): New function.
1846         * solib-svr4.c (scan_dyntag): Likewise.
1847         (elf_locate_base): Call helper routine scan_dyntag.
1848         (elf_lookup_lib_symbol): New function.
1849         (_initialize_svr4_solib): Add elf_lookup_lib_symbol to svr4_so_ops.
1850         * solist.h (symtab.h): New include.
1851         (struct target_so_ops): New member lookup_lib_global_symbol.
1852         (solib_global_lookup): New prototype.
1853         * symtab.c: New include solist.h.
1854         (lookup_objfile_from_block): New function.
1855         (lookup_global_symbol_from_objfile): New function.
1856         (basic_lookup_symbol_nonlocal): Add block to lookup_symbol_global call.
1857         (lookup_symbol_global): Call library-specific lookup procedure.
1858         * symtab.h (lookup_global_symbol_from_objfile): New prototype.
1859
1860         * NEWS: Document framework.
1861
1862 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1863
1864         * target-descriptions.c (tdesc_create_reg): Do not set reg->type
1865         to NULL.
1866
1867         * cli/cli-script.c (build_command_line): Update NULL check.
1868
1869 2007-07-02  Michael Snyder  <msnyder@access-company.com>
1870
1871         * p-exp.y (yylex): Memory leak, 'uptokstart' must be freed (Coverity).
1872
1873 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1874
1875         * Makefile.in (XMLFILES): Add library-list.dtd.
1876         (ALLDEPFILES): Add solib-target.o.
1877         (solib-target.o): New rule.
1878         * remote.c (PACKET_qXfer_libraries): New constant.
1879         (remote_protocol_features): Add qXfer:libraries:read.
1880         (remote_wait): Recognize library stop replies.
1881         (remote_async_wait): Likewise.  Fix typo.
1882         (remote_xfer_partial): Handle TARGET_OBJECT_LIBRARIES.
1883         (init_remote_async_ops): Fix typo.
1884         (_initialize_remote): Register "set remote library-info-packet".
1885         * solib-som.c (som_current_sos): Set addr_low and addr_high.
1886         * solib-target.c: New file.
1887         * solib.c (solib_map_sections): Use addr_low and addr_high instead
1888         of textsection.
1889         (info_sharedlibrary_command): Likewise.
1890         (solib_add_library, solib_remove_library): New.
1891         * solist.h (struct so_list): Replace textsection with addr_low and
1892         addr_high.
1893         * target.h (enum target_object): Add TARGET_OBJECT_LIBRARIES.
1894         * NEWS: Describe new qXfer:libraries:read and shared library
1895         event support.
1896         * features/library-list.dtd: New.
1897
1898 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1899
1900         * infrun.c (inferior_ignoring_startup_exec_events): Delete.
1901         (start_remote): Use STOP_QUIETLY_REMOTE.
1902         (handle_inferior_event): Do not condition TARGET_WAITKIND_LOADED
1903         support on a SOLIB_ADD definition.  Update breakpoints_inserted.
1904         Update to match shared library event breakpoint support.  Only
1905         resume if appropriate.  Handle STOP_QUIETLY_REMOTE.
1906         (normal_stop): Handle TARGET_WAITKIND_LOADED.
1907         * fork-child.c (startup_inferior): Do not set
1908         inferior_ignoring_startup_exec_events
1909         * inferior.h (inferior_ignoring_startup_exec_events): Delete
1910         declaration.
1911         (enum stop_kind): Improve documentation.  Add STOP_QUIETLY_REMOTE.
1912
1913 2007-07-02  Markus Deuling  <deuling@de.ibm.com>
1914
1915         * breakpoint.c (insert_bp_location): Remove dead code
1916         (DISABLE_UNSETTABLE_BREAK).
1917         (disable_breakpoints_in_shlibs)
1918         (disable_breakpoints_in_unloaded_shlib): Likewise (comment).
1919
1920 2007-07-02  Daniel Jacobowitz  <dan@codesourcery.com>
1921
1922         * breakpoint.c (reattach_breakpoints): Do not use remove_breakpoint.
1923         Call insert_bp_location.
1924
1925 2007-07-01  H.J. Lu  <hongjiu.lu@intel.com>
1926
1927         * core-regset.c (fetch_core_registers): Work around gcc 3.4
1928         alias warning bug.
1929
1930 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1931
1932         * minsyms.c (lookup_minimal_symbol_by_pc_section): Search fewer
1933         objfiles.
1934
1935 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1936
1937         * top.c (gdb_readline_wrapper_line): Call rl_callback_handler_remove.
1938         (struct gdb_readline_wrapper_cleanup): Remove prompt_orig.
1939         (gdb_readline_wrapper_cleanup): Do not reset the prompt.
1940         (gdb_readline_wrapper): Do not save the prompt.  Pass our prompt
1941         to display_gdb_prompt.
1942
1943 2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
1944
1945         PR symtab/2161
1946         * target.c (memory_xfer_partial): Do not continue past targets with
1947         all memory.
1948
1949 2007-06-30  Andreas Schwab  <schwab@suse.de>
1950
1951         * m68k-tdep.c (m68k_ps_type): New.
1952         (m68k_init_types): New.
1953         (m68k_register_type): Use m68k_ps_type for PS register.
1954         (_initialize_m68k_tdep): Call m68k_init_types.
1955
1956         * m68k-tdep.c (m68k_gdbarch_init): Don't infer coldfire flavour
1957         from the generic m68k arch.
1958
1959 2007-06-28  Michael Snyder  <msnyder@access-company.com>
1960
1961         * m2-typeprint.c (m2_print_type): Move pointer ref after null test
1962         (Coverity).
1963
1964         * linux-thread-db.c (thread_db_get_thread_local_address): Add
1965         gdb_assert before using return value of find_thread_pid (Coverity).
1966
1967         * source.c (unset_substitute_path_command): Plug leak (Coverity).
1968
1969         * cli/cli-script.c (build_command_line): Add null pointer guard 
1970         (Coverity).
1971         
1972 2007-06-27  Daniel Jacobowitz  <dan@codesourcery.com>
1973
1974         * linux-thread-db.c (thread_db_attach): Delete.
1975         (thread_db_detach): Typo fix.  Call target_mourn_inferior
1976         instead of fixing up proc_handle.
1977         (have_threads_callback, have_threads): New functions.
1978         (thread_db_wait): Remove dead proc_handle.pid check.  Only
1979         translate PTIDs if we have registered threads.  Check for new
1980         threads if we have none.
1981         (thread_db_create_inferior, thread_db_post_startup_inferior): Delete.
1982         (find_new_threads_callback): Only enable event reporting if TID == 0.
1983         (same_ptid_callback): New.
1984         (thread_db_get_thread_local_address): Check for new threads.
1985         (init_thread_db_ops): Don't set to_attach, to_create_inferior,
1986         or to_post_startup_inferior.
1987
1988 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
1989
1990         * infrun.c (adjust_pc_after_break): Do not assume software single-step
1991         is always active if SOFTWARE_SINGLE_STEP_P is true.
1992         (resume): Use gdbarch_software_single_step[_p] instead of
1993         SOFTWARE_SINGLE_STEP[_P].
1994         (handle_inferior_event): Do not check for SOFTWARE_SINGLE_STEP_P.
1995
1996         * gdbarch.sh (software_single_step): Remove target macro.
1997         * gdbarch.h, gdbarch.c: Regenerate.
1998
1999 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
2000
2001         * gdbarch.sh (gdbarch_swap_ftype, deprecated_register_gdbarch_swap,
2002         DEPRECATED_REGISTER_GDBARCH_SWAP): Remove.
2003         (struct gdbarch_swap, struct gdbarch_swap_registration, 
2004         struct gdbarch_swap_registry, gdbarch_swap_registry,
2005         current_gdbarch_swap_init_hack, current_gdbarch_swap_out_hack,
2006         current_gdbarch_swap_in_hack): Remove.
2007         (find_arch_by_info): Do not call current_gdbarch_swap_init_hack.
2008         (gdbarch_find_by_info): Do not call current_gdbarch_swap_in_hack
2009         and current_gdbarch_swap_out_hack, update current_gdbarch directly.
2010         (deprecated_current_gdbarch_select_hack): Likewise.
2011         * gdbarch.h, gdbarch.c: Regenerate.
2012
2013 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
2014
2015         * infrun.c (clear_proceed_status): Clean up stop_registers.
2016         (normal_stop): Allocate regcache for stop_registers.
2017         (struct inferior_status): Remove stop_registers member.
2018         (save_inferior_status): Do not save stop_registers.
2019         (restore_inferior_status): Do not restore stop_registers.
2020         (discard_inferior_status): Do not discard stop_registers.
2021         (build_infrun): Remove.
2022         (_initialize_infrun): Do not swap stop_registers.
2023
2024 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
2025
2026         * remote.c (remote_address_masked): If remote_address_size is zero,
2027         default to target address size.
2028         (build_remote_gdbarch_data): Remove.
2029         (_initialize_remote): Do not swap remote_address_size.
2030
2031 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
2032
2033         * gdbtypes.h (builtin_type_true_char, builtin_type_void,
2034         builtin_type_char, builtin_type_short, builtin_type_int,
2035         builtin_type_long, builtin_type_signed_char,
2036         builtin_type_unsigned_char, builtin_type_unsigned_short,
2037         builtin_type_unsigned_int, builtin_type_unsigned_long,
2038         builtin_type_float, builtin_type_double, builtin_type_long_double,
2039         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2040         builtin_type_bool, builtin_type_long_long,
2041         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2042         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Replace global
2043         variable declaration with compatibility macro.
2044         * gdbtypes.c (builtin_type_true_char, builtin_type_void,
2045         builtin_type_char, builtin_type_short, builtin_type_int,
2046         builtin_type_long, builtin_type_signed_char,
2047         builtin_type_unsigned_char, builtin_type_unsigned_short,
2048         builtin_type_unsigned_int, builtin_type_unsigned_long,
2049         builtin_type_float, builtin_type_double, builtin_type_long_double,
2050         builtin_type_complex, builtin_type_double_complex, builtin_type_string,
2051         builtin_type_bool, builtin_type_long_long,
2052         builtin_type_unsigned_long_long, builtin_type_void_data_ptr,
2053         builtin_type_void_func_ptr, builtin_type_CORE_ADDR): Remove.
2054         (build_gdbtypes): Remove.
2055         (_initialize_gdbtypes): Do not call build_gdbtypes, move installing
2056         opaque-type-resolution command here.   Do not call 
2057         deprecated_register_gdbarch_swap.
2058
2059 2007-06-22  Ulrich Weigand  <uweigand@de.ibm.com>
2060
2061         * gdbtypes.h (struct builtin_type): New members nodebug_text_symbol,
2062         nodebug_data_symbol, nodebug_unknown_symbol, and nodebug_tls_symbol.
2063         * gdbtypes.c (gdbtypes_post_init): Initialize nodebug_ default types.
2064
2065         * parse.c (msym_text_symbol_type, msym_data_symbol_type): Remove.
2066         (msym_unknown_symbol_type, msym_tls_symbol_type): Remove.
2067         (write_exp_msymbol): Use builtin nodebug_ types instead of them.
2068         (build_parse): Remove.
2069         (_initialize_parse): Do not call build_parse.  Do not register
2070         msym_ types for gdbarch-swapping.
2071
2072         * dwarf2read.c (new_symbol): Use default nodebug_data_symbol type
2073         instead of creating private type.
2074
2075         * xcoffread.c (func_symbol_type, var_symbol_type): Remove.
2076         (_initialize_xcoffread): Do not initialized them.
2077         (process_xcoff_symbol): Use builtin nodebug_ types instead of them.
2078
2079         * mdebugread.c (nodebug_func_symbol_type): Remove.
2080         (nodebug_var_symbol_type): Remove.
2081         (_initialize_mdebugread): Do not initialize them.
2082         (parse_symbol): Use builtin nodebug_ type instead of them.
2083         (parse_procedure): Likewise.
2084
2085 2007-06-21  Chris Dearman  <chris@mips.com>
2086
2087         * printcmd.c (do_one_display): If display/i, start with an initial
2088         line feed to avoid bad layout if there is a branch delay slot.
2089
2090 2007-06-21  Nigel Stephens  <nigel@mips.com>
2091             Maciej W. Rozycki  <macro@mips.com>
2092
2093         * disasm.c (gdb_print_insn): Return the number of branch delay
2094         slot instructions too.
2095         * disasm.h (gdb_print_insn): Update prototype.
2096         * printcmd.c (branch_delay_insns): New variable to record the
2097         number of delay slot instructions after disassembling a branch.
2098         (print_formatted): Record the number of branch delay slot
2099         instructions.
2100         (do_examine): When disassembling, if the last instruction
2101         disassembled has any branch delay slots, then bump the count so
2102         that they get disassembled too.
2103         * tui/tui-disasm.c (tui_disassemble): Update the call to
2104         gdb_print_insn().
2105         * NEWS: Document the new behaviour.
2106
2107 2007-06-21  Andreas Schwab  <schwab@suse.de>
2108
2109         * regcache.c (write_pc_pid): Restore missing else.
2110
2111 2007-06-20  Ulrich Weigand  <uweigand@de.ibm.com>
2112
2113         * regcache.c (regcache_print): Use get_current_regcache ()
2114         instead of current_regcache.
2115
2116 2007-06-20  H.J. Lu  <hongjiu.lu@intel.com>
2117
2118         PR 4606
2119         * gcore.c (gcore_command): Use bfd_make_section_anyway_with_flags
2120         instead of bfd_make_section_anyway.
2121         (gcore_create_callback): Likewise.  Also set SEC_NEVER_LOAD
2122         when clearing SEC_LOAD.
2123
2124 2007-06-19  Joseph Myers  <joseph@codesourcery.com>
2125
2126         * arm-tdep.c (arm_push_dummy_call): Correct padding of partial
2127         registers for big-endian.
2128
2129 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
2130
2131         * gdbarch.sh (TARGET_PRINT_INSN): Replace by gdbarch_print_insn.
2132         * disasm.c (dump_insns, gdb_print_insn): Likewise.
2133         * gdbarch.c, gdbarch.h: Regenerate.
2134
2135 2007-06-19  Markus Deuling  <deuling@de.ibm.com>
2136
2137         * gdbarch.sh (BELIEVE_PCC_PROMOTION): Replace by
2138         gdbarch_believe_pcc_promotion.
2139         * stabsread.c (define_symbol): Likewise.
2140         Remove unnecessary definition.
2141         * coffread.c (process_coff_symbol): Remove unnecessary code.
2142         * gdbarch.c, gdbarch.h: Regenerate.
2143
2144 2007-06-19  Daniel Jacobowitz  <dan@codesourcery.com>
2145
2146         * configure.ac: Do not use ${objdir}.
2147         * configure: Regenerated.
2148
2149 2007-06-18  Ulrich Weigand  <uweigand@de.ibm.com>
2150
2151         * gdbarch.sh (deprecated_register_size): Remove.
2152         * gdbarch.h, gdbarch.c: Regenerate.
2153
2154         * arm-tdep.c (arm_push_dummy_call): Replace DEPRECATED_REGISTER_SIZE
2155         by INT_REGISTER_SIZE.
2156         (thumb_get_next_pc, arm_return_in_memory): Likewise.
2157         (arm_gdbarch_init): Do not call set_gdbarch_deprecated_register_size.
2158         * ia64-tdep.c (ia64_gdbarch_init): Do not call
2159         set_gdbarch_deprecated_register_size.
2160
2161 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2162
2163         * gdbarch.sh (DEPRECATED_FP_REGNUM): Replace by
2164         gdbarch_deprecated_fp_regnum.
2165         * std-regs.c (value_of_builtin_frame_fp_reg): Likewise.
2166         * remote-mips.c (mips_wait, mips_fetch_registers): Likewise.
2167         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2168         * arch-utils.h (gdbarch_virtual_frame_pointer_ftype): Likewise
2169         (comment).
2170         * gdbarch.c, gdbarch.h: Regenerate.
2171
2172 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2173
2174         * gdbarch.sh (EXTRACT_RETURN_VALUE): Replace with
2175         gdbarch_extract_return_value.
2176         * value.c (generic_use_struct_convention): Likewise (comment).
2177         * ia64-tdep.c (ia64_use_struct_convention): Likewise (comment).
2178         * arch-utils.c (legacy_return_value): Likewise.
2179         * arch-utils.h (legacy_return_value): Likewise (comment).
2180         * gdbarch.sh (STORE_RETURN_VALUE): Replace by
2181         gdbarch_store_return_value.
2182         * stack.c (return_command): Likewise (comment).
2183         * arch-utils.h (legacy_return_value): Likewise (comment).
2184         * arch-utils.c (legacy_return_value): Likewise.
2185         * gdbarch.c, gdbarch.h: Regenerate.
2186
2187 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2188
2189         * gdbarch.sh (DEPRECATED_USE_STRUCT_CONVENTION): Replace by
2190         gdbarch_deprecated_use_struct_convention.
2191         * arch-utils.c (legacy_return_value): Likewise.
2192         * gdbarch.c, gdbarch.h: Regenerate.
2193
2194 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2195
2196         * gdbarch.sh (DEPRECATED_FUNCTION_START_OFFSET): Replace by
2197         gdbarch_deprecated_function_start_offset.
2198         * symtab.c (find_function_start_sal)skip_prologue_using_sal): Likewise.
2199         * linespec.c (minsym_found): Likewise.
2200         * infrun.c (handle_inferior_event): Likewise.
2201         * infcall.c (find_function_addr): Likewise.
2202         * cli/cli-cmds.c (disassemble_command): Likewise.
2203         * gdbarch.c, gdbarch.h: Regenerate.
2204
2205 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2206
2207         * gdbarch.sh (DEPRECATED_REG_STRUCT_HAS_ADDR): Replace by
2208         gdbarch_deprecated_reg_struct_has_addr.
2209         * infcall.c (call_function_by_hand): Likewise.
2210         (DEPRECATED_REG_STRUCT_HAS_ADDR_P): Replace by
2211         * gdbarch_deprecated_reg_struct_has_addr_p.
2212         * infcall.c (call_function_by_hand): Likewise.
2213         * gdbarch.c, gdbarch.h: Regenerate.
2214
2215 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2216
2217         * gdbarch.sh (DEPRECATED_EXTRACT_STRUCT_VALUE_ADDRESS): Remove.
2218         * sh-tdep.c (sh_extract_struct_value_address): Remove.
2219         (sh_gdbarch_init): Remove
2220         set_gdbarch_deprecated_extract_struct_value_address.
2221         * sh64-tdep.c (sh64_extract_struct_value_address): Remove.
2222         (sh64_gdbarch_init): Remove
2223         set_gdbarch_deprecated_extract_struct_value_address.
2224         * ia64-tdep.c (ia64_extract_struct_value_address): Remove.
2225         (ia64_gdbarch_init): Remove
2226         set_gdbarch_deprecated_extract_struct_value_address.
2227         * frv-tdep.c (frv_extract_struct_value_address): Remove.
2228         (frv_gdbarch_init): Remove
2229         set_gdbarch_deprecated_extract_struct_value_address.
2230         * gdbarch.c, gdbarch.h: Regenerate.
2231
2232 2007-06-18  Markus Deuling  <deuling@de.ibm.com>
2233
2234         * gdbarch.sh (SP_REGNUM): Replace by gdbarch_sp_regnum.
2235         * v850-tdep.c (v850_unwind_sp): Likewise.
2236         * std-regs.c (value_of_builtin_frame_sp_reg): Likewise.
2237         * stack.c (frame_info): Likewise.
2238         * stabsread.c (define_symbol): Likewise.
2239         * sh-tdep.c (sh_push_dummy_call_fpu, sh_push_dummy_call_nofpu)
2240         (sh_dwarf2_frame_init_reg, sh_frame_cache, sh_frame_prev_register)
2241         (sh_unwind_sp): Likewise.
2242         * sh64-tdep.c (sh64_push_dummy_call, sh64_frame_cache)
2243         (sh64_frame_prev_register, sh64_unwind_sp): Likewise.
2244         * rs6000-tdep.c (rs6000_push_dummy_call, rs6000_unwind_dummy_id)
2245         (rs6000_frame_cache): Likewise.
2246         * rs6000-nat.c (store_register): Likewise.
2247         * remote-mips.c (mips_wait): Likewise.
2248         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2249         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call)
2250         (ppc64_sysv_abi_push_dummy_call): Likewise.
2251         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2252         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2253         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2254         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2255         * m32r-rom.c (m32r_supply_register): Likewise.
2256         * frame.c (frame_sp_unwind): Likewise.
2257         * mips-tdep.c (mips_insn16_frame_cache)
2258         (mips_insn32_frame_cache): Likewise (comment).
2259         * m68klinux-nat.c (supply_gregset): Likewise.
2260         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2261         * ia64-tdep.c (ia64_frame_prev_register): Likewise.
2262         * i386-tdep.c (i386_get_longjmp_target): Likewise.
2263         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2264         * cris-tdep.c (cris_regnums, cris_sigcontext_addr)
2265         (cris_sigtramp_frame_unwind_cache, cris_push_dummy_call)
2266         (cris_scan_prologue, crisv32_scan_prologue, cris_unwind_sp)
2267         (cris_register_type, crisv32_register_type)
2268         (cris_dwarf2_frame_init_reg): Likewise.
2269         * arch-utils.c (legacy_virtual_frame_pointer): Likewise.
2270         * amd64-tdep.c (amd64_frame_prev_register): Likewise.
2271         * amd64-linux-tdep.c (amd64_linux_sigcontext_addr): Likewise.
2272         * libunwind-frame.c (libunwind_frame_cache): Likewise.
2273
2274         * gdbarch.sh (PC_REGNUM): Replace by gdbarch_pc_regnum.
2275         * regcache.c (read_pc_pid, generic_target_write_pc): Likewise.
2276         * xtensa-tdep.c (xtensa_register_type, xtensa_supply_gregset)
2277         (xtensa_unwind_pc, xtensa_frame_cache, xtensa_frame_prev_register)
2278         (xtensa_extract_return_value, xtensa_store_return_value): Likewise.
2279         * v850-tdep.c (v850_unwind_pc): Likewise.
2280         * stack.c (frame_info): Likewise.
2281         * sh-tdep.c (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs)
2282         (sh2a_show_regs, sh2a_nofpu_show_regs, sh3e_show_regs)
2283         (sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs)
2284         (sh_dwarf2_frame_init_reg, sh_frame_prev_register, sh_unwind_pc)
2285         (sh_dsp_show_regs): Likewise.
2286         * shnbsd-tdep.c (shnbsd_supply_gregset)
2287         (shnbsd_collect_gregset): Likewise.
2288         * shnbsd-nat.c (GETREGS_SUPPLIES): Likewise.
2289         * sh64-tdep.c (sh64_compact_reg_base_num, sh64_show_media_regs)
2290         (sh64_frame_prev_register, sh64_unwind_pc): Likewise.
2291         * rs6000-tdep.c (ppc_supply_gregset, ppc_collect_gregset)
2292         (6000_register_reggroup_p, rs6000_unwind_pc)
2293         (rs6000_frame_cache): Likewise.
2294         * rs6000-nat.c (regmap, rs6000_fetch_inferior_registers)
2295         (rs6000_store_inferior_registers): Likewise.
2296         * remote-mips.c (mips_wait, mips_load): Likewise.
2297         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
2298         * ppcobsd-tdep.c (ppcobsd_sigtramp_frame_cache): Likewise.
2299         * ppcobsd-nat.c (ppcobsd_supply_pcb): Likewise.
2300         * ppcnbsd-tdep.c (ppcnbsd_sigtramp_cache_init): Likewise.
2301         * ppcnbsd-nat.c (getregs_supplies, ppcnbsd_supply_pcb): Likewise.
2302         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2303         * ppc-linux-nat.c (ppc_register_u_addr, fetch_ppc_registers)
2304         (store_ppc_registers, fill_gregset): Likewise.
2305         * mips-tdep.c (mips_stub_frame_cache, mips_gdbarch_init): Likewise.
2306         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_fill_reg): Likewise.
2307         * mipsnbsd-nat.c (getregs_supplies): Likewise.
2308         * m68k-tdep.c (m68k_register_type, m68k_unwind_pc): Likewise.
2309         * m68klinux-nat.c (supply_gregset): Likewise.
2310         * irix5-nat.c (fill_gregset): Likewise.
2311         * i386-tdep.c (i386_unwind_pc): Likewise.
2312         * i386-linux-nat.c (i386_linux_resume): Likewise.
2313         * frame.c (get_prev_frame_1): Likewise.
2314         * dwarf2-frame.c (dwarf2_frame_default_init_reg): Likewise.
2315         * dbug-rom.c (dbug_supply_register): Likewise.
2316         * cris-tdep.c (cris_sigtramp_frame_unwind_cache, cris_scan_prologue)
2317         (crisv32_scan_prologue, cris_unwind_pc, cris_register_size)
2318         (cris_register_type, crisv32_register_type, crisv32_register_name)
2319         (cris_dwarf2_frame_init_reg, find_step_target)
2320         (cris_software_single_step, cris_supply_gregset)
2321         (cris_regnums): Likewise.
2322         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2323         * aix-thread.c (special_register_p, supply_sprs64, supply_sprs32)
2324         (fill_sprs64, fill_sprs32, store_regs_user_thread): Likewise.
2325         * std-regs.c (value_of_builtin_frame_pc_reg): Likewise.
2326         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2327
2328         * gdbarch.sh (PS_REGNUM): Replace by gdbarch_ps_regnum.
2329         * dbug-rom.c (dbug_supply_register): Likewise.
2330         * xtensa-tdep.c (xtensa_supply_gregset, xtensa_frame_cache)
2331         (xtensa_frame_prev_register, xtensa_push_dummy_call): Likewise.
2332         * win32-nat.c (win32_resume): Likewise.
2333         * std-regs.c (value_of_builtin_frame_ps_reg): Likewise.
2334         * m68k-tdep.c (m68k_register_type): Likewise.
2335         * m68klinux-nat.c (supply_gregset): Likewise.
2336
2337         * gdbarch.sh (FP0_REGNUM): Replace by gdbarch_fp0_regnum.
2338         * sh-tdep.c (sh_extract_return_value_fpu, sh_store_return_value_fpu)
2339         (sh2e_show_regs, sh2a_show_regs, sh3e_show_regs, sh4_show_regs)
2340         (sh_sh2a_register_type, sh_sh3e_register_type, sh_sh4_register_type)
2341         (fv_reg_base_num, dr_reg_base_num): Likewise.
2342         * sh64-tdep.c (sh64_fv_reg_base_num, sh64_dr_reg_base_num)
2343         (sh64_fpp_reg_base_num, sh64_compact_reg_base_num, sh64_push_dummy_call)
2344         (sh64_extract_return_value, sh64_store_return_value)
2345         (sh64_show_media_regs, sh64_show_compact_regs, sh64_register_type)
2346         (sh64_do_fp_register, sh64_media_print_registers_info): Likewise.
2347         * procfs.c (procfs_fetch_registers, procfs_store_registers)
2348         (invalidate_cache): Likewise.
2349         * ppc-linux-tdep.c (ppc_linux_sigtramp_cache): Likewise.
2350         * mipsnbsd-tdep.c (mipsnbsd_supply_fpreg)
2351         (mipsnbsd_fill_fpreg): Likewise.
2352         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers)
2353         (mipsnbsd_store_inferior_registers): Likewise.
2354         * mips-linux-tdep.c (mips_supply_fpregset, mips_fill_fpregset)
2355         (mips64_supply_fpregset, mips64_fill_fpregset): Likewise.
2356         * mips-linux-nat.c (mips64_linux_register_addr): Likewise.
2357         * m68k-tdep.c (m68k_register_type, m68k_convert_register_p): Likewise.
2358         * m68klinux-nat.c (getfpregs_supplies, supply_fpregset)
2359         (fill_fpregset): Likewise.
2360         * irix5-nat.c (supply_fpregset, fill_fpregset): Likewise.
2361         * i386-tdep.h (struct_return): Likewise (comment).
2362         * i386-nto-tdep.c (i386nto_register_area): Likewise.
2363         * go32-nat.c (fetch_register, go32_fetch_registers, store_register)
2364         (go32_store_registers): Likewise.
2365         * alpha-tdep.c (alpha_next_pc): Likewise.
2366         * alpha-linux-nat.c (alpha_linux_register_u_offset): Likewise.
2367         * alphabsd-nat.c (alphabsd_fetch_inferior_registers)
2368         (alphabsd_store_inferior_registers): Likewise.
2369         * core-regset.c (fetch_core_registers): Likewise.
2370         * i386v4-nat.c (supply_fpregset, fill_fpregset): Likewise.
2371
2372         * gdbarch.c, gdbarch.h: Regenerate.
2373
2374 2007-06-18  Daniel Jacobowitz  <dan@codesourcery.com>
2375
2376         * coffread.c (coff_sym_fns): Add default_symfile_segments.
2377         * dbxread.c (start_psymtab): Check HAVE_ELF.
2378         (aout_sym_fns): Likewise.
2379         * elfread.c (elf_symfile_segments): New.
2380         (elf_sym_fns): Add elf_symfile_segments.
2381         * mipsread.c (ecoff_sym_fns): Add default_symfile_segments.
2382         * remote.c (get_offsets): Use symfile_map_offsets_to_segments.
2383         Skip if there is no symfile_objfile.  Handle TextSeg and DataSeg.
2384         * somread.c (som_sym_fns): Use default_symfile_segments.
2385         * symfile.c (find_sym_fns): Take a BFD and return the sym_fns.
2386         (init_objfile_sect_indices): Call symfile_find_segment_sections.
2387         (default_symfile_segments): New function.
2388         (syms_from_objfile): Update call to find_sym_fns.
2389         (symfile_get_segment_data, free_symfile_segment_data): New.
2390         (symfile_map_offsets_to_segments): New.
2391         (symfile_find_segment_sections): New.
2392         * symfile.h (struct symfile_segment_data): New.
2393         (struct sym_fns): Add sym_segments.
2394         (default_symfile_segments, symfile_get_segment_data)
2395         (free_symfile_segment_data): New prototypes.
2396         (symfile_map_offsets_to_segments): Likewise.
2397         * xcoffread.c (xcoff_sym_fns): Add default_symfile_segments.
2398         * Makefile.in (COMMON_OBS): Remove elfread.o.
2399         (elf_internal_h): New.
2400         (elfread.o): Update.
2401         * configure.ac: Add elfread.o to COMMON_OBS if bfd/elf.o was
2402         compiled.
2403         * config.in, configure: Regenerated.
2404         * NEWS: Mention qOffsets changes.
2405
2406 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2407
2408         * gdbtypes.h (builtin_type_m2_char, builtin_type_m2_int,
2409         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2410         Replace global variable declaration with compatibility macro.
2411         (struct builtin_m2_type): New data type.
2412         (builtin_m2_type): Add prototype.
2413         * m2-lang.c (builtin_type_m2_char, builtin_type_m2_int,
2414         builtin_type_m2_card, builtin_type_m2_real, builtin_type_m2_bool):
2415         Remove global variables.
2416         (m2_language_arch_info): Use builtin_m2_type instead of variables.
2417         (build_m2_types): New function.
2418         (m2_type_data): New variable.
2419         (builtin_m2_type): New function.
2420         (_initialize_m2_language): Do not build data types.  Register
2421         m2_type_data per-gdbarch data.
2422
2423 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2424
2425         * gdbtypes.h (builtin_type_f_character, builtin_type_f_logical,
2426         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2427         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2428         builtin_type_f_real_s8, builtin_type_f_real_s16,
2429         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2430         builtin_type_f_complex_s32, builtin_type_f_void): Replace global
2431         variable declaration with compatibility macro.
2432         (struct builtin_f_type): New data type.
2433         (builtin_f_type): Add prototype.
2434         * f-lang.c (builtin_type_f_character, builtin_type_f_logical,
2435         builtin_type_f_logical_s1, builtin_type_f_logical_s2,
2436         builtin_type_f_integer, builtin_type_f_integer_s2, builtin_type_f_real,
2437         builtin_type_f_real_s8, builtin_type_f_real_s16,
2438         builtin_type_f_complex_s8, builtin_type_f_complex_s16,
2439         builtin_type_f_complex_s32, builtin_type_f_void): Remove variables.
2440         (f_language_arch_info): Use builtin_f_type instead of variables.
2441         (build_fortran_types): Build builtin_f_type structure instead of
2442         setting global type variables.
2443         (f_type_data): New variable.
2444         (builtin_f_type): New function.
2445         (_initialize_f_language): Do not call build_fortran_types.  Do not
2446         swap global type variables.  Register f_type_data per-gdbarch data.
2447
2448 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2449
2450         * f-lang.c (_initialize_f_language): Do not initialize or
2451         swap builtin_type_string.
2452
2453 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2454
2455         * std-regs.c (builtin_type_frame_reg, build_builtin_type_frame_reg,
2456         value_of_builtin_frame_reg): Remove.
2457         (_initialize_frame_reg): Do not swap builtin_type_frame_reg.  Remove
2458         inactive call to value_of_builtin_frame_reg.
2459
2460 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2461
2462         * gdbarch.sh (bfd_vma_bit): Remove.
2463         * gdbarch.c, gdbarch.h: Regenerate.
2464
2465         * gdbtypes.h (builtin_bfd_vma_type): Remove.
2466         * gdbtypes.h (builtin_bfd_vma_type): Remove.
2467         (build_gdbtypes): Do not initialize it.
2468         (_initialize_gdbtypes): Do not swap it.
2469
2470 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2471
2472         * gdbtypes.c (builtin_type_v2_double, builtin_type_v4_float, 
2473         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2474         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2475         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2476         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
2477         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2478         builtin_type_vec64, builtin_type_vec128): Remove.
2479         (init_simd_type): Remove.
2480         (init_vector_type): Make global.
2481         (build_builtin_type_vec64, build_builtin_type_vec128): Remove.
2482         (build_gdbtypes): Do not build vector types.
2483         (_initialize_gdbtypes): Do not swap vector types.
2484         * gdbtypes.h (builtin_type_v2_double, builtin_type_v4_float, 
2485         builtin_type_v2_int64, builtin_type_v4_int32, builtin_type_v8_int16,
2486         builtin_type_v16_int8, builtin_type_v2_float, builtin_type_v2_int32,
2487         builtin_type_v4_int16, builtin_type_v8_int8, builtin_type_v4sf,
2488         builtin_type_v4si, builtin_type_v16qi, builtin_type_v8qi, 
2489         builtin_type_v8hi, builtin_type_v4hi, builtin_type_v2si,
2490         builtin_type_vec64, builtin_type_vec128): Remove declarations.
2491         (init_vector_type): Add prototype.
2492
2493         * i386-tdep.h (struct gdbarch_tdep): Add i386_mmx_type and
2494         i386_sse_type members.
2495         (i386_mmx_type, i386_sse_type): Change from variables to functions.
2496         * i386-tdep.c (i386_mmx_type, i386_sse_type): Remove variables.
2497         (i386_init_types): Do not build vector types.
2498         (i386_mmx_type, i386_sse_type): New functions.
2499         (i386_register_type): Call them instead of using global variables.
2500         (i386_gdbarch_init): Use XCALLOC to allocate tdep structure.
2501         * amd64-tdep.c (amd64_register_type): Call i386_sse_type instead
2502         of using global variable.
2503
2504         * rs6000-tdep.h (struct gdbarch_tdep): Add ppc_builtin_type_vec64
2505         and ppc_builtin_type_vec128 members.
2506         * rs6000-tdep.c (rs6000_builtin_type_vec64): New function.
2507         (rs6000_builtin_type_vec128): Likewise.
2508         (rs6000_register_type): Call them instead of using builtin_type_vec64
2509         and builtin_type_vec128.
2510         (rs6000_gdbarch_init): Use XCALLOC to allocate tdep structure.
2511
2512         * spu-tdep.c (struct gdbarch_tdep): New data type.
2513         (spu_builtin_type_vec128): Remove variable.
2514         (spu_builtin_type_vec128): New function.
2515         (spu_register_type): Call it instead of using global variable.
2516         (spu_gdbarch_init): Allocate tdep structure.
2517         (spu_init_vector_type): Remove function.
2518         (_initialize_spu_tdep): Do not call it.
2519
2520 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2521
2522         * amd64-tdep.c (struct amd64_register_info): Remove.
2523         (amd64_register_info): Remove.
2524         (amd64_register_names): New static variable.
2525         (AMD64_NUM_REGS): Use amd64_register_names instead of
2526         amd64_register_info.
2527         (amd64_register_name): Likewise.
2528         (amd64_register_type): Do not refer to amd64_register_info.
2529
2530         * s390-tdep.c (struct s390_register_info): Remove.
2531         (s390_register_info): Remove.
2532         (s390_register_name): Do not refer to s390_register_info.
2533         (s390_register_type): Likewise.
2534
2535         * sparc64-tdep.c (struct sparc64_register_info): Remove.
2536         (sparc64_register_info, sparc64_pseudo_register_info): Remove.
2537         (sparc64_register_names, sparc64_pseudo_register_names): New.
2538         (SPARC64_NUM_REGS, SPARC64_NUM_PSEUDO_REGS): Use
2539         sparc64_register_names and sparc64_pseudo_register_names instead of
2540         sparc64_register_info and sparc64_pseudo_register_info.
2541         (sparc64_register_name): Likewise.
2542         (sparc64_register_type): Do not refer to sparc64_register_info
2543         and sparc64_pseudo_register_info.
2544
2545 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2546
2547         * c-lang.c (cplus_builtin_types): Remove.
2548         (enum cplus_primitive_types): New data type.
2549         (cplus_language_arch_info): New function.
2550         (cplus_language_defn): Set la_language_arch_info member.  Do not set
2551         la_builtin_type_vector and string_char_type members.
2552
2553         * f-lang.c (f_builtin_types): Remove.
2554         (enum f_primitive_types): New data type.
2555         (f_language_arch_info): New function.
2556         (f_language_de): Set la_language_arch_info member.  Do not set
2557         la_builtin_type_vector and string_char_type members.
2558
2559         * m2-lang.c (m2_builtin_types): Remove.
2560         (enum m2_primitive_types): New data type.
2561         (m2_language_arch_info): New function.
2562         (m2_language_defn): Set la_language_arch_info member.  Do not set
2563         la_builtin_type_vector and string_char_type members.
2564
2565         * objc-lang.c (objc_builtin_types): Remove.
2566         (objc_language): Set la_language_arch_info member.  Do not set
2567         la_builtin_type_vector and string_char_type members.
2568
2569         * p-lang.c (pascal_builtin_types): Remove.
2570         (enum pascal_primitive_types): New data type.
2571         (pascal_language_arch_info): New function.
2572         (pascal_language_defn): Set la_language_arch_info member.  Do not set
2573         la_builtin_type_vector and string_char_type members.
2574
2575 2007-06-16  Ulrich Weigand  <uweigand@de.ibm.com>
2576
2577         * regcache.c (struct regcache): Add ptid_t member.
2578         (regcache_xmalloc): Initialize it.
2579         (regcache_cpy_no_passthrough): Do not refer to current_regcache.
2580         (regcache_dup): Likewise.
2581         (regcache_dup_no_passthrough): Likewise.
2582         (current_regcache): Make static.
2583         (registers_ptid): Remove variable.
2584         (get_thread_regcache): New function.
2585         (get_current_regcache): New function.
2586         (registers_changed): Implement by freeing current regcache.
2587         (regcache_raw_read): Do not refer to current_regcache.  Set 
2588         inferior_ptid to regcache->ptid while calling target routines.
2589         (regcache_raw_write): Likewise.
2590         (regcache_raw_supply): Do not refer to current_regcache.
2591         (read_pc_pid): Use thread regcache.  Do not modify inferior_ptid.
2592         (write_pc_pid): Likewise.
2593         (build_regcache): Remove.
2594         (_initialize_regcache): Do not call DEPRECATED_REGISTER_GDBARCH_SWAP
2595         or deprecated_register_gdbarch_swap.  Do not initialize
2596         registers_ptid.
2597         * regcache.h (get_current_regcache): Add prototype.
2598         (get_thread_regcache): Likewise.
2599         (current_regcache): Remove declaration.
2600
2601         * corelow.c (core_open): Replace current_regcache by
2602         get_current_regcache ().
2603         * frame.c (frame_pop): Likewise.
2604         (put_frame_register): Likewise.
2605         (get_current_frame, create_new_frame): Likewise.
2606         * mi/mi-main.c (mi_cmd_data_write_register_values): Likewise.
2607         * stack.c (return_command): Likewise.
2608         * infcall.c (call_function_by_hand): Likewise.
2609         * infrun.c (resume): Likewise.
2610         (save_inferior_status, restore_inferior_status): Likewise.
2611         * linux-fork.c (fork_load_infrun_state): Likewise.
2612         (fork_save_infrun_state): Likewise.
2613         * win32-nat.c (win32_resume): Likewise.
2614         * i386fbsd-nat.c (i386fbsd_resume): Likewise.
2615         * monitor.c (monitor_wait): Likewise.
2616         * remote.c (remote_wait): Likewise.
2617         * remote-mips.c (mips_wait): Likewise.
2618
2619         * bsd-kvm.c (bsd_kvm_open): Likewise
2620         (bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Likewise.
2621         * fbsd-nat.c (fbsd_make_corefile_notes): Likewise.
2622         * i386-linux-nat.c (i386_linux_resume): Likewise.
2623         * ia64-linux-nat.c (ia64_linux_insert_watchpoint): Likewise.
2624         (ia64_linux_stopped_data_address): Likewise.
2625
2626         * frv-tdep.c (frv_fdpic_loadmap_addresses): Likewise.
2627         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
2628         * mep-tdep.c (current_me_module, current_options): Likewise.
2629         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Likewise.
2630
2631         * linux-nat.c (linux_nat_do_thread_registers): Use thread
2632         regcache instead of current_regcache.  Call target_fetch_registers.
2633         (linux_nat_corefile_thread_callback): Update call site.
2634         (linux_nat_do_registers): Likewise.
2635         * procfs.c (procfs_do_thread_registers): Use thread regcache instead
2636         of current_regcache.
2637         (procfs_make_note_section): Likewise.
2638         * proc-service.c (ps_lgetregs, ps_lsetregs): Likewise.
2639         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2640         * sol-thread.c (ps_lgetregs, ps_lsetregs): Likewise.
2641         (ps_lgetfpregs, ps_lsetfpregs): Likewise.
2642
2643 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2644
2645         * regcache.c (read_register, read_register_pid): Remove.
2646         (write_register, write_register_pid): Likewise.
2647         * regcache.h (read_register, read_register_pid): Remove prototype.
2648         (write_register, write_register_pid): Likewise.
2649
2650 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2651
2652         * gdbarch.sh (read_pc): Add REGCACHE argument.  Remove PTID argument.
2653         (write_pc): Likewise.  Remove default implementation, add predicate.
2654         * gdbarch.c, gdbarch.h: Regenerate.
2655         * regcache.c (read_pc_pid): Use current regcache instead of calling
2656         read_register_pid.
2657         (write_pc_pid): Check gdbarch_write_pc predicate, implement default
2658         case inline.
2659         (generic_target_write_pc): Remove.
2660         * inferior.h (generic_target_write_pc): Remove.
2661         * frv-tdep.c (frv_gdbarch_init): Do not install it.
2662         * m68hc11-tdep.c (m68hc11_gdbarch_init): Likewise.
2663         * rs6000-tdep.c (rs6000_gdbarch_init): Likewise.
2664         * sh64-tdep.c (sh64_gdbarch_init): Likewise.
2665         * sh-tdep.c (sh_gdbarch_init): Likewise.
2666         * xstormy16-tdep.c (xstormy16_gdbarch_init): Likewise.
2667
2668         * avr-tdep.c (avr_read_pc): Add REGCACHE argument.  Remove PTID
2669         argument.  Use REGCACHE instead of calling read_register_pid.
2670         * hppa-hpux-tdep.c (hppa_hpux_read_pc): Likewise.
2671         * hppa-tdep.c (hppa_read_pc): Likewise.
2672         * hppa-tdep.h (hppa_read_pc): Likewise.
2673         * ia64-tdep.c (ia64_read_pc): Likewise.
2674         * m32r-tdep.c (m32r_read_pc): Likewise.
2675         * mep-tdep.c (mep_read_pc): Likewise.
2676         * mn10300-tdep.c (mn10300_read_pc): Likewise.
2677         * spu-tdep.c (spu_read_pc): Likewise.
2678
2679         * arm-tdep.c (arm_write_pc): Add REGCACHE argument.  Remove PTID
2680         argument.  Use REGCACHE instead of calling write_register_pid.
2681         * avr-tdep.c (avr_write_pc): Likewise.
2682         * hppa-hpux-tdep.c (hppa_hpux_write_pc): Likewise.
2683         * hppa-tdep.c (hppa_write_pc): Likewise.
2684         * hppa-tdep.h (hppa_write_pc): Likewise.
2685         * i386-linux-tdep.c (i386_linux_write_pc): Likewise.
2686         * amd64-linux-tdep.c (amd64_linux_write_pc): Likewise.
2687         * ia64-linux-tdep.c (ia64_linux_write_pc): Likewise.
2688         * ia64-tdep.c (ia64_write_pc): Likewise.
2689         * ia64-tdep.h (ia64_write_pc): Likewise.
2690         * m32r-tdep.c (m32r_write_pc): Likewise.
2691         * m88k-tdep.c (m88k_write_pc): Likewise.
2692         * mep-tdep.c (mep_write_pc): Likewise.
2693         * mips-tdep.c (mips_write_pc): Likewise.
2694         * mips-linux-tdep.c (mips_linux_write_pc): Likewise.
2695         * mn10300-tdep.c (mn10300_write_pc): Likewise.
2696         * sparc-tdep.c (sparc_write_pc): Likewise.
2697         * spu-tdep.c (spu_write_pc): Likewise.
2698
2699         * mips-tdep.c (read_signed_register): Remove.
2700         (read_signed_register_pid): Likewise.
2701         (mips_read_pc): Add REGCACHE argument.  Remove PTID argument.
2702         Use REGCACHE instead of calling read_signed_register_pid.
2703
2704 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2705
2706         * gdbarch.sh (push_dummy_code): Add REGCACHE argument.
2707         * gdbarch.c, gdbarch.h: Regenerate.
2708         * infcall.c (generic_push_dummy_code): Add REGCACHE argument.
2709         (push_dummy_code): Likewise.  Pass it to callee.
2710         (call_function_by_hand): Pass current regcache to push_dummy_code.
2711
2712         * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Add REGCACHE
2713         argument.  Use it instead of current_regcache.
2714
2715         * cris-tdep.c (cris_push_dummy_code): Add REGCACHE argument.
2716         * sparc-tdep.c (sparc32_push_dummy_code): Likewise.
2717
2718 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2719
2720         * gdbarch.sh (get_longjmp_target): Add FRAME argument.
2721         * gdbarch.c, gdbarch.h: Regenerate.
2722         * infrun.c (handle_inferior_event): Pass current frame to
2723         gdbarch_get_longjmp_target.
2724
2725         * alpha-tdep.c (alpha_get_longjmp_target): Add FRAME argument.
2726         Read registers from FRAME instead of using read_register.
2727         Use get_frame_arch instead of current_gdbarch.
2728         * arm-tdep.c (arm_get_longjmp_target): Likewise.
2729         * i386-tdep.c (i386_get_longjmp_target): Likewise.
2730         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
2731         * mips-linux-tdep.c (mips_linux_get_longjmp_target): Likewise.
2732         (mips64_linux_get_longjmp_target): Likewise.
2733         * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Likewise.
2734
2735 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2736
2737         * gdbarch.sh (skip_trampoline_code): Add FRAME argument.
2738         * gdbarch.c, gdbarch.h: Regenerate.
2739         * arch-utils.c (generic_skip_trampoline_code): Add FRAME argument.
2740         * arch-utils.h (generic_skip_trampoline_code): Likewise.
2741         * infrun.c (handle_inferior_event): Pass current frame to
2742         gdbarch_skip_trampoline_code and skip_language_trampoline.
2743
2744         * language.c (unk_lang_trampoline): Add FRAME argument.
2745         (skip_language_trampoline): Add FRAME argument.  Pass it to
2746         skip_trampoline callback.
2747         * language.h: Add forward declaration of struct frame_info.
2748         (struct language_defn): Add FRAME argument to skip_trampoline.
2749         (skip_language_trampoline): Add FRAME argument.
2750         * cp-abi.c (cplus_skip_trampoline): Add FRAME argument.  Pass it
2751         to skip_trampoline callback.
2752         * cp-abi.h: Add forward declaration of struct frame_info.
2753         (cplus_skip_trampoline): Add FRAME argument.
2754         (struct cp_abi_ops): Add FRAME argument to skip_trampoline callback.
2755         * gnu-v3-abi.c (gnuv3_skip_trampoline): Add FRAME argument.  Pass it
2756         to gdbarch_skip_trampoline_code.
2757         * objc-lang.c (objc_skip_trampoline): Add FRAME argument.  Pass it
2758         to gdbarch_skip_trampoline_code.
2759
2760         * minsyms.c (find_solib_trampoline_target): Add FRAME argument.
2761         * symtab.h (find_solib_trampoline_target): Likewise.
2762         * obsd-tdep.c (obsd_skip_solib_resolver): Pass current frame to
2763         find_solib_trampoline_target.
2764
2765         * arm-tdep.c (arm_skip_stub): Add FRAME argument.  Read registers
2766         from FRAME instead of calling read_register.
2767
2768         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Add FRAME
2769         argument.  Read registers from FRAME instead of using read_register.
2770         * hppa-tdep.c (hppa_skip_trampoline_code): Likewise.
2771         * hppa-tdep.h (hppa_skip_trampoline_code): Add FRAME argument.
2772
2773         * i386-cygwin-tdep.c (i386_cygwin_skip_trampoline_code): Add FRAME
2774         argument.
2775
2776         * m32c-tdep.c (m32c_skip_trampoline_code): Add FRAME argument.
2777
2778         * mips-tdep.c (mips_skip_trampoline_code): Add FRAME argument.  Read
2779         registers from FRAME instead of using read_signed_register.
2780
2781         * ppc-linux-tdep.c (ppc_linux_skip_trampoline_code): Add FRAME
2782         argument.
2783         (ppc64_standard_linkage_target): Likewise.  Read registers from FRAME
2784         instead of using read_register.
2785         (ppc64_skip_trampoline_code): Add FRAME argument.  Pass it to
2786         ppc64_standard_linkage_target.
2787         * rs6000-tdep.c (rs6000_skip_trampoline_code): Add FRAME argument.
2788         Pass it to find_solib_trampoline_target.  Read registers from FRAME
2789         instead of using read_register.
2790
2791         * xstormy16-tdep.c (xstormy16_skip_trampoline_code): Add FRAME
2792         argument.
2793
2794 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2795
2796         * gdbarch.sh (software_single_step): Replace REGCACHE argument by
2797         FRAME argument.
2798         * gdbarch.c, gdbarch.h: Regenerate.
2799         * infrun.c (resume): Pass current frame to SOFTWARE_SINGLE_STEP.
2800
2801         * alpha-tdep.c (alpha_next_pc): Add FRAME argument.  Retrieve
2802         registers from FRAME instead of using read_register.
2803         (alpha_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2804         to alpha_next_pc.  Use get_frame_pc instead of read_pc.
2805         * alpha-tdep.h (alpha_software_single_step): Replace REGCACHE
2806         argument by FRAME.
2807
2808         * arm-tdep.c (shifted_reg_val): Add FRAME argument.  Read registers
2809         from FRAME instead of using read_register.
2810         (thumb_get_next_pc): Likewise.
2811         (arm_get_next_pc): Likewise.
2812         (arm_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2813         to arm_get_next_pc.  Use get_frame_pc instead of read_register.
2814         * arm-tdep.h (arm_software_single_step): Replace REGCACHE
2815         argument by FRAME.
2816
2817         * cris-tdep.c (find_step_target): Add FRAME argument.  Read registers
2818         from FRAME instead of using read_register.
2819         (cris_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2820         to find_step_target.
2821
2822         * mips-tdep.c (mips32_next_pc): Add FRAME argument.  Read registers
2823         from FRAME instead of using read_register / read_signed_register.
2824         (extended_mips16_next_pc): Likewise.
2825         (mips16_next_pc): Likewise.
2826         (mips_next_pc): Likewise.
2827         (mips_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2828         to mips_next_pc.  Use get_frame_pc instead of read_pc.
2829         * mips-tdep.h (mips_software_single_step): Replace REGCACHE
2830         argument by FRAME.
2831
2832         * rs6000-tdep.c (branch_dest): Add FRAME argument.  Use it instead
2833         of current frame.  Read registers from FRAME.
2834         (deal_with_atomic_sequence): Add FRAME argument.  Pass it to
2835         branch_dest.  Use get_frame_pc instead of read_pc.
2836         (rs6000_software_single_step): Likewise.
2837         (bl_to_blrl_insn_p): Do not call branch_dest.
2838         * rs6000-tdep.h (rs6000_software_single_step): Replace REGCACHE
2839         argument by FRAME.
2840
2841         * sparc64-linux-tdep.c (sparc64_linux_step_trap): Add FRAME argument.
2842         Read registers from FRAME instead of current regcache.
2843         * sparc-linux-tdep.c (sparc32_linux_step_trap): Likewise.
2844         * sparcnbsd-tdep.c (sparcnbsd_step_trap): Likewise.
2845         * sparc-tdep.c (sparc_address_from_register): Remove.
2846         (sparc_analyze_control_transfer): Pass FRAME argument instead of
2847         GDBARCH.  Pass FRAME to step_trap callback.
2848         (sparc_step_trap): Add FRAME argument.
2849         (space_software_single_step): Replace REGCACHE by FRAME.  Pass FRAME
2850         to sparc_analyze_control_transfer.  Read registers from FRAME instead
2851         of calling sparc_address_from_register.
2852         * sparc-tdep.h (struct gdbarch_tdep): Add FRAME argument to
2853         step_trap callback.
2854         (sparc_address_from_register): Remove prototype.
2855         (sparc_software_single_step): Replace REGCACHE argument by FRAME.
2856         (sparcnbsd_step_trap): Add FRAME argument.
2857
2858         * spu-tdep.c (spu_software_single_step): Replace REGCACHE argument
2859         by FRAME.  Read registers from FRAME instead of REGCACHE.
2860
2861 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2862
2863         * arm-tdep.c (arm_print_float_info): Use register value from FRAME
2864         instead of calling read_register.
2865
2866         * avr-tdep.c (avr_push_dummy_call): Write to REGCACHE instead of
2867         calling write_register.
2868
2869         * hppa-tdep.c (hppa32_push_dummy_call): Write to REGCACHE instead of
2870         calling write_register.
2871
2872         * ia64-tdep.c (find_func_descr): Add REGCACHE parameter.  Use it
2873         instead of calling read_register.
2874         (ia64_push_dummy_call): Update call to find_func_descr.  Use REGCACHE
2875         instead of calling read_register and write_register.
2876
2877         * m32r-tdep.c (m32r_linux_supply_gregset): Use REGCACHE parameter
2878         instead of current_regcache.
2879
2880         * mn10300-tdep.c (mn10300_push_dummy_call): Write to REGCACHE instead
2881         of calling write_register.
2882         * mn10300-linux-tdep.c (am33_supply_fpregset_method): Use REGCACHE
2883         parameter instead of current_regcache.
2884
2885         * mips-tdep.c (mips2_fp_compat): Add FRAME parameter.  Use it 
2886         instead of calling read_register.
2887         (mips_read_fp_register_double, mips_print_fp_register): Update calls.
2888         (mips_eabi_push_dummy_call): Use REGCACHE instead of write_register.
2889         (mips_n32n64_push_dummy_call): Likewise.
2890         (mips_o32_push_dummy_call): Likewise.
2891         (mips_o64_push_dummy_call): Likewise.
2892
2893         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use REGCACHE
2894         parameter instead of current_regcache.
2895
2896         * xtensa-tdep.c (xtensa_register_write_masked): Add REGCACHE parameter.
2897         Use it instead of read_register and write_register.
2898         (xtensa_register_read_masked): Likewise.
2899         (xtensa_pseudo_register_read): Update call.
2900         (xtensa_pseudo_register_write): Likewise.
2901         (xtensa_frame_cache): Use register values unwound from NEXT_FRAME
2902         instead of calling read_register.
2903         (xtensa_push_dummy_call): Update comment.
2904
2905 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2906
2907         * mips-tdep.c (mips16_scan_prologue): Replace read_next_frame_reg
2908         by frame_unwind_register_signed calls.
2909         (mips32_scan_prologue): Likewise.  Skip analysis of alloca stack
2910         frame allocations when called with NULL NEXT_FRAME parameter.
2911         (read_next_frame_reg): Remove.
2912
2913         * sh-tdep.c (sh_analyze_prologue): Add FPSCR parameter.  Use it
2914         instead of reading the FPSCR register.
2915         (sh_frame_cache): Pass unwound FPSCR register value to
2916         sh_analyze_prologue.
2917         (sh_skip_prologue): Pass dummy FPSCR value to sh_analyze_prologue.
2918
2919         * v850-tdep.c (v850_analyze_prologue): Add CTBP parameter.  Use it
2920         instead of reading the CTBP register.
2921         (v850_frame_cache): Pass unwound CTBP register value to
2922         v850_analyze_prologue.
2923
2924 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2925
2926         * sh-tdep.h (sh_show_regs): Add FRAME parameter.
2927         * sh-tdep.c (sh_show_regs): Likewise.
2928         (sh_show_regs_command): Pass current frame to sh_show_regs routine.
2929         (sh_generic_show_regs): Add FRAME parameter.  Use register
2930         values from that frame instead of calling read_register.
2931         (sh3_show_regs, sh2e_show_regs, sh2a_show_regs, sh2a_nofpu_show_regs,
2932         sh3e_show_regs, sh3_dsp_show_regs, sh4_show_regs, sh4_nofpu_show_regs,
2933         sh_dsp_show_regs): Likewise.
2934         * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs,
2935         sh64_show_regs): Likewise.
2936
2937 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2938
2939         * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
2940         current regcache instead of calling read_register.
2941
2942 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2943
2944         * mep-tdep.c (current_me_module): Read from current regcache
2945         instead of calling read_register.
2946         (current_options): Likewise.
2947
2948 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2949
2950         * cris-tdep.c (cris_stopped_data_address): Read register values
2951         from current frame instead of calling read_register.
2952         * frv-tdep.c (frv_stopped_data_address): Likewise.
2953
2954 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2955
2956         * solib-sunos.c (sunos_solib_create_inferior_hook): Use write_pc
2957         instead of write_register (PC_REGNUM, ...).
2958
2959 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2960
2961         * solib-sunos.c (sunos_solib_create_inferior_hook): Add comment
2962         explaining why the PC adjustment code is necessary.
2963
2964 2007-06-15  Vladimir Prus  <vladimir@codesourcery.com>
2965
2966         * m68k-tdep.h (enum m68k_flavour): New. 
2967         (struct gdbarch_tdep): New fields
2968         float_return, flavour and fpregs_present.
2969         * m68k-tdep.c (m68k_register_type): Use
2970         fpregs_present and conditionalize floating
2971         registers type on flavour.
2972         (m68k_register_names): New.
2973         (m68k_register_name): Use the above.
2974         (m68k_convert_register_p): Consult fpregs_present.
2975         (m68k_register_to_value, m68k_value_to_register):
2976         Use register_type to obtain the type of floating
2977         point registers.
2978         (m68k_svr4_extract_return_value): Check tdep->float_return.
2979         Use register_type to get the type of floating
2980         point regiters.
2981         (m68k_svr4_store_return_value): Likewise.
2982         (m68k_dwarf_reg_to_regnum): Check tdep->fpregs_present.
2983         (m68k_analyze_register_saves): Likewise.
2984         (m68k_gdbarch_init): Extract infromation
2985         from XML description, if present.  Guess coldfire by
2986         looking at the file, if present. Conditionalize
2987         setting of long double format.  Set decr_pc_after_break
2988         to 2 on coldfire and fido.  Enable XML-driven
2989         register description.
2990         * m68kbsd-tdep.c (m68kbsd_fpreg_offset): Use
2991         size of tdep->fpreg_type, as opposed to hardcoded value.
2992         * Makefile.in (m68k-tdep.o): Update dependencies.
2993         
2994 2007-06-15  Ulrich Weigand  <uweigand@de.ibm.com>
2995
2996         * NEWS: Mention "info spu" commands and qXfer:spu:read and
2997         qXfer:spu:write remote packet types.
2998
2999 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
3000
3001         * xml-tdesc.c (tdesc_start_target): New.
3002         (target_attributes): New.
3003         (tdesc_elements): Use it.
3004         * features/gdb-target.dtd: Add #FIXED version attribute for
3005         <target>.
3006
3007 2007-06-13  Arthur Huillet  <arthur.huillet@free.fr>
3008
3009         * mi/mi-cmd-var.c (mi_cmd_var_assign): Fix typo.
3010
3011 2007-06-13  Claudio Fontana <claudio.fontana@gmail.com>
3012
3013         * fork-child.c (fork_inferior): Update comment.
3014
3015 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
3016
3017         * features/Makefile: Generate regformats for mips-linux and
3018         mips64-linux.
3019         * features/sort-regs.xsl: Correct typo.
3020         * regformats/reg-mips.dat, regformats/reg-mips64.dat: Delete.
3021         * regformats/mips-linux.dat, regformats/mips64-linux.dat: New generated
3022         files.
3023
3024 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
3025
3026         * config/mips/linux.mh (TDEP_XML): New.
3027         * features/mips-linux.xml, features/mips64-linux.xml: New files.
3028         * mips-linux-nat.c (mips_linux_register_addr): Handle
3029         MIPS_RESTART_REGNUM.
3030         (mips64_linux_register_addr): Likewise.
3031         (super_xfer_partial, mips_linux_xfer_partial): New.
3032         (_initialize_mips_linux_nat): Add them to the target_ops.
3033         * mips-linux-tdep.c (mips_supply_gregset): Handle MIPS_RESTART_REGNUM.
3034         (mips_fill_gregset, mips64_supply_gregset, mips64_fill_gregset)
3035         (mips_linux_o32_sigframe_init)
3036         (mips_linux_n32n64_sigframe_init): Likewise.
3037         (mips_linux_write_pc, mips_linux_restart_reg_p): New.
3038         (mips_linux_init_abi): Use mips_linux_write_pc.  Check for the
3039         "org.gnu.gdb.mips.linux" feature.
3040         * mips-linux-tdep.h (MIPS_RESTART_REGNUM): New constant.
3041         (mips_linux_restart_reg_p): New prototype.
3042         * mips-tdep.c (mips_gdbarch_init): Pass tdesc_data to the OS/ABI
3043         initialization routine.
3044         * Makefile.in (mips-linux-tdep.o, mips-linux-nat.o): Update.
3045
3046 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
3047
3048         * Makefile.in (mips-tdep.o): Update.
3049         * mips-tdep.c (struct register_alias, mips_o32_aliases)
3050         (mips_n32_n64_aliases, mips_register_aliases): New.
3051         (mips_register_name): Call tdesc_register_name.
3052         (mips_tdesc_register_reggroup_p): New.
3053         (mips_pseudo_register_type, value_of_mips_user_reg): New.
3054         (mips_gdbarch_init): Add target-described register support.
3055         Register aliases for register names.
3056         * target-descriptions.c (tdesc_register_name): Make global.
3057         (tdesc_register_in_reggroup_p): New function, broken out from
3058         tdesc_register_reggroup_p.
3059         (tdesc_register_reggroup_p): Use it.
3060         * target-descriptions.h (tdesc_register_name)
3061         (tdesc_register_in_reggroup_p): New prototypes.
3062         * NEWS: Correct formatting.  Mention MIPS register support.
3063         * features/mips-cp0.xml, features/mips-fpu.xml,
3064         features/mips64-cp0.xml, gdb/features/mips64-fpu.xml, mips-cpu.xml,
3065         features/mips64-cpu.xml: New files.
3066
3067 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
3068
3069         * gdbarch.sh (TARGET_ADDR_BIT): Replace by gdbarch_addr_bit.
3070         * valops.c (value_cast): Likewise.
3071         * utils.c (strlen_paddr, paddr, paddr_nz, paddress): Likewise.
3072         * ui-out.c (ui_out_field_core_addr): Likewise.
3073         * tracepoint.c (tracepoints_info): Likewise.
3074         * symtab.c (print_msymbol_info): Likewise.
3075         * solib-irix.c (irix_current_sos)
3076         (irix_open_symbol_file_object): Likewise.
3077         * remote.c (build_remote_gdbarch_data): Likewise.
3078         * prologue-value.c (make_pv_area): Likewise.
3079         * procfs.c (info_mappings_callback): Likewise.
3080         * printcmd.c (print_scalar_formatted)
3081         (deprecated_print_address_numeric): Likewise.
3082         * memattr.c (mem_info_command): Likewise.
3083         * linux-nat.c (linux_nat_info_proc_cmd): Likewise.
3084         * gdbtypes.c (build_flt, gdbtypes_post_init): Likewise.
3085         * exec.c (print_section_info): Likewise.
3086         * dwarf2read.c (read_subrange_type): Likewise.
3087         * dwarf2loc.c (find_location_expression): Likewise.
3088         * dwarf2expr.c (dwarf2_read_address, unsigned_address_type)
3089         (signed_address_type, execute_stack_op): Likewise.
3090         * breakpoint.c (print_one_breakpoint, breakpoint_1): Likewise.
3091         * gdbarch.c, gdbarch.h: Regenerate.
3092
3093 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
3094
3095         * gdbarch.sh (TARGET_ARCHITECTURE): Replace by gdbarch_bfd_arch_info.
3096         * arch-utils.c (show_architecture): Likewise.
3097         * remote-mips.c (mips_open): Likewise
3098         * nto-tdep.c (nto_find_and_open_solib)
3099         (nto_init_solib_absolute_prefix): Likewise.
3100         * nto-procfs (procfs_open): Likewise.
3101         * m68hc11-tdep.c (gdb_print_insn_m68hc11): Likewise.
3102         * gcore.c (default_gcore_mach, default_gcore_arch): Likewise.
3103         * gdbarch.c, gdbarch.h: Regenerate.
3104
3105 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
3106
3107         * gdbarch.sh (TARGET_BFD_VMA_BIT): Replace by gdbarch_bfd_vma_bit.
3108         * gdbtypes.c (build_flt): Likewise.
3109         * gdbarch.c, gdbarch.h: Regenerate.
3110
3111 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
3112
3113         * gdbarch.sh (BREAKPOINT_FROM_PC): Replace by
3114         gdbarch_breakpoint_from_pc.
3115         * s390-tdep.c (s390_gdbarch_init): Likewise (comment).
3116         * remote.c (remote_insert_breakpoint)
3117         (remote_insert_hw_breakpoint): Likewise.
3118         * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Likewise.
3119         * mips-tdep.c (mips_breakpoint_from_pc): Likewise (comment).
3120         * breakpoint.h (bp_target_info): Likewise (comment).
3121         * breakpoint.c (read_memory_nobpt): Likewise.
3122         * mem-break.c (default_memory_insert_breakpoint): Likewise.
3123         (symtab.h, breakpoint.h): Remove include. Remove unnecessary comment.
3124         * gdbarch.c, gdbarch.h: Regenerate.
3125
3126 2007-06-13  Markus Deuling  <deuling@de.ibm.com>
3127
3128         * gdbarch.sh (TARGET_PTR_BIT): Replace with gdbarch_ptr_bit.
3129         * solib-svr4.c (svr4_truncate_ptr): Likewise.
3130         * solib-pa64.c (read_dynamic_info): Likewise.
3131         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Likewise.
3132         * solib.c (info_sharedlibrary_command): Likewise.
3133         * s390-nat.c (SUBOFF): Likewise.
3134         * p-valprint.c (pascal_val_print): Likewise.
3135         * procfs.c (info_proc_mappings): Likewise.
3136         * printcmd.c (decode_format): Likewise.
3137         * nto-tdep.c (nto_truncate_ptr): Likewise.
3138         * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3139         (mips64_linux_get_longjmp_target): Likewise.
3140         * m68k-tdep.c (m68k_get_longjmp_target): Likewise.
3141         * jv-valprint.c (java_value_print): Likewise.
3142         * jv-lang.c (get_java_object_header_size): Likewise.
3143         * hppa-tdep.c (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3144         * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code)
3145         (hppa_hpux_unwind_adjust_stub): Likewise.
3146         * gnu-v3-abi.c (build_gdb_vtable_type): Likewise.
3147         * gdbtypes.c (make_pointer_type, make_reference_type)
3148         (smash_to_memberptr_type): Likewise.
3149         * gdbarch.c, gdbarch.h: Regenerate.
3150
3151 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
3152
3153         * mips-tdep.c (mips_print_register): Remove unused ALL argument.
3154         (print_gp_register_row): Stop before printing a register bigger
3155         than the ABI register size.
3156         (mips_print_registers_info): Update call to mips_print_register.
3157
3158 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
3159
3160         * expression.h (enum exp_opcode): Document a register name for
3161         OP_REGISTER.
3162         * parse.c (write_dollar_variable): Write the register name for
3163         OP_REGISTER.
3164         (operator_length_standard): Expect the register name following
3165         OP_REGISTER.
3166         * ada-lang.c (resolve_subexp): Likewise.
3167         * ax-gdb.c (gen_expr): Likewise.
3168         * eval.c (evaluate_subexp_standard): Likewise.
3169         * expprint.c (print_subexp_standard, dump_subexp_body_standard):
3170         Likewise.
3171         * tracepoint.c (encode_actions): Likewise.
3172
3173 2007-06-13  Daniel Jacobowitz  <dan@codesourcery.com>
3174
3175         * utils.c (set_screen_size): Use INT_MAX for default columns.
3176
3177 2007-06-13  Ulrich Weigand  <uweigand@de.ibm.com>
3178
3179         * remote.c (remote_protocol_features): Add qXfer:spu:read and
3180         qXfer:spu:write packet types.
3181
3182 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3183
3184         * gdbarch.sh (DEPRECATED_STACK_ALIGN): Remove.
3185         * gdbarch.c, gdbarch.h: Regenerate.
3186
3187 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3188
3189         * gdbarch.sh (STAB_REG_TO_REGNUM): Replace by
3190         gdbarch_stab_reg_to_regnum.
3191         * stabsread.c (define_symbol): Likewise.
3192         * gdbarch.sh (ECOFF_REG_TO_REGNUM): Replace by
3193         gdbarch_ecoff_reg_to_regnum.
3194         * mdebugread.c (parse_symbol): Likewise.
3195         * i386-tdep.c (i386_gdbarch_init): Likewise (comment).
3196         * gdbarch.sh (DWARF_REG_TO_REGNUM): Replace by
3197         gdbarch_dwarf_reg_to_regnum.
3198         * gdbarch.sh (SDB_REG_TO_REGNUM): Replace by gdbarch_sdb_reg_to_regnum.
3199         * coffread.c (process_coff_symbol): Likewise.
3200         * gdbarch.sh (DWARF2_REG_TO_REGNUM): Replace by
3201         gdbarch_dwarf2_reg_to_regnum.
3202         * dwarf2loc.c (dwarf_expr_read_reg,dwarf2_evaluate_loc_desc)
3203         (locexpr_describe_location): Likewise.
3204         * dwarf2-frame.c (read_reg,execute_cfa_program,dwarf2_frame_cache)
3205         (dwarf2_frame_prev_register,dwarf2_signal_frame_this_id): Likewise.
3206         * dwarf2loc.c (DWARF2_REG_TO_REGNUM): Remove macro.
3207         * dwarf2read.c (DWARF2_REG_TO_REGNUM): Remove macro.
3208         * gdbarch.c, gdbarch.h: Regenerate.
3209
3210 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3211
3212         * gdbarch.sh (SMASH_TEXT_ADDRESS): Replace by
3213         gdbarch_smash_text_address.
3214         * somread.c (som_symtab_read): Likewise.
3215         * elfread.c (record_minimal_symbol): Likewise.
3216         * dbxread.c (process_one_symbol): Likewise.
3217         * coffread.c (coff_symtab_read): Likewise.
3218         * gdbarch.c, gdbarch.h: Regenerate.
3219
3220 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3221
3222         * gdbarch.sh (REGISTER_TO_VALUE): Replace by gdbarch_register_to_value.
3223         * findvar.c (value_from_register): Likewise.
3224         * gdbarch.sh (VALUE_TO_REGISTER): Replace by gdbarch_value_to_register.
3225         * valops.c (value_assign): Likewise.
3226         * gdbarch.sh (CONVERT_REGISTER_P): Replace by
3227         gdbarch_convert_register_p.
3228         * findvar.c (value_from_register): Likewise.
3229         * valops.c (value_assign): Likewise.
3230         * gdbarch.c, gdbarch.h: Regenerate.
3231
3232 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3233
3234         * gdbarch.sh (REGISTER_SIM_REGNO): Replace by
3235         gdbarch_register_sim_regno.
3236         * sim-regno.h (sim_regno): Likewise (comment).
3237         * remote-sim.c (gdbsim_fetch_register, gdbsim_store_register): Likewise.
3238         * gdbarch.c, gdbarch.h: Regenerate.
3239
3240 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3241
3242         * gdbarch.sh (TARGET_VIRTUAL_FRAME_POINTER): Replace by
3243         gdbarch_virtual_frame_pointer.
3244         * tracepoint.c (encode_actions): Likewise.
3245         * dwarf2loc.c (dwarf2_loc_desc_needs_frame): Likewise.
3246         * ax-gdb.c (gen_frame_args_address, gen_frame_locals_address): Likewise.
3247         * gdbarch.c, gdbarch.h: Regenerate.
3248
3249 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3250
3251         * gdbarch.sh (TARGET_FLOAT_BIT): Replace by gdbarch_float_bit.
3252         * p-lang.c (pascal_create_fundamental_type): Likewise.
3253         * objc-lang.c (objc_create_fundamental_type): Likewise.
3254         * mdebugread.c (_initialize_mdebugread): Likewise.
3255         * m2-lang.c (m2_create_fundamental_type)
3256         (_initialize_m2_language): Likewise.
3257         * gdbtypes.c (build_gdbtypes): Likewise.
3258         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3259         * doublest.c (floatformat_from_length): Likewise.
3260         * c-lang.c (c_create_fundamental_type): Likewise.
3261         * ada-lang.c (ada_create_fundamental_type)
3262         (ada_language_arch_info): Likewise.
3263         * gdbarch.sh (TARGET_FLOAT_FORMAT): Replace by gdbarch_float_format.
3264         * value.c (unpack_double): Likewise (comment).
3265         * gdbtypes.c (build_gdbtypes): Likewise.
3266         * doublest.c (floatformat_from_length): Likewise.
3267         * gdbarch.sh (TARGET_DOUBLE_BIT): Replace by gdbarch_double_bit.
3268         * valarith.c (value_binop): Likewise.
3269         * p-lang.c (pascal_create_fundamental_type): Likewise.
3270         * objc-lang.c (objc_create_fundamental_type): Likewise.
3271         * mdebugread.c (_initialize_mdebugread): Likewise.
3272         * m2-lang.c (m2_create_fundamental_type): Likewise.
3273         * gdbtypes.c (build_gdbtypes): Likewise.
3274         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3275         * doublest.c (floatformat_from_length): Likewise.
3276         * cris-tdep.c (cris_gdbarch_init): Likewise (comment).
3277         * c-lang.c (c_create_fundamental_type): Likewise.
3278         * ada-lex.l (processReal): Likewise.
3279         * ada-lang.c (ada_create_fundamental_type)
3280         (ada_language_arch_info): Likewise.
3281         * gdbarch.sh (TARGET_DOUBLE_FORMAT): Replace by gdbarch_double_format.
3282         * value.c (unpack_double): Likewise (comment).
3283         * gdbtypes.c (build_gdbtypes): Likewise.
3284         * doublest.c (floatformat_from_length): Likewise.
3285         * gdbarch.sh (TARGET_LONG_DOUBLE_BIT): Replace by
3286         gdbarch_long_double_bit.
3287         * p-lang.c (pascal_create_fundamental_type): Likewise.
3288         * objc-lang.c (objc_create_fundamental_type): Likewise.
3289         * m2-lang.c (m2_create_fundamental_type): Likewise.
3290         * gdbtypes.c (build_gdbtypes): Likewise.
3291         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3292         * doublest.c (floatformat_from_length): Likewise.
3293         * c-lang.c (c_create_fundamental_type): Likewise.
3294         * ada-lex.l (processReal): Likewise.
3295         * ada-lang.c (ada_create_fundamental_type)
3296         (ada_language_arch_info): Likewise.
3297         * gdbarch.sh (TARGET_LONG_DOUBLE_FORMAT): Replace by
3298         gdbarch_long_double_format.
3299         * gdbtypes.c (build_gdbtypes): Likewise.
3300         * doublest.c (floatformat_from_length): Likewise.
3301         * gdbarch.c, gdbarch.h: Regenerate.
3302
3303 2007-06-12  Markus Deuling  <deuling@de.ibm.com>
3304
3305         * gdbarch.sh (TARGET_SHORT_BIT): Replace by gdbarch_int_bit.
3306         * ada-lang.c (ada_create_fundamental_type)
3307         (ada_language_arch_info): Likewise.
3308         * c-lang.c (c_create_fundamental_type): Likewise.
3309         * f-lang.c (f_create_fundamental_type, build_fortran_types): Likewise.
3310         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3311         * m2-lang.c (m2_create_fundamental_type): Likewise.
3312         * objc-lang.c (objc_create_fundamental_type): Likewise.
3313         * p-lang.c (pascal_create_fundamental_type): Likewise.
3314         * gdbarch.sh (TARGET_INT_BIT): Replace by gdbarch_int_bit.
3315         * c-exp.y (parse_number): Likewise.
3316         * objc-exp.y (parse_number): Likewise.
3317         * ada-lex.l (processInt): Likewise.
3318         * f-exp.y (parse_number): Likewise.
3319         * p-exp.y (parse_number): Likewise.
3320         * ada-lang.c (ada_create_fundamental_type, ada_language_arch_info)
3321         (gdbtypes_post_init, build_gdbtypes): Likewise.
3322         * p-lang.c (pascal_create_fundamental_type): Likewise.
3323         * parse.c (build_parse): Likewise.
3324         * xcoffread.c (_initialize_xcoffread): Likewise.
3325         * stabsread.c (define_symbol, read_one_struct_field, read_enum_type)
3326         (read_range_type): Likewise.
3327         * objc-lang.c (objc_create_fundamental_type): Likewise.
3328         * f-lang.c (build_fortran_types, f_create_fundamental_type): Likewise.
3329         * m2-lang.c (m2_create_fundamental_type, _initialize_m2_language)
3330         (m2_create_fundamental_type): Likewise.
3331         * c-lang.c (c_create_fundamental_type): Likewise.
3332         * coffread.c (coff_read_enum_type): Likewise.
3333         * mdebugread.c (parse_symbol, _initialize_mdebugread): Likewise.
3334         * dwarf2read.c (new_symbol): Likewise.
3335         * gdbarch.sh (TARGET_LONG_BIT): Replace by gdbarch_long_bit.
3336         * c-exp.y (parse_number): Likewise.
3337         * objc-exp.y (parse_number): Likewise.
3338         * ada-lex.l (processInt): Likewise.
3339         * f-exp.y (parse_number): Likewise.
3340         * p-exp.y (parse_number): Likewise.
3341         * valarith.c (value_binop): Likewise.
3342         * symfile.c (read_target_long_array, simple_overlay_update_1): Likewise.
3343         * ada-lang.c (ada_create_fundamental_type)
3344         (ada_language_arch_info): Likewise.
3345         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3346         * symfile.c (TARGET_LONG_BYTES): Likewise.
3347         * p-lang.c (pascal_create_fundamental_type): Likewise.
3348         * objc-lang.c (objc_create_fundamental_type): Likewise.
3349         * m2-lang.c (m2_create_fundamental_type): Likewise.
3350         * f-lang.c (f_create_fundamental_type): Likewise.
3351         * c-lang.c (c_create_fundamental_type): Likewise.
3352         * coffread.c (decode_base_type): Likewise.
3353         * gdbarch.sh (TARGET_LONG_LONG_BIT): Replace by gdbarch_long_long_bit.
3354         * c-exp.y (parse_number): Likewise.
3355         * objc-exp.y (parse_number): Likewise.
3356         * p-exp.y (parse_number): Likewise.
3357         * ada-lang.c (ada_create_fundamental_type)
3358         (ada_language_arch_info): Likewise.
3359         * gdbtypes.c (gdbtypes_post_init, build_gdbtypes): Likewise.
3360         * stabsread.c (read_range_type): Likewise.
3361         * p-lang.c (pascal_create_fundamental_type): Likewise.
3362         * objc-lang.c (objc_create_fundamental_type): Likewise.
3363         * m2-lang.c (m2_create_fundamental_type): Likewise.
3364         * f-lang.c (f_create_fundamental_type): Likewise.
3365         * c-lang.c (c_create_fundamental_type): Likewise.
3366         * gdbarch.c, gdbarch.h: Regenerate.
3367
3368 2007-06-12  Andreas Schwab  <schwab@suse.de>
3369
3370         * frame-unwind.h (frame_dealloc_cache_ftype): Define.
3371         (struct frame_unwind): Add dealloc_cache.
3372         * frame.c (reinit_frame_cache): Call dealloc_cache on all caches.
3373
3374         * libunwind-frame.h (libunwind_frame_dealloc_cache): Declare.
3375         * libunwind-frame.c (libunwind_frame_dealloc_cache): Define.
3376         (libunwind_frame_unwind): Set dealloc_cache.
3377         * ia64-tdep.c (ia64_libunwind_frame_unwind): Set dealloc_cache.
3378
3379 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
3380             Markus Deuling  <deuling@de.ibm.com>
3381
3382         * remote.c (remote_write_qxfer): New function.
3383         (remote_xfer_partial): Add handling for TARGET_OBJECT_SPU.
3384         (remote_read_qxfer): Do not cache empty objects.
3385         (_initialize_remote): Add PACKET_qXfer_spu_read and
3386         PACKET_qXfer_spu_write.
3387
3388 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
3389
3390         * target.h (enum target_object): Add TARGET_OBJECT_SPU.
3391         * spu-linux-nat.c (spu_xfer_partial): Handle TARGET_OBJECT_SPU.
3392
3393         * spu-tdep.h (SPU_NUM_PSEUDO_REGS): Add 5 pseudo registers.
3394         (enum spu_regnum): Add SPU_FPSCR_REGNUM, SPU_SRR0_REGNUM,
3395         SPU_LSLR_REGNUM, SPU_DECR_REGNUM, SPU_DECR_STATUS_REGNUM.
3396         * spu-tdep.c (infospucmdlist): New variable.
3397         (spu_register_name): Handle additional pseudo registers.
3398         (spu_register_type): Likewise.
3399         (spu_pseudo_register_read): Likewise.
3400         (spu_pseudo_register_write): Likewise.
3401         (spu_pseudo_register_read_spu): New function.
3402         (spu_pseudo_register_write_spu): Likewise.
3403         (info_spu_event_command): New function.
3404         (info_spu_signal_command): Likewise.
3405         (info_spu_mailbox_list): Likewise.
3406         (info_spu_mailbox_command): Likewise.
3407         (spu_mfc_get_bitfield): Likewise.
3408         (info_spu_dma_cmdlist): Likewise.
3409         (info_spu_dma_command): Likewise.
3410         (info_spu_proxydma_command): Likewise.
3411         (info_spu_command): Likewise.
3412         (_initialize_spu_tdep): Install "info spu" commands.
3413
3414 2007-06-12  Ulrich Weigand  <uweigand@de.ibm.com>
3415
3416         * spu-linux-nat.c (spu_proc_xfer_spu): Do not return failure when
3417         accessing non-seekable spufs files.
3418
3419 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3420
3421         * gdbarch.sh (SKIP_TRAMPOLINE_CODE): Replace by
3422         gdbarch_skip_trampoline_code.
3423         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3424         * objc-lang.c (objc_skip_trampoline)
3425         (objc_submethod_helper_data): Likewise.
3426         * m32c-lang.c (m32c_skip_trampoline_code): Likewise (comment).
3427         * infrun.c (handle_inferior_event): Likewise.
3428         * gnu-v3-abi.c (gnuv3_skip_trampoline): Likewise.
3429         * gdbarch.sh (IN_SOLIB_RETURN_TRAMPOLINE): Replace by
3430         gdbarch_in_solib_return_trampoline.
3431         * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Likewise (comment).
3432         * infrun.c (handle_inferior_event): Likewise.
3433         * hppa-tdep.c (hppa_stub_unwind_sniffer): Likewise.
3434         * gdbarch.c, gdbarch.h: Regenerate.
3435
3436 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3437
3438         * gdbarch.sh (SKIP_PROLOGUE): Replace by gdbarch_skip_prologue.
3439         * symtab.c (find_function_start_sal, in_prologue): Likewise.
3440         * linespec.c (minsym_found): Likewise.
3441         * infrun.c (step_into_function): Likewise.
3442         * gdbarch.c, gdbarch.h: Regenerate.
3443
3444 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3445
3446         * gdbarch.sh (NAME_OF_MALLOC): Replace by gdbarch_name_of_malloc.
3447         * valops.c (value_allocate_space_in_inferior): Likewise.
3448         * gdbarch.c, gdbarch.h: Regenerate.
3449
3450 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3451
3452         * gdbarch.sh (MEMORY_INSERT_BREAKPOINT): Replace by
3453         gdbarch_memory_insert_breakpoint.
3454         * mem-break.c (memory_insert_breakpoint): Likewise.
3455         * gdbarch.sh (MEMORY_REMOVE_BREAKPOINT): Replace by
3456         gdbarch_memory_remove_breakpoint.
3457         * mem-break.c (memory_remove_breakpoint): Likewise.
3458         * gdbarch.c, gdbarch.h: Regenerate.
3459
3460 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3461
3462         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS): Replace by
3463         gdbarch_fetch_tls_load_module_address.
3464         * gdbarch.sh (FETCH_TLS_LOAD_MODULE_ADDRESS_P): Replace by
3465         gdbarch_fetch_tls_load_module_address_p.
3466         * gdbarch.c, gdbarch.h: Regenerate.
3467
3468 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3469
3470         * gdbarch.sh (DECR_PC_AFTER_BREAK): Replace by
3471         gdbarch_decr_pc_after_break.
3472         * tracepoint.c (trace_dump_command): Likewise.
3473         * solib-sunos.c (sunos_solib_create_inferior_hook): Likewise.
3474         * linux-thread-db.c (check_event): Likewise.
3475         * linux-nat.c (cancel_breakpoints_callback): Likewise.
3476         * infrun.c (adjust_pc_after_break, normal_stop): Likewise.
3477         * frame.h: Likewise (comment).
3478         * dummy-frame.c (deprecated_pc_in_call_dummy): Likewise.
3479         * aix-thread.c (aix_thread_wait): Likewise.
3480         * gdbarch.c, gdbarch.h: Regenerate.
3481
3482 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3483
3484         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS): Replace by
3485         gdbarch_address_class_type_flags.
3486         * dwarf2read.c (read_tag_pointer_type): Likewise.
3487         * gdbarch.sh (ADDRESS_CLASS_TYPE_FLAGS_P): Replace by
3488         gdbarch_address_class_type_flags_p.
3489         * dwarf2read.c (read_tag_pointer_type): Likewise.
3490         * gdbarch.c, gdbarch.h: Regenerate.
3491
3492 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3493
3494         * gdbarch.sh (ADDR_BITS_REMOVE): Replace by gdbarch_addr_bits_remove.
3495         * value.c (value_as_address): Likewise (comment).
3496         * remote-mips.c (common_breakpoint): Likewise.
3497         * regcache.c (read_pc_pid): Likewise.
3498         * printcmd.c (do_one_display): Likewise.
3499         * monitor.c (monitor_write_memory, monitor_read_memory)
3500         (monitor_insert_breakpoint): Likewise.
3501         * mips-tdep.c (heuristic_proc_start): Likewise.
3502         * infrun.c (insert_step_resume_breakpoint_at_frame)
3503         (insert_step_resume_breakpoint_at_caller): Likewise.
3504         * buildsym.c (record_line): Likewise.
3505         * arm-tdep.c (arm_scan_prologue, thumb_get_next_pc)
3506         (arm_get_next_pc): Likewise.
3507         * armnbsd-nat.c (arm_supply_gregset, fetch_register, store_register)
3508         (store_regs): Likewise.
3509         * arm-linux-tdep.c (arm_linux_supply_gregset): Likewise.
3510         * arm-linux-nat.c (fetch_register, fetch_regs): Likewise.
3511         * gdbarch.c, gdbarch.h: Regenerate.
3512
3513 2007-06-09  Markus Deuling  <deuling@de.ibm.com>
3514
3515         * gdbarch.sh (REGISTER_NAME): Replace by gdbarch_register_name.
3516         * tracepoint.c (scope_info): Likewise.
3517         * target.c (debug_print_register): Likewise.
3518         * stack.c (frame_info): Likewise.
3519         * sh-tdep.c (sh_register_reggroup_p): Likewise.
3520         * sh64-tdep.c (sh64_do_fp_register, sh64_do_register)
3521         (sh64_media_print_registers_info)
3522         (sh64_compact_print_registers_info): Likewise.
3523         * rs6000-tdep.c (rs6000_register_reggroup_p): Likewise.
3524         * remote-sim.c (gdbsim_fetch_register): Likewise.
3525         * remote.c (packet_reg): Likewise (comment).
3526         * reggroups.c (default_register_reggroup_p): Likewise.
3527         * regcache.c (regcache_dump): Likewise.
3528         * printcmd.c (address_info): Likewise.
3529         * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3530         * mt-dep.c (mt_registers_info): Likewise.
3531         * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Likewise (comment).
3532         * mips-tdep.c (mips_register_reggroup_p, mips_read_fp_register_single)
3533         (mips_read_fp_register_double, mips_print_fp_register)
3534         (mips_print_register, print_gp_register_row, mips_print_registers_info)
3535         (mips_register_sim_regno): Likewise.
3536         * m68klinux-nat.c (regmap, fetch_register, store_register): Likewise.
3537         * inf-ptrace.c (inf_ptrace_fetch_register)
3538         (inf_ptrace_store_register): Likewise.
3539         * infcmd.c (default_print_registers_info): Likewise.
3540         * ia64-linux-nat.c (ia64_linux_fetch_register)
3541         (ia64_linux_store_register): Likewise.
3542         * i386-linux-nat.c (fetch_register, store_register): Likewise.
3543         * i386gnu-nat.c (gnu_fetch_registers, gnu_store_registers): Likewise.
3544         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
3545         * hppa-hpux-nat.c (hppa_hpux_fetch_register)
3546         (hppa_hpux_store_register): Likewise.
3547         * findvar.c (locate_var_value): Likewise.
3548         * dwarf2loc.c (locexpr_describe_location): Likewise.
3549         * dwarf2-frame.c (execute_cfa_program): Likewise.
3550         * arm-tdep.c (arm_push_dummy_call): Likewise.
3551         * arch-utils.c (legacy_register_sim_regno): Likewise.
3552         * alpha-tdep.c (alpha_register_reggroup_p): Likewise.
3553         * alpha-nat.c (fetch_osf_core_registers): Likewise.
3554         * mi/mi-main.c (mi_cmd_data_list_register_names)
3555         (mi_cmd_data_list_changed_registers, mi_cmd_data_list_register_values)
3556         (mi_cmd_data_write_register_values): Likewise.
3557         * gdbarch.c, gdbarch.h: Regenerate.
3558
3559 2007-06-07  Daniel Jacobowitz  <dan@codesourcery.com>
3560
3561         * target-memory.c (blocks_to_erase): Correct off-by-one error.
3562
3563 2007-06-06  Vladimir Prus  <vladimir@codesourcery.com>
3564         
3565         * remote.c (process_g_packet): Don't check size.
3566         * gdbarch.sh: Remove register_bytes_ok.
3567         * gdbarch.c: Regenerated.
3568         * gdbarch.h: Regenerated.
3569         * m68k-tdep.c (REGISTER_BYTES_NOFP): Remove.
3570         (m68k_register_bytes_ok): Remove.
3571         (m68k_gdbarch_init): Don't register m68k_register_bytes_ok.
3572         
3573 2007-06-06  Andreas Schwab  <schwab@suse.de>
3574
3575         * libunwind-frame.c (unw_destroy_addr_space_p): Define.
3576         (destroy_addr_space_name): Define.
3577         (libunwind_load): Get address of destroy_addr_space function.
3578         (libunwind_frame_cache): Destroy unw_addr_space_t object before
3579         returning unsuccessfully.
3580         (libunwind_frame_sniffer): Destroy unw_addr_space_t object before
3581         returning.
3582         (libunwind_sigtramp_frame_sniffer): Likewise.
3583         (libunwind_get_reg_special): Likewise.
3584
3585 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3586
3587         * gdbarch.sh (FETCH_POINTER_ARGUMENT): Replace by
3588         gdbarch_fetch_pointer_argument.
3589         * objc-lang.c (OBJC_FETCH_POINTER_ARGUMENT): Likewise.
3590         * gdbarch.c, gdbarch.h: Regenerate.
3591
3592 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3593
3594         * gdbarch.sh (HAVE_NONSTEPPABLE_WATCHPOINT): Replace by
3595         gdbarch_have_nonsteppable_watchpoint.
3596         * infrun.c (handle_inferior_event, adjust_pc_after_break): Likewise.
3597         * gdbarch.sh (CANNOT_STEP_BREAKPOINT): Replace by
3598         gdbarch_cannot_step_breakpoint.
3599         * infrun.c (resume): Likewise.
3600         * gdbarch.c, gdbarch.h: Regenerate.
3601
3602 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3603
3604         * gdbarch.sh (FRAME_ARGS_SKIP): Replace by gdbarch_frame_args_skip.
3605         * stack.c (print_frame_args): Likewise.
3606         * gdbarch.sh (FRAME_NUM_ARGS): Replace by gdbarch_frame_num_args.
3607         * stack.c (print_args_stub, frame_info): Likewise.
3608         * gdbarch.sh (FRAME_NUM_ARGS_P): Replace by gdbarch_frame_num_args_p.
3609         * stack.c (print_args_stub, frame_info): Likewise.
3610         * gdbarch.c, gdbarch.h: Regenerate.
3611
3612 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3613
3614         * gdbarch.sh (COFF_MAKE_MSYMBOL_SPECIAL): Replace by
3615         gdbarch_coff_make_msymbol_special.
3616         * coffread.c (coff_symtab_read): Likewise.
3617         * gdbarch.sh (ELF_MAKE_MSYMBOL_SPECIAL): Replace by
3618         gdbarch_elf_make_msymbol_special.
3619         * elfread.c (elf_symtab_read): Likewise.
3620         * mips-tdep.c (mips_elf_make_msymbol_special): Likewise (comment).
3621         * sh64-tdep.c (MSYMBOL_IS_SPECIAL): Likewise (comment).
3622         * gdbarch.c, gdbarch.h: Regenerate.
3623
3624 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3625
3626         * gdbarch.sh (FRAME_RED_ZONE_SIZE): Replace by
3627         gdbarch_frame_red_zone_size.
3628         * gdbarch.c, gdbarch.h: Regenerate.
3629
3630 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3631
3632         * gdbarch.sh (INNER_THAN): Replace by gdbarch_inner_than.
3633         * infcall.c (call_function_by_hand): Likewise.
3634         * gcore.c (derive_stack_segment): Likewise.
3635         * frame.c (frame_id_inner): Likewise.
3636         * arch-utils.c (core_addr_lessthan): Likewise (comment).
3637         * ada-lang.c (ensure_lval): Likewise.
3638         * gdbarch.c, gdbarch.h: Regenerate.
3639
3640 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3641
3642         * gdbarch.sh (ADDRESS_TO_POINTER): Replace by
3643         gdbarch_address_to_pointer.
3644         * findvar.c (store_typed_address): Likewise.
3645         * gdbtypes.c (make_pointer_type): Likewise (comment).
3646         * procfs.c (procfs_address_to_host_pointer): Likewise.
3647         * std-regs.c (value_of_builtin_frame_reg): Likewise.
3648         (value_of_builtin_frame_fp_reg): Likewise.
3649         (value_of_builtin_frame_pc_reg): Likewise.
3650         * utils.c (paddress): Likewise (comment).
3651         * gdbarch.sh (POINTER_TO_ADDRESS): Replace by
3652         gdbarch_pointer_to_address.
3653         * findvar.c (extract_typed_address): Likewise.
3654         * gdbtypes.c (make_pointer_type): Likewise (comment).
3655         * valops.c (value_cast): Likewise (comment).
3656         * gdbarch.c, gdbarch.h: Regenerate.
3657
3658 2007-06-06  Markus Deuling  <deuling@de.ibm.com>
3659
3660         * gdbarch.sh (GET_LONGJMP_TARGET): Replace by gdbarch_get_longjmp_target.
3661         * infrun.c (handle_inferior_event): Likewise.
3662         * gdbarch.sh (GET_LONGJMP_TARGET_P): Replace by
3663         gdbarch_get_longjmp_target_p.
3664         * breakpoint.c (breakpoint_re_set): Likewise.
3665         * infrun.c (handle_inferior_event): Likewise.
3666         * gdbarch.c, gdbarch.h: Regenerate.
3667
3668 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
3669
3670         * hppa-hpux-tdep.c (args_for_find_stub, HP_ACC_EH_notify_hook,
3671         HP_ACC_EH_set_hook_value, HP_ACC_EH_notify_callback, HP_ACC_EH_break,
3672         HP_ACC_EH_catch_throw, HP_ACC_EH_catch_catch, __eh_notification,
3673         hp_cxx_exception_support, hp_cxx_exception_support_initialized,
3674         eh_notify_hook_addr, eh_notify_callback_addr, eh_break_addr,
3675         eh_catch_throw_addr, break_callback_sal, setup_d_pid_in_inferior,
3676         find_stub_with_shl_get, cover_find_stub_with_shl_get,
3677         initialize_hp_cxx_exception_support, child_enable_exception_callback,
3678         current_ex_event, child_get_current_exception_event): Remove.
3679         (hppa_hpux_inferior_created): Remove.
3680         (hppa_hpux_init_abi): Do not install hppa_hpux_inferior_created.
3681
3682         * breakpoint.h (deprecated_exception_catchpoints_are_fragile): Remove.
3683         (deprecated_exception_support_initialized): Remove.
3684         * breakpoint.c (deprecated_exception_catchpoints_are_fragile): Remove.
3685         (deprecated_exception_support_initialized): Remove.
3686         (breakpoint_init_inferior): Remove handling of non-zero
3687         deprecated_exception_catchpoints_are_fragile.
3688
3689         * symtab.h (deprecated_hp_som_som_object_present): Remove.
3690         * symtab.c (deprecated_hp_som_som_object_present): Remove.
3691         * c-typeprint.c (c_type_print_base): Remove handling of non-zero
3692         deprecated_hp_som_som_object_present.
3693         * eval.c (evaluate_subexp_standard): Likewise.
3694         * valops.c (value_cast): Likewise.
3695
3696         * parse.c (parse_nested_classes_for_hpacc, coloncolon): Remove.
3697         * parser-defs.h (parse_nested_classes_for_hpacc): Remove.
3698         * c-exp.y (yylex): Do not call parse_nested_classes_for_hpacc.
3699
3700 2007-06-06  Ulrich Weigand  <uweigand@de.ibm.com>
3701
3702         * objfiles.h (ImportEntry, ExportEntry): Remove types.
3703         (struct objfile): Remove import_list, import_list_size,
3704         export_list, export_list_size members.
3705         (is_in_import_list): Remove prototype.
3706         * objfiles.c (is_in_import_list): Remove.
3707         * somread.c (init_import_symbols, init_export_symbols): Remove.
3708         (som_symfile_read): Do not call init_import_symbols.  Do not
3709         set objfile->export_list and objfile->export_list_size.
3710
3711 2007-06-05  Daniel Jacobowitz  <dan@codesourcery.com>
3712
3713         * dwarf2read.c (dwarf2_symbol_mark_computed): Fix formatting.
3714         Use the original objfile if necessary.
3715
3716 2007-06-04  Daniel Jacobowitz  <dan@codesourcery.com>
3717
3718         * defs.h (ldirname): New prototype.
3719         * dwarf2read.c (read_file_scope): Use DW_AT_name if DW_AT_comp_dir is
3720         missing.
3721         * utils.c (ldirname): New function.
3722         * xml-tdesc.c (file_read_description_xml): Use ldirname.
3723
3724 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
3725
3726         * spu-tdep.c (spu_push_dummy_call): Store stack back chain.
3727
3728 2007-06-01  Joel Brobecker  <brobecker@adacore.com>
3729
3730         * solib-svr4.c (svr4_solib_create_inferior_hook): Remove warning.
3731
3732 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
3733
3734         * irix5-nat.c (JB_ELEMENT_SIZE, get_longjmp_target): Remove.
3735
3736 2007-06-01  Ulrich Weigand  <uweigand@de.ibm.com>
3737
3738         * ppc-linux-tdep.c (INSTR_SC, INSTR_LI_R0_0x6666, INSTR_LI_R0_0x7777,
3739         INSTR_LI_R0_NR_sigreturn, INSTR_LI_R0_NR_rt_sigreturn): Remove.
3740         (PPC_LINUX_SIGNAL_FRAMESIZE, PPC_LINUX_REGS_PTR_OFFSET,
3741         PPC_LINUX_HANDLER_PTR_OFFSET): Remove.
3742         (ppc_linux_in_sigtramp, insn_is_sigreturn,
3743         ppc_linux_at_sigtramp_return_path): Remove.
3744
3745 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3746
3747         * xtensa-tdep.c (XTENSA_IS_ENTRY, extract_call_winsize)
3748         (xtensa_register_write_masked, xtensa_register_read_masked)
3749         (xtensa_extract_return_value, xtensa_store_return_value
3750         (xtensa_push_dummy_call, xtensa_breakpoint_from_pc): Replace 
3751         TARGET_BYTE_ORDER by gdbarch_byte_order.
3752         * sh-tdep.c (sh_breakpoint_from_pc, gdb_print_insn_sh)
3753         (sh_justify_value_in_reg, sh_next_flt_argreg, sh_push_dummy_call_fpu)
3754         (sh_extract_return_value_fpu, sh_store_return_value_fpu): Likewise.
3755         * sh64-tdep.c (sh64_breakpoint_from_pc, gdb_print_insn_sh64)
3756         (sh64_push_dummy_call, sh64_extract_return_value)
3757         (sh64_store_return_value, sh64_register_convert_to_virtual)
3758         (sh64_register_convert_to_raw, sh64_pseudo_register_read)
3759         (sh64_pseudo_register_write, sh64_do_fp_register)
3760         (sh64_frame_prev_register): Likewise.
3761         * score-tdep.c (score_print_insn, score_breakpoint_from_pc)
3762         (score_return_value, score_push_dummy_call, score_fetch_inst): Likewise.
3763         * rs6000-tdep.c (rs6000_breakpoint_from_pc, rs6000_push_dummy_call)
3764         (e500_move_ev_register,gdb_print_insn_powerpc): Likewise.
3765         * remote-m32r-sdi.c (m32r_resume, m32r_wait): Likewise.
3766         * ppc-linux-nat.c (store_register): Likewise.
3767         * nto-tdep.c (nto_find_and_open_solib)
3768         (nto_init_solib_absolute_prefix): Likewise.
3769         * mips-tdep.c (mips_pseudo_register_read, mips_pseudo_register_write)
3770         (mips_convert_register_p, mips_eabi_push_dummy_call)
3771         (mips_n32n64_push_dummy_call, mips_n32n64_return_value)
3772         (mips_o32_push_dummy_call, mips_o32_return_value)
3773         (mips_o64_push_dummy_call, mips_o64_return_value, mips_o64_return_value)
3774         (mips_read_fp_register_single, mips_read_fp_register_double)
3775         (mips_print_register, print_gp_register_row, gdb_print_insn_mips)
3776         (mips_breakpoint_from_pc): Likewise.
3777         * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset): Likewise.
3778         * mips-linux-tdep.c (mips64_supply_fpregset, mips64_fill_fpregset)
3779         (mips_linux_o32_sigframe_init): Likewise.
3780         * m32r-tdep.c (m32r_memory_insert_breakpoint)
3781         (m32r_memory_remove_breakpoint, m32r_breakpoint_from_pc): Likewise.
3782         * libunwind-frame.c (libunwind_frame_cache, libunwind_frame_sniffer)
3783         (libunwind_sigtramp_frame_sniffer, libunwind_get_reg_special): Likewise.
3784         * iq2000-tdep.c (iq2000_breakpoint_from_pc): Likewise.
3785         * coffread.c (process_coff_symbol): Likewise.
3786         * arm-tdep.c (convert_from_extended, convert_to_extended)
3787         (gdb_print_insn_arm): Likewise.
3788
3789 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3790
3791         * gdbarch.sh (NUM_REGS): Replace by gdbarch_num_regs.
3792         * i386-tdep.c (i386_dbx_reg_to_regnum)
3793         (i386_svr4_reg_to_regnum): Likewise.
3794         * inf-ptrace.c (inf_ptrace_fetch_registers)
3795         (inf_ptrace_store_registers): Likewise.
3796         * corelow.c (get_core_registers): Likewise.
3797         * i386-linux-nat.c (supply_gregset, fill_gregset)
3798         (i386_linux_fetch_inferior_registers)
3799         (i386_linux_store_inferior_registers): Likewise.
3800         * remote.c (init_remote_state,packet_reg_from_regnum)
3801         (packet_reg_from_pnum,process_g_packet,remote_fetch_registers)
3802         (remote_prepare_to_store,store_registers_using_G)
3803         (remote_store_registers,remote_arch_state): Likewise.
3804         * tracepoint.c (encode_actions): Likewise.
3805         * mi/mi-main.c (mi_cmd_data_list_register_names)
3806         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3807         (mi_cmd_data_write_register_values): Likewise.
3808         * tui/tui-regs.c (tui_show_register_group)
3809         (tui_show_register_group): Likewise.
3810         * xtensa-tdep.h (FP_ALIAS): Likewise.
3811         * xtensa-tdep.c (xtensa_register_name,xtensa_register_type)
3812         (xtensa_reg_to_regnum,xtensa_pseudo_register_read)
3813         (xtensa_pseudo_register_write,xtensa_register_reggroup_p): Likewise.
3814         * win32-nat.c (do_win32_fetch_inferior_registers)
3815         (do_win32_store_inferior_registers,fetch_elf_core_registers
3816         * user-regs.h: Likewise (comment).
3817         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3818         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3819         * target-descriptions.h: Likewise (comment).
3820         * target-descriptions.c (tdesc_use_registers): Likewise (comment).
3821         * target.c (debug_print_register): Likewise.
3822         * stack.c (frame_info): Likewise.
3823         * stabsread.c (define_symbol): Likewise.
3824         * sh64-tdep.c (sh64_do_pseudo_register,sh64_print_register)
3825         (sh64_media_print_registers_info)
3826         (sh64_compact_print_registers_info): Likewise.
3827         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3828         * rs6000-nat.c (fetch_register,store_register): Likewise.
3829         * remote-sim.c (one2one_register_sim_regno,gdbsim_fetch_register)
3830         (gdbsim_fetch_register,gdbsim_store_register): Likewise.
3831         * remote-mips.c (mips_fetch_registers,mips_store_registers): Likewise.
3832         * remote-m32r-sdi.c (m32r_fetch_registers)
3833         (m32r_store_registers): Likewise.
3834         * reggroups.c (default_register_reggroup_p): Likewise.
3835         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save)
3836         (regcache_restore,regcache_dump): Likewise.
3837         * monitor.c (monitor_fetch_registers,monitor_store_registers): Likewise.
3838         * mips-tdep.c (mips_xfer_register,mips_register_name)
3839         (mips_register_reggroup_p,mips_pseudo_register_read)
3840         (mips_pseudo_register_write,mips_convert_register_p,mips_register_type)
3841         (mips_unwind_pc,mips_unwind_sp,mips_unwind_dummy_id,set_reg_offset)
3842         (mips16_scan_prologue,mips_insn16_frame_cache,reset_saved_regs)
3843         (mips32_scan_prologue,mips_insn32_frame_cache,read_next_frame_reg)
3844         (mips_n32n64_return_value,mips_o32_return_value,mips_o64_return_value)
3845         (print_gp_register_row,mips_print_registers_info)
3846         (mips_stab_reg_to_regnum,mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3847         (mips_register_sim_regno): Likewise.
3848         * mips-linux-tdep.c (mips_linux_o32_sigframe_init)
3849         (mips_linux_n32n64_sigframe_init): Likewise.
3850         * mips-linux-nat.c (mips_linux_register_addr)
3851         (mips64_linux_register_addr): Likewise.
3852         * findvar.c (value_of_register): Likewise.
3853         * infcmd.c (default_print_registers_info,registers_info)
3854         (print_vector_info,print_float_info): Likewise.
3855         * mips64obsd-tdep.c (mips64obsd_sigframe_init): Likewise.
3856         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
3857         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3858         * m68hc11-tdep.c (m68hc11_frame_unwind_cache(: Likewise.
3859         * m32r-tdep.c (m32r_frame_unwind_cache): Likewise.
3860         * ia64-linux-nat.c (ia64_register_addr,ia64_cannot_fetch_register)
3861         (ia64_cannot_store_register,ia64_linux_fetch_registers)
3862         (ia64_linux_store_registers): Likewise.
3863         * hpux-thread.c (hpux_thread_fetch_registers)
3864         (hpux_thread_store_registers): Likewise.
3865         * h8300-tdep.c (E_PSEUDO_CCR_REGNUM,E_PSEUDO_EXR_REGNUM)
3866         (h8300_init_frame_cache,h8300_frame_cache,h8300_frame_prev_register)
3867         (h8300_register_type): Likewise.
3868         * dwarf2-frame.c (dwarf2_frame_cache)
3869         (dwarf2_frame_state_alloc_regs): Likewise.
3870         * cris-tdep.c (cris_register_size,cris_cannot_fetch_register)
3871         (cris_cannot_store_register,crisv32_cannot_fetch_register)
3872         (crisv32_cannot_store_register,cris_register_name): Likewise.
3873         * avr-tdep.c (avr_frame_unwind_cache): Likewise.
3874         * arch-utils.c (legacy_register_sim_regno)
3875         (legacy_virtual_frame_pointer): Likewise.
3876         * arm-tdep.c (arm_make_prologue_cache,arm_register_sim_regno):Likewise.
3877         * arm-tdep.h: Likewise (comment).
3878         * frv-tdep.c (frv_register_sim_regno): Likewise.
3879         * m68klinux-nat.c (old_fetch_inferior_registers)
3880         (old_store_inferior_registers): Likewise.
3881         * m32c-tdep.c (m32c_virtual_frame_pointer): Likewise.
3882         * irix5-nat.c (fetch_core_registers): Likewise.
3883         * hppa-tdep.c (hppa_frame_cache): Likewise.
3884         * hppa-linux-nat.c (hppa_linux_register_addr)
3885         (hppa_linux_fetch_inferior_registers)
3886         (hppa_linux_store_inferior_registers): Likewise.
3887         * hppa-hpux-nat.c (hppa_hpux_fetch_inferior_registers)
3888         (hppa_hpux_store_inferior_registers): Likewise.
3889         * amd64-nat.c (amd64_native_gregset_reg_offset)
3890         (amd64_supply_native_gregset,amd64_collect_native_gregset): Likewise.
3891         * dbug-rom.c (dbug_regname): Likewise.
3892         * m68hc11-tdep.c (m68hc11_frame_unwind_cache)
3893         (HARD_PAGE_REGNUM (comment)): Likewise.
3894         * gdbarch.sh (NUM_PSEUDO_REGS): Replace by gdbarch_num_pseudo_regs.
3895         * i386-tdep.c (i386_dbx_reg_to_regnum)
3896         (i386_svr4_reg_to_regnum): Likewise.
3897         * mi/mi-main.c (mi_cmd_data_list_register_names)
3898         (mi_cmd_data_list_changed_registers,mi_cmd_data_list_register_values)
3899         (mi_cmd_data_write_register_values): Likewise.
3900         * gdbarch.c, gdbarch.h: Regenerate.
3901         * tui/tui-regs.c (tui_show_register_group): Likewise.
3902         * xtensa-tdep.h (FP_ALIAS): Likewise.
3903         * user-regs.h: Likewise (comment).
3904         * user-regs.c (user_reg, user_reg_map_name_to_regnum): Likewise.
3905         * trad-frame.c (trad_frame_alloc_saved_regs): Likewise.
3906         * target-descriptions.h: Likewise (comment).
3907         * target.c (debug_print_register): Likewise.
3908         * stack.c (frame_info): Likewise.
3909         * stabsread.c (define_symbol): Likewise.
3910         * sh64-tdep.c (sh64_print_register,sh64_media_print_registers_info)
3911         (sh64_compact_print_registers_info): Likewise.
3912         * rs6000-tdep.c (rs6000_register_sim_regno): Likewise.
3913         * regcache.c (init_regcache_descr,register_size,regcache,regcache_save
3914         (regcache_restore,regcache_dump): Likewise.
3915         * mips-tdep.c (print_gp_register_row,mips_print_registers_info)
3916         (mips_dwarf_dwarf2_ecoff_reg_to_regnum)
3917         (mips_stab_reg_to_regnum): Likewise.
3918         * findvar.c (value_of_register): Likewise.
3919         * infcmd.c (default_print_registers_info,registers_info)
3920         (print_vector_info,print_float_info): Likewise.
3921         * m68k-tdep.c (m68k_dwarf_reg_to_regnum): Likewise.
3922         * h8300-tdep.c (h8300_register_type): Likewise.
3923         * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
3924         * frame.h (SIZEOF_FRAME_SAVED_REGS): Likewise.
3925         * xtensa-tdep.c (xtensa_register_type,xtensa_reg_to_regnum)
3926         (xtensa_pseudo_register_read,xtensa_pseudo_register_write): Likewise.
3927         * parse.c: Remove comment.
3928         * gdbarch.c, gdbarch.h: Regenerate
3929
3930 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3931
3932         * gdbarch.sh (CANNOT_FETCH_REGISTER): Replace by
3933         gdbarch_cannot_fetch_register.
3934         * alpha-nat.c (fetch_osf_core_registers): Likewise.
3935         * hppa-linux-nat.c (fetch_register): Likewise.
3936         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
3937         * m68klinux-nat.c (fetch_register): Likewise.
3938         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg):
3939         Likewise.
3940         * gdbarch.sh (CANNOT_STORE_REGISTER): Replace by
3941         gdbarch_cannot_store_register.
3942         * hppa-linux-nat.c (store_register): Likewise.
3943         * inf-ptrace.c (inf_ptrace_store_register): Likewise.
3944         * regcache.c (regcache_raw_write): Likewise.
3945         * m68klinux-nat.c (store_register): Likewise.
3946         * mipsnbsd-tdep.c (mipsnbsd_fill_reg, mipsnbsd_fill_fpreg): Likewise.
3947         * gdbarch.c, gdbarch.h: Regenerate.
3948
3949 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3950
3951         * gdbarch.sh (TARGET_OSABI): Replace by gdbarch_osabi.
3952         * gdbarch.c, gdbarch.h: Regenerate.
3953
3954 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3955
3956         * gdbarch.sh (TARGET_CHAR_SIGNED): Replace by gdbarch_char_signed.
3957         * gdbtypes.c (build_gdbtypes, gdbtypes_post_init): Likewise.
3958         * gdbarch.c, gdbarch.h: Regenerate.
3959
3960 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3961
3962         * gdbarch.sh (TARGET_BYTE_ORDER): Replace by gdbarch_byte_order.
3963         * ax-gdb.c (gen_bitfield_ref): Likewise.
3964         * mi/mi-main.c (get_register): Likewise.
3965         * findvar.c (default_value_from_register, extract_signed_integer)
3966         (extract_unsigned_integer, extract_long_unsigned_integer)
3967         (store_signed_integer, store_unsigned_integer): Likewise.
3968         * regcache.c (regcache_dump): Likewise.
3969         * value.c (lookup_internalvar, value_of_internalvar)
3970         (set_internalvar): Likewise.
3971         * defs.h: Likewise.
3972         * valprint.c (print_binary_chars, print_octal_chars)
3973         (print_decimal_chars, print_hex_chars, print_char_chars): Likewise.
3974         * infcmd.c (default_print_registers_info): Likewise.
3975         * arch-utils.c (selected_byte_order, show_endian): Likewise.
3976         * stabsread.c (define_symbol): Likewise.
3977         * doublest.c (floatformat_from_length, floatformat_from_type)
3978         (extract_typed_floating, store_typed_floating): Likewise.
3979         * gdbarch.c, gdbarch.h: Regenerate.
3980
3981 2007-05-31  Markus Deuling  <deuling@de.ibm.com>
3982
3983         * gdbarch.sh (CALL_DUMMY_LOCATION): Replace by
3984         gdbarch_call_dummy_location.
3985         * infcall.c (call_function_by_hand): Likewise.
3986         * inferior.h: Change comment.
3987         * arch-utils.c: Change comment.
3988         * gdbarch.c, gdbarch.h: Regenerate.
3989
3990 2007-05-28  Joel Brobecker  <brobecker@adacore.com>
3991
3992         * solib-aix5.c: Delete.
3993         * Makefile.in (solib-aix5.o): Delete rule.
3994
3995 2007-05-23  Daniel Jacobowitz  <dan@codesourcery.com>
3996
3997         * breakpoint.h (enum bpstat_what_main_action): Remove
3998         BPSTAT_WHAT_THROUGH_SIGTRAMP.
3999         * infrun.c (process_event_stop_test): Do not check for it.
4000
4001 2007-05-22  Chris Dearman  <chris@mips.com>
4002             Maciej W. Rozycki  <macro@mips.com>
4003
4004         * ser-unix.c (show_serial_hwflow): New function.
4005         (hardwire_raw): Add hardware flow control support.
4006         (_initialize_ser_hardwire): Add "set/show remoteflow".
4007         * Makefile.in (ser-unix.o): Depend on $(gdbcmd_h).
4008         * NEWS: Document the new command.
4009
4010 2007-05-21  Ulrich Weigand  <uweigand@de.ibm.com>
4011
4012         * config/i386/tm-linux.h (sys_quotactl): Do not define.
4013         * configure.ac (sys_quotactl, START_INFERIOR_TRAPS_EXPECTED): Do not
4014         define for i[[3456]]86-*-linux* native configurations.
4015         * config.in, configure: Regenerate.
4016
4017 2007-05-19  Joel Brobecker  <brobecker@adacore.com>
4018
4019         * rs6000-nat.c (xcoff_relocate_symtab): Do nothing if debugging
4020         a core file. Add comment in the function description.
4021
4022 2007-05-18  Caroline Tice  <ctice@apple.com>
4023
4024         * c-valprint.c (c_value_print):  If the initialized field of the
4025         value struct is 0, print out "[uninitialized]" before the value.
4026         * dwarf2expr.c (execute_stack_op): Initialize ctx->initialized field; 
4027         allow DW_OP_GNU_uninit as legal op following a DW_OP_reg op or a 
4028         DW_OP_regx op; add case for DW_OP_GNU_uninit and update
4029         ctx->initialized appropriately. Verify no location op follows
4030         DW_OP_GNU_uninit.
4031         * dwarf2expr.h (struct dwarf_expr_context): New field, initialized.
4032         * dwarf2loc.c (dwarf2_evaluate_loc_desc): Add call to 
4033         set_value_initialized.
4034         * dwarf2read.c (dwarf_stack_op_name): Add case for DW_OP_GNU_uninit.
4035         (decode_locdesc): Add case for DW_OP_GNU_uninit.
4036         * value.c (struct value):  New field, initialized.
4037         (allocate_value): Initialize new field.
4038         (set_value_initialized): New function.
4039         (value_initialized): New function.
4040         * value.h (value_initialized): New extern declaration.
4041         (set_value_initialized): Likewise.
4042         
4043 2007-05-18  Caroline Tice  <ctice@apple.com>
4044
4045         * MAINTAINERS (Write After Approval): Add self.
4046         
4047 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
4048
4049         * gdbtypes.c (make_reference_type): Preserve the type chain
4050         and set the length of all the variants of the pointer type.
4051
4052 2007-05-17  Joel Brobecker  <brobecker@adacore.com>
4053
4054         * gdbtypes.c (make_pointer_type): Preserve the pointer type chain
4055         and set the length of all the variants of the pointer type.
4056
4057 2007-05-17  Maciej W. Rozycki  <macro@mips.com>
4058
4059         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix and reformat a
4060         comment.
4061         (mips_o64_push_dummy_call): Reformat a comment.
4062
4063 2007-05-17  Qinwei  <qinwei@sunnorth.com.cn>
4064
4065         * score-tdep.c (score_frame_cache->fp, score_analyze_prologue)
4066         (score_prologue_frame_base_address): Return fp to keep gdb print
4067         local variables correctly when debugging information is stabs.
4068
4069         (score_analyze_prologue): For software watchpoint, fetch all the
4070         instructions from range [startaddr, pc] once and identify them locally
4071         to reduce memory access.
4072         (score_malloc_and_get_memblock, score_free_memblock)
4073         (score_adjust_memblock_ptr): New functions.
4074         (score_fetch_inst): Fetch single instruction or mutiple instructions.
4075
4076         (score_target_can_use_watch, score_stopped_by_watch)
4077         (score_target_insert_watchpoint, score_target_remove_watchpoint)
4078         (score_target_insert_hw_breakpoint, score_target_remove_hw_breakpoint):
4079         New functions for remote & local hw-watchpoint and hw-breakpoint.
4080
4081 2007-05-16  Alfred M. Szmidt  <ams@gnu.org>
4082
4083         * reply_mig_hack.awk: Check for `auto const mach_msg_type_t'
4084         declarations as well.
4085
4086 2007-05-16  Ulrich Weigand  <uweigand@de.ibm.com>
4087
4088         * config/arm/embed.mt (DEPRECATED_TM_FILE): Set to tm-arm.h.
4089         * config/arm/tm-embed.h: Delete file.
4090
4091         * arm-tdep.h (arm_software_single_step): Declare.
4092         * arm-tdep.c (arm_software_single_step): Make global.
4093         (arm_gdbarch_init): Move set_gdbarch_software_single_step call
4094         from here to ...
4095         * arm-linux-tdep.c (arm_linux_init_abi): ... here ...
4096         * armnbsd-tdep.c (arm_netbsd_init_abi_common): ... here ...
4097         * armobsd-tdep.c (armobsd_init_abi): ... here ...
4098         * arm-wince-tdep.c (arm_wince_init_abi): ... and here.
4099
4100         * arm-tdep.c (ARM_LE_BREAKPOINT, ARM_BE_BREAKPOINT): No longer
4101         allow defines to be overriden by TM file.
4102         (THUMB_LE_BREAKPOINT, THUMB_BE_BREAKPOINT): Likewise.  Also,
4103         change default to {0xbe,0xbe}.
4104         * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint,
4105         arm_obsd_thumb_be_breakpoint): New global variables.
4106         (armobsd_init_abi): Override tdep->thumb_breakpoint and
4107         tdep->thumb_breakpoint_size.
4108         * arm-wince-tdep.c (arm_wince_thumb_le_breakpoint): New variable.
4109         (arm_wince_init_abi): Override tdep->thumb_breakpoint and 
4110         tdep->thumb_breakpoint_size.
4111
4112         * arm-tdep.c (arm_gdbarch_init): Add set_gdbarch_skip_trampoline_code.
4113
4114 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
4115
4116         * NEWS: Mention removed "set mips stack-arg-size" and "set mips
4117         saved-gpreg-size".
4118
4119         * mips-tdep.c (MIPS32_REGSIZE, MIPS64_REGSIZE): New constants.
4120         (size_auto, size_32, size_64, size_enums, mips_abi_regsize_string)
4121         (mips_stack_argsize_string, mips_stack_argsize): Delete.
4122         (mips_abi_regsize): Simplify.
4123         (mips_eabi_push_dummy_call, mips_n32n64_push_dummy_call)
4124         (mips_n32n64_return_value, mips_o32_push_dummy_call)
4125         (mips_o32_return_value, mips_o64_push_dummy_call)
4126         (mips_o64_return_value): Propogate constant register sizes.  Use the
4127         ABI register size instead of mips_stack_argsize.
4128         (mips_dump_tdep): Don't print mips_stack_argsize.
4129         (_initialize_mips_tdep): Remove saved-gpreg-size and stack-arg-size
4130         settings.
4131
4132 2007-05-16  Daniel Jacobowitz  <dan@codesourcery.com>
4133
4134         * config/mips/linux.mt (DEPRECATED_TM_FILE): Delete.
4135         * config/mips/tm-linux.h: Delete.
4136         * mips-linux-tdep.c (mips_svr4_so_ops): New.
4137         (mips_linux_in_dynsym_resolve_code): Make static.  Use
4138         svr4_in_dynsym_resolve_code.
4139         (mips_linux_init_abi): Initialize mips_svr4_so_ops.  Call
4140         set_solib_ops.
4141         * solib-svr4.c (svr4_in_dynsym_resolve_code, svr4_so_ops): Make
4142         global.
4143         * solib-svr4.h (svr4_so_ops, svr4_in_dynsym_resolve_code): Declare.
4144         * Makefile.in (mips-linux-tdep.o): Update.
4145         * solib.c (set_solib_ops): New.
4146         (current_target_so_ops): Update comment.
4147         * solib.h (set_solib_ops): New prototype.
4148
4149 2007-05-16  Chris Dearman  <chris@mips.com>
4150
4151         * printcmd.c (do_examine): Fix typos in a comment.
4152
4153 2007-05-16  Richard Sandiford  <richard@codesourcery.com>
4154
4155         * configure.ac: Allow sysroots to be relocated under $prefix as
4156         well as $exec_prefix.
4157         * configure: Regenerate.
4158
4159 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
4160
4161         * hppa-hpux-tdep.c: Do not include <dl.h> or <machine/save_state.h>.
4162         (offsetof): Do not define.
4163         (find_stub_with_shl_get): Use numerical value 3 instead of
4164         symbolic value TYPE_PROCEDURE.
4165
4166 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4167
4168         * gdb_proc_service.h (paddr_t): Delete typedef.
4169         * proc-service.c (ps_addr_to_core_addr, core_addr_to_ps_addr): New.
4170         (ps_xfer_memory): Take a psaddr_t.  Use ps_addr_to_core_addr.
4171         (ps_pglobal_lookup): Take a psaddr_t *.  Use core_addr_to_ps_addr.
4172         (ps_pdread, ps_pdwrite, ps_ptread, ps_ptwrite): Take a psaddr_t.
4173         * sol-thread.c (gdb_ps_addr_t): Use psaddr_t instead of paddr_t.
4174         * Makefile.in (proc-service.o): Update.
4175
4176 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4177
4178         * Makefile.in (mips-tdep.o): Update.
4179         * mips-tdep.c (mips_gdbarch_init): Register the dwarf2 CFI
4180         unwinder.
4181
4182 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4183
4184         * dwarf2-frame.c (dwarf2_frame_prev_register): Use pack_long
4185         instead of store_typed_address.
4186         * value.c (pack_long): New.
4187         (value_from_longest): Use it.
4188         * value.h (pack_long): New prototype.
4189
4190 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4191
4192         * dwarf2-frame.c (read_encoded_value): Correct typo.  Use
4193         DW_EH_PE_signed if appropriate.
4194
4195 2007-05-14  Paul Brook  <paul@codesourcery.com>
4196             Daniel Jacobowitz  <dan@codesourcery.com>
4197
4198         * dwarf2read.c (dwarf2_debug_line_missing_file_complaint): New
4199         function.
4200         (dwarf_decode_lines): Check for line info without a file.
4201
4202 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4203
4204         * linux-thread-db.c (thread_db_pid_to_str): Print thread IDs
4205         as hexadecimal.
4206
4207 2007-05-14  Daniel Jacobowitz  <dan@codesourcery.com>
4208
4209         * jv-exp.y (push_fieldnames): Use STRUCTOP_PTR instead of
4210         STRUCTOP_STRUCT.
4211         * jv-lang.c (evaluate_subexp_java): Handle STRUCTOP_PTR instead of
4212         STRUCTOP_STRUCT.
4213         * jv-typeprint.c (java_print_type): Do not crash on NULL varstring.
4214
4215 2007-05-14  Ulrich Weigand  <uweigand@de.ibm.com>
4216
4217         * gdbarch.sh (read_sp): Remove.
4218         * gdbarch.c, gdbarch.h: Regenerate.
4219         * frame.c (frame_sp_unwind): Do not call TARGET_READ_SP.
4220
4221         * avr-tdep.c (avr_read_sp): Remove.
4222         (avr_unwind_sp): New function.
4223         (avr_gdbarch_init): Install unwind_sp instead of read_sp callback.
4224         * mips-tdep.c (mips_read_sp): Remove.
4225         (mips_unwind_sp): New function.
4226         (mips_gdbarch_init): Install unwind_sp instead of read_sp callback.
4227         * score-tdep.c (score_read_unsigned_register): Remove.
4228         (score_read_sp): Remove.
4229         (score_unwind_sp): New function.
4230         (score_gdbarch_init): Install unwind_sp instead of read_sp callback.
4231
4232 2007-05-14  Maxim Grigoriev  <maxim2405@gmail.com>
4233
4234         * buildsym.c (start_subfile): Handle absolute pathnames
4235         while comparing subfile names.
4236
4237 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4238
4239         * hppa-hpux-tdep.c: Include "regcache.h".
4240         * hppa-linux-tdep.c: Likewise.
4241         * hppa-tdep.c: Include "gdb_stdint.h".
4242         (find_unwind_entry): Cast host pointer to uintptr_t before passing
4243         it to paddr_nz.
4244         * Makefile.in: Update dependencies.
4245
4246 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4247
4248         * blockframe.c: Remove obsolete comments.
4249         * alpha-nat.c (fetch_osf_core_registers): Update comment.
4250         * arm-tdep.h (enum gdb_regnum): Remove obsolete part of comment.
4251         * hppa-tdep.h (enum hppa_regnum): Likewise.
4252         * mips-tdep.h: Likewise.
4253         * m68hc11-tdep.c: Likewise.
4254
4255 2007-05-13  Ulrich Weigand  <uweigand@de.ibm.com>
4256
4257         * inferior.h (read_sp): Remove prototype.
4258         * regcache.c (read_sp): Remove.
4259         * gcore.c (derive_stack_segment): Use get_frame_sp instead of read_sp.
4260         * infcall.c (call_function_by_hand): Likewise.
4261         * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Use regcache instead
4262         of calling read_sp.
4263         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4264
4265 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4266
4267         * i386-linux-nat.c (i386_linux_resume): Use regcache functions 
4268         instead of read_register and read_register_pid.
4269
4270         * ia64-linux-nat.c (enable_watchpoints_in_psr): Use REGCACHE 
4271         argument instead of PTID.  Use regcache functions instead of
4272         read_register_pid.
4273         (ia64_linux_insert_watchpoint): Update call.
4274         (ia64_linux_stopped_data_address): Use regcache functions
4275         instead of read_register_pid and write_register_pid.
4276
4277 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4278
4279         * libunwind-frame.h (struct regcache): Add forward declaration.
4280         (libunwind_get_reg_special): Add REGCACHE argument.
4281         * libunwind-frame.c (libunwind_get_reg_special): Add REGCACHE
4282         argument.  Pass it to unw_init_remote_p.
4283
4284         * ia64-tdep.c (ia64_pseudo_register_read): Pass regcache to
4285         libunwind_get_reg_special.
4286         (ia64_access_reg): Remove "write" case.
4287         (ia64_access_fpreg): Likewise.  Read from next_frame passed
4288         as callback argument instead of from current_regcache.
4289         (ia64_access_rse_reg): Remove "write" case.  Read from regcache
4290         passed as callback argument instead of from current_regcache.
4291         (ia64_access_rse_fpreg): New function.
4292         (ia64_unw_rse_acce): Use it instead of ia64_access_fpreg.
4293
4294 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4295
4296         * NEWS: Mention SPU overlay support.
4297
4298 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4299
4300         * spu-tdep.c (spu_frame_unwind_cache): Add comment.
4301
4302 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4303
4304         * breakpoint.c (remove_breakpoint): Do not remove software
4305         breakpoints in unmapped overlay sections.
4306
4307 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4308
4309         * spu-tdep.c: Include "observer.h".
4310         (spu_frame_unwind_cache): Unwind PC through overlay return stubs.
4311         (spu_overlay_data): New variable.
4312         (struct spu_overlay_table): New type.
4313         (spu_get_overlay_table, spu_overlay_update_osect, spu_overlay_update,
4314         spu_overlay_new_objfile): New functions.
4315         (spu_gdbarch_init): Install spu_overlay_update.
4316         (_initialize_spu_tdep): Register spu_overlay_new_objfile, 
4317         allocate spu_overlay_data objfile data.
4318
4319 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4320
4321         * gdbarch.sh (overlay_update): New gdbarch function.
4322         (struct obj_section): Add forward declaration.
4323         * gdbarch.c, gdbarch.h: Regenerate.
4324
4325         * symfile.c (simple_overlay_update): Make global.
4326         (target_overlay_update): Remove variable.
4327         (overlay_is_mapped): Call gdbarch_overlay_update instead of
4328         target_overlay_update.
4329         (overlay_load_command): Likewise.
4330         * symfile.h (struct obj_section): Add forward declaration.
4331         (simple_overlay_update): Add prototype.
4332
4333         * m32r-tdep.c (m32r_gdbarch_init): Install simple_overlay_update.
4334
4335 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4336
4337         * observer.sh: Add "struct objfile" forward declaration.
4338         * target.h (deprecated_target_new_objfile_hook): Remove.
4339         * symfile.c (deprecated_target_new_objfile_hook): Remove.
4340         (clear_symtab_users): Call observer_notify_new_objfile.
4341         (symbol_file_add_with_addrs_or_offsets): Likewise.
4342         * rs6000-nat.c: Include "observer.h".
4343         (vmap_ldinfo): Call observer_notify_new_objfile.
4344         (xcoff_relocate_core): Likewise.
4345         * remote.c (remote_new_objfile_chain): Remove.
4346         (remote_new_objfile): Do not call remote_new_objfile_chain.
4347         (_initialize_remote): Use observer_attach_new_objfile.
4348         * tui/tui-hooks.c (tui_target_new_objfile_chain): Remove.
4349         (tui_new_objfile_hook): Do not call tui_target_new_objfile_chain.
4350         (_initialize_tui_hooks): Use observer_attach_new_objfile.
4351         * aix-thread.c: Include "observer.h".
4352         (target_new_objfile_chain): Remove.
4353         (new_objfile): Do not call target_new_objfile_chain.
4354         (_initialize_aix_thread): Use observer_attach_new_objfile.
4355         * hpux-thread.c: Include "observer.h"
4356         (target_new_objfile_chain): Remove.
4357         (hpux_thread_new_objfile): Make static.  Do not call
4358         target_new_objfile_chain.
4359         (_initialize_hpux_thread): Use observer_attach_new_objfile.
4360         * linux-thread-db.c: Include "observer.h".
4361         (target_new_objfile_chain): Remove.
4362         (thread_db_new_objfile): Do not call target_new_objfile_chain.
4363         (_initialize_thread_db): Use observer_attach_new_objfile.
4364         * sol-thread.c: Include "observer.h".
4365         (target_new_objfile_chain): Remove.
4366         (sol_thread_new_objfile): Make static.  Do not call
4367         target_new_objfile_chain.
4368         (_initialize_sol_thread): Use observer_attach_new_objfile.
4369         * Makefile.in (aix-thread.o, hpux-thread.o, linux-thread-db.o,
4370         rs6000-nat.o, sol-thread.o, tui-hooks.o): Add dependency on
4371         $(observer_h).
4372
4373 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4374
4375         * gdbarch.sh (remote_translate_xfer_address): Remove.
4376         * gdbarch.h, gdbarch.c: Regenerate.
4377         * arch-utils.c (generic_remote_translate_xfer_address): Remove.
4378         * arch-utils.h (generic_remote_translate_xfer_address): Remove.
4379         * remote.c (remote_write_bytes_aux, remote_read_bytes): Do not
4380         call gdbarch_remote_translate_xfer_address.
4381         * frv-tdep.c (frv_gdbarch_init): Do not call
4382         set_gdbarch_remote_translate_xfer_address.
4383         * ia64-tdep.c (ia64_remote_translate_xfer_address): Remove.
4384         (ia64_gdbarch_init): Do not install it.
4385
4386 2007-05-11  Bob Wilson  <bob.wilson@acm.org>
4387
4388         * NEWS: Mention change in handling the -tui option.
4389
4390 2007-05-11  Daniel Jacobowitz  <dan@codesourcery.com>
4391
4392         * linux-thread-db.c (enable_thread_event_reporting): Fix comment
4393         typo.
4394
4395 2007-05-11  Ulrich Weigand  <uweigand@de.ibm.com>
4396
4397         * breakpoint.c (single_step_breakpoint_inserted_here_p): New function.
4398         (breakpoint_inserted_here_p): Call it.
4399         (software_breakpoint_inserted_here_p): Likewise.
4400
4401 2007-05-10  Ulrich Weigand  <uweigand@de.ibm.com>
4402
4403         * inf-ptrace.c (inf_ptrace_register_u_offset): Adapt parameter list.
4404         (inf_ptrace_fetch_register): Add register_u_offset callback parameters
4405         GDBARCH and STORE_P.  Handle callback (CORE_ADDR) -1 return value.
4406         (inf_ptrace_store_register): Likewise.
4407         (inf_ptrace_trad_target): Adapt register_u_offset parameter list.
4408         * inf-ptrace.h (inf_ptrace_trad_target): Likewise.
4409
4410         * vax-nat.c (vax_register_u_offset): Adapt parameter list.
4411
4412         * linux-nat.c (linux_trad_target): Adapt parameter list.
4413         * linux-nat.h (linux_trad_target): Likewise.
4414
4415         * alpha-linux-nat.c (alpha_linux_register_u_offset): Adapt parameters.
4416
4417         * mips-linux-nat.c (mips_linux_cannot_fetch_register): Remove.
4418         (mips_linux_cannot_store_register): Likewise.
4419         (mips_linux_register_addr): Add GDBARCH and STORE_P parameters.
4420         Return (CORE_ADDR) -1 for registers that cannot be fetched or
4421         stored via ptrace.  Use GDBARCH instead of current_gdbarch.
4422         (mips64_linux_register_addr): Likewise.
4423         (mips_linux_register_u_offset): Adapt parameter list.  Pass
4424         GDBARCH and STORE_P on to mips{64}_linux_register_addr.
4425
4426         * config/mips/linux.mh (NAT_FILE): Set to config/nm-linux.h.
4427         * config/mips/nm-linux.h: Delete file.
4428
4429 2007-05-10  Pedro Alves  <pedro_alves@portugalmail.pt>
4430
4431         * remote.c (remote_detach): Error out if remote can't detach.
4432
4433 2007-05-10  Luis Machado  <luisgpm@br.ibm.com>
4434
4435         * rs6000-tdep.c: (deal_with_atomic_sequence) Stores branch
4436         instruction's opcode in the "opcode" variable and declares new
4437         variable "closing_insn".
4438
4439 2007-05-10  Chris Dearman  <chris@mips.com>
4440             Maciej W. Rozycki  <macro@mips.com>
4441
4442         * cli/cli-setshow.c (do_setshow_command): Remove trailing
4443         whitespace when setting a var_filename.
4444
4445 2007-05-09  Bob Wilson  <bob.wilson@acm.org>
4446         
4447         * main.c (captured_main): Recognize -tui option and print an error
4448         message when the TUI is not configured.
4449         
4450 2007-05-09  Andreas Schwab  <schwab@suse.de>
4451
4452         * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Don't
4453         set removed members.
4454         (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
4455
4456 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
4457
4458         * gdbarch.sh (deprecated_store_struct_return): Remove.
4459         * gdbarch.c, gdbarch.h: Regenerate.
4460         * frv-tdep.c (frv_store_struct_return): Remove.
4461         (frv_gdbarch_init): Do not install it.
4462
4463 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
4464
4465         * config/i386/nm-i386sol2.h (USE_PROC_FS): Do not define.
4466         * config/mips/nm-irix5.h (USE_PROC_FS): Do not define.
4467         * config/nm-linux.h (USE_PROC_FS): Do not undefine.
4468
4469 2007-05-08  Ulrich Weigand  <uweigand@de.ibm.com>
4470
4471         * spu-linux-nat.c: Include "gdb_stdint.h".
4472         (fetch_ppc_register): Use uint64_t instead of unsigned long long.
4473         (fetch_ppc_memory_1, store_ppc_memory_1): Likewise.
4474         (fetch_ppc_memory, store_ppc_memory): Fix coding style.
4475         (spu_symbol_file_add_from_memory): Use strtoulst instead of sscanf.
4476         (spu_child_wait): Mark up string for translation.
4477
4478 2007-05-08  Paul Gilliam  <pgilliam@us.ibm.com>
4479             Luis Machado  <luisgpm@br.ibm.com>
4480
4481         * rs6000-tdep.c: (LWARX_MASK, LWARX_INSTRUCTION, LDARX_INSTRUCTION,
4482         STWCX_MASK, STWCX_INSTRUCTION, STDCX_INSTRUCTION, BC_MASK,
4483         BC_INSTRUCTION): Define.
4484         (deal_with_atomic_sequence): New function.
4485         (rs6000_software_single_step): Call deal_with_atomic_sequence.
4486         (rs6000_gdbarch_init): Install deal_with_atomic_sequence as
4487         gdbarch_software_single_step routine.
4488
4489 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
4490
4491         * spu-linux-nat.c (fetch_ppc_register, fetch_ppc_memory_1,
4492         store_ppc_memory_1, fetch_ppc_memory, store_ppc_memory,
4493         parse_spufs_run, spu_bfd_iovec_pread, spu_bfd_open,
4494         spu_symbol_file_add_from_memory, spu_child_post_startup_inferior,
4495         spu_child_post_attach, spu_fetch_inferior_registers,
4496         spu_store_inferior_registers, spu_xfer_partial): Store PPE-side
4497         memory addresses as ULONGEST, not CORE_ADDR.
4498
4499 2007-05-07  Ulrich Weigand  <uweigand@de.ibm.com>
4500
4501         * gdbarch.sh: Add skip_permanent_breakpoint callback.
4502         * gdbarch.h, gdbarch.c: Regenerate.
4503
4504         * infrun.c (SKIP_PERMANENT_BREAKPOINT): Remove default definition.
4505         (resume): Call gdbarch_skip_permanent_breakpoint instead of
4506         SKIP_PERMANENT_BREAKPOINT.  Inline default case.
4507
4508         * hppa-hpux-tdep.c (hppa_skip_permanent_breakpoint): Make static.
4509         Add REGCACHE argument.  Use it instead of read/write_register.
4510         (hppa_hpux_init_abi): Install hppa_skip_permanent_breakpoint.
4511
4512         * config/pa/tm-hppah.h: Delete file.
4513         * config/pa/hppa64.mt (DEPRECATED_TM_FILE): Set to tm-hppa.h.
4514         * config/pa/hppahpux.mt (DEPRECATED_TM_FILE): Likewise.
4515
4516 2007-05-07  Daniel Jacobowitz  <dan@codesourcery.com>
4517
4518         * Makefile.in (c-lang.o, gnu-v3-abi.o): Update.
4519         * NEWS: Mention improved C++ thunk support.
4520         * c-lang.c (cplus_language_defn): Mention cplus_skip_trampoline.
4521         * cp-abi.c (cplus_skip_trampoline): New.
4522         * cp-abi.h (cplus_skip_trampoline): New prototype.
4523         (struct cp_abi_ops): Add skip_trampoline member.
4524         * gnu-v3-abi.c (gnuv3_skip_trampoline): New.
4525         (init_gnuv3_ops): Set skip_trampoline.
4526
4527 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
4528
4529         * rs6000-tdep.c (struct frame_extra_info): Delete.
4530
4531 2007-05-06  Daniel Jacobowitz  <dan@codesourcery.com>
4532
4533         * linux-thread-db.c: Update some FIXME comments.
4534         (thread_db_xfer_partial): Delete.
4535         (init_thread_db_ops): Do not set to_xfer_partial.
4536
4537 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4538
4539         * inftarg.c, infptrace.c: Remove files.
4540         * Makefile.in (ALLDEPFILES): Remove inftarg.c and infptrace.c
4541         (inftarg.o, infptrace.o): Remove rules.
4542         * gdbcore.h (register_addr): Remove prototype.
4543         * inferior.h (kill_inferior, store_inferior_registers,
4544         fetch_inferior_registers, attach, detach, ptrace_wait, child_resume,
4545         call_ptrace, pre_fork_inferior): Remove prototypes.
4546         * target.h (child_xfer_memory, child_pid_to_exec_file, 
4547         child_core_file_to_sym_file, child_post_attach,
4548         child_post_startup_inferior, child_acknowledge_created_inferior,
4549         child_insert_fork_catchpoint, child_remove_fork_catchpoint,
4550         child_insert_vfork_catchpoint, child_remove_vfork_catchpoint,
4551         child_insert_exec_catchpoint, child_remove_exec_catchpoint,
4552         child_follow_fork, child_reported_exec_events_per_exec_call,
4553         child_has_exited, child_thread_alive): Remove prototypes.
4554
4555 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4556
4557         * sparc-nat.h (sparc_fetch_inferior_registers): Add prototype.
4558         (sparc_store_inferior_registers): Likewise.
4559         * sparc-nat.c (fetch_inferior_registers): Rename to ...
4560         (sparc_fetch_inferior_registers): ... this.
4561         (store_inferior_registers): Rename to ...
4562         (sparc_store_inferior_registers): ... this.
4563         (sparc_target): Update callback names.
4564         * sparc-linux.nat.c (_initialize_sparc_linux_nat): Likewise. 
4565         * sparc64-linux.nat.c (_initialize_sparc64_linux_nat): Likewise. 
4566
4567 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4568
4569         * linux-nat.c (child_post_attach): Rename to ...
4570         (linux_child_post_attach): ... this.  Make static.
4571         (child_follow_fork): Rename to ...
4572         (linux_child_follow_fork): ... this.  Make static.
4573         (child_insert_fork_catchpoint): Rename to ...
4574         (linux_child_insert_fork_catchpoint): ... this.  Make static.
4575         (child_insert_vfork_catchpoint): Rename to ...
4576         (linux_child_insert_vfork_catchpoint): ... this.  Make static.
4577         (child_insert_exec_catchpoint): Rename to ...
4578         (linux_child_insert_exec_catchpoint): ... this.  Make static.
4579         (child_pid_to_exec_file): Rename to ...
4580         (linux_child_pid_to_exec_file): ... this.  Make static.
4581         Add prototype.
4582         (linux_handle_extended_wait): Update call.
4583         (linux_xfer_partial): Update callback routine names.
4584
4585 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4586
4587         * configure.host (alpha*-*-osf[12]*): Remove support.
4588         * NEWS: Mention removed configurations.
4589
4590         * config/alpha/alpha-osf1.mh: Delete file.
4591         * config/alpha/alpha-osf2.mh: Delete file.
4592         * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove inftarg.o
4593         and infptrace.o.
4594         * config/alpha/nm-osf.h: Delete file.
4595         * config/alpha/nm-osf2.h: Delete file.
4596         * config/alpha/nm-osf3.h: Do not include "nm-osf2.h".
4597         (START_INFERIOR_TRAPS_EXPECTED): Copy from nm-osf.h.
4598         (PROCFS_DONT_TRACE_FAULTS): Copy from nm-osf2.h.
4599
4600         * alpha-nat.c (ALPHA_UNIQUE_PTRACE_ADDR): Do not define.
4601         (register_addr, kernel_u_size): Remove.
4602         Do not check for "defined(USE_PROC_FS) || defined(HAVE_GREGSET_T)".
4603
4604 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4605
4606         * regcache.c (regcache_invalidate): New function.
4607         (register_cached): Remove.
4608         (set_register_cached): Remove.
4609         (deprecated_registers_fetched): Remove.
4610         (registers_changed): Use regcache_invalidate instead
4611         of set_register_cached.
4612         (regcache_raw_read): Update comment.
4613
4614         * regcache.h (regcache_invalidate): Add prototype.
4615         (register_cached): Remove.
4616         (set_register_cached): Remove.
4617         (deprecated_registers_fetched): Remove.
4618
4619         * findvar.c (value_of_register): Do not call register_cached.
4620         * frame.c (frame_register): Likewise.
4621         * tui/tui-regs.c (tui_get_register): Likewise.
4622
4623         * remote.c (fetch_register_using_p): Do not call set_register_cached.
4624         (process_g_packet): Likewise.
4625         (remote_fetch_registers): Likewise.
4626         * remote-sim.c (gdbsim_fetch_register): Likewise.
4627         * mt-tdep.c (mt_select_coprocessor): Replace set_register_cached call
4628         by regcache_invalidate.
4629         (mt_pseudo_register_write): Likewise.
4630         * sh-tdep.c (sh_pseudo_register_write): Likewise.
4631
4632         * corelow.c (get_core_registers): Replace deprecated_registers_fetched
4633         call by loop over regcache_raw_supply (..., NULL).
4634
4635 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4636
4637         * target.h (struct target_ops): Add REGCACHE parameter to
4638         to_prepare_to_store.
4639         (target_prepare_to_store): Likewise.
4640         * target.c (debug_to_prepare_to_store): Add REGCACHE parameter.
4641         (update_current_target): Adapt prepare_to_store de_fault rule.
4642
4643         * regcache.c (regcache_raw_write): Pass regcache to
4644         target_prepare_to_store.
4645
4646         * inftarg.c (child_prepare_to_store): Add REGCACHE parameter.
4647         Do not call CHILD_PREPARE_TO_STORE.
4648         * gnu-nat.c (gnu_prepare_to_store): Likewise.
4649         * procfs.c (procfs_prepare_to_store): Likewise.
4650
4651         * inf-child.c (inf_child_prepare_to_store): Add REGCACHE parameter.
4652         * go32-nat.c (go32_prepare_to_store): Likewise.
4653         * monitor.c (monitor_prepare_to_store): Likewise.
4654         * nto-procfs.c (procfs_prepare_to_store): Likewise.
4655         * remote-m32r-sdi.c (m32r_prepare_to_store): Likewise.
4656         * remote-mips.c (mips_prepare_to_store): Likewise.
4657         * remote-sim.c (gdbsim_prepare_to_store): Likewise.
4658         * win32-nat.c (win32_prepare_to_store): Likewise.
4659
4660         * remote.c (remote_prepare_to_store): Add REGCACHE parameter.
4661         Use it instead of current_regcache.
4662
4663         * hpux-thread.c (hpux_thread_prepare_to_store): Add REGCACHE
4664         parameter.  Pass it on to next target.
4665         * sol-thread.c (sol_thread_prepare_to_store): Likewise.
4666
4667 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4668
4669         * target.h (struct regcache): Add forward declaration.
4670         (struct target_ops): Add REGCACHE parameter to to_fetch_registers
4671         and to_store_registers target operations.
4672         (target_fetch_registers, target_store_registers): Update.
4673
4674         * regcache.c (regcache_raw_read): Replace register_cached by
4675         regcache_valid_p.  Pass regcache to target_fetch_registers.
4676         (regcache_raw_write): Pass regcache to target_store_registers.
4677
4678         * arm-linux-nat.c (store_fpregister, store_fpregs, store_register,
4679         store_regs, store_wmmx_regs): Replace register_cached by
4680         regcache_valid_p.
4681
4682         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd): Pass current_regcache
4683         to target_fetch_registers calls.
4684         * corelow.c (core_open): Likewise.
4685         * linux-nat.c (linux_nat_corefile_thread_callback): Likewise.
4686         * proc-service.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4687         ps_lsetfpregs): Likewise.
4688         * sol-thread.c (ps_lgetregs, ps_lsetregs, ps_lgetfpregs,
4689         ps_lsetfpregs): Likewise.
4690         * win32-nat.c (win32_resume): Likewise.
4691         * ia64-tdep.c (ia64_store_return_value): Pass current_regcache
4692         to target_store_registers call.
4693         * rs6000-tdep.c (rs6000_push_dummy_call): Likewise.
4694
4695         * inferior.h (store_inferior_registers): Update prototype.
4696         (fetch_inferior_registers): Likewise.
4697         * gnu-nat.c (gnu_store_registers, gnu_fetch_registers): Likewise.
4698         * mips-linux-nat.c (super_fetch_registers, super_store_registers):
4699         Update function pointer signatures.
4700
4701         * aix-thread.c (aix_thread_fetch_registers): Add REGCACHE parameter,
4702         use it instead of current_regcache, update calls.
4703         (aix_thread_store_registers): Likewise.
4704         * alphabsd-nat.c (alphabsd_fetch_inferior_registers): Likewise.
4705         (alphabsd_store_inferior_registers): Likewise.
4706         * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers): Likewise.
4707         (amd64bsd_store_inferior_registers): Likewise.
4708         * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers): Likewise.
4709         (amd64_linux_store_inferior_registers): Likewise.
4710         * arm-linux-nat.c (fetch_fpregister, fetch_fpregs, store_fpregister,
4711         store_fpregs, fetch_register, fetch_regs, store_register, store_regs,
4712         fetch_wmmx_regs, store_wmmx_regs): Likewise.
4713         (arm_linux_fetch_inferior_registers): Likewise.
4714         (arm_linux_store_inferior_registers): Likewise.
4715         * armnbsd-nat.c (fetch_register, fetch_regs, fetch_fp_register,
4716         fetch_fp_regs, armnbsd_fetch_registers): Likewise.
4717         (store_register, store_regs, store_fp_register, store_fp_regs,
4718         armnbsd_store_registers): Likewise.
4719         * bsd-kvm.c (bsd_kvm_fetch_pcb, bsd_kvm_fetch_registers): Likewise.
4720         * bsd-uthread.c (bsd_uthread_fetch_registers): Likewise.
4721         (bsd_uthread_store_registers): Likewise.
4722         * corelow.c (get_core_registers): Likewise.
4723         * go32-nat.c (fetch_register, go32_fetch_registers, store_register,
4724         go32_store_registers): Likewise.
4725         * hppabsd-nat.c (hppabsd_fetch_registers): Likewise.
4726         (hppabsd_store_registers): Likewise.
4727         * hppa-hpux-nat.c (hppa_hpux_fetch_register): Likewise.
4728         (hppa_hpux_fetch_inferior_registers): Likewise.
4729         (hppa_hpux_store_register): Likewise.
4730         (hppa_hpux_store_inferior_registers): Likewise.
4731         * hppa-linux-nat.c (fetch_register, store_register): Likewise.
4732         (hppa_linux_fetch_inferior_registers): Likewise.
4733         (hppa_linux_store_inferior_registers): Likewise.
4734         * hpux-thread.c (hpux_thread_fetch_registers): Likewise.
4735         (hpux_thread_store_registers): Likewise.
4736         * i386bsd-nat.c (i386bsd_fetch_inferior_registers): Likewise.
4737         (i386bsd_store_inferior_registers): Likewise.
4738         * i386gnu-nat.c (fetch_fpregs, gnu_fetch_registers, store_fpregs,
4739         gnu_store_registers): Likewise.
4740         * i386-linux-nat.c (fetch_register, store_register, fetch_regs,
4741         store_regs, fetch_fpregs, store_fpregs, fetch_fpxregs, store_fpxregs):
4742         Likewise.
4743         (i386_linux_fetch_inferior_registers): Likewise.
4744         (i386_linux_store_inferior_registers): Likewise.
4745         * ia64-linux-nat.c (ia64_linux_fetch_register): Likewise.
4746         (ia64_linux_fetch_registers): Likewise.
4747         (ia64_linux_store_register): Likewise.
4748         (ia64_linux_store_registers): Likewise.
4749         * inf-child.c (inf_child_fetch_inferior_registers): Likewise.
4750         (inf_child_store_inferior_registers): Likewise.
4751         * inf-ptrace.c (inf_ptrace_fetch_register): Likewise.
4752         (inf_ptrace_fetch_registers): Likewise.
4753         (inf_ptrace_store_register): Likewise.
4754         (inf_ptrace_store_registers): Likewise.
4755         * infptrace.c (fetch_register, store_register): Likewise.
4756         (fetch_inferior_registers, store_inferior_registers): Likewise.
4757         * m32r-linux-nat.c (fetch_regs, store_regs): Likewise.
4758         (m32r_linux_fetch_inferior_registers): Likewise.
4759         (m32r_linux_store_inferior_registers): Likewise.
4760         * m68kbsd-nat.c (m68kbsd_fetch_inferior_registers): Likewise.
4761         (m68kbsd_store_inferior_registers): Likewise.
4762         * m68klinux-nat.c (fetch_register, old_fetch_inferior_registers,
4763         store_register, old_store_inferior_registers, fetch_regs, store_regs,
4764         fetch_fpregs, store_fpregs): Likewise.
4765         (m68k_linux_fetch_inferior_registers): Likewise.
4766         (m68k_linux_store_inferior_registers): Likewise.
4767         * m88kbsd-nat.c (m88kbsd_fetch_inferior_registers): Likewise.
4768         (m88kbsd_store_inferior_registers): Likewise.
4769         * mips64obsd-nat.c (mips64obsd_fetch_inferior_registers): Likewise.
4770         (mips64obsd_store_inferior_registers): Likewise.
4771         * mips-linux-nat.c (mips64_linux_regsets_fetch_registers): Likewise.
4772         (mips64_linux_regsets_store_registers): Likewise.
4773         (mips64_linux_fetch_registers): Likewise.
4774         (mips64_linux_store_registers): Likewise.
4775         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers): Likewise.
4776         (mipsnbsd_store_inferior_registers): Likewise.
4777         * monitor.c (monitor_fetch_register, monitor_store_register): Likewise.
4778         (monitor_fetch_registers, monitor_store_registers): Likewise.
4779         * nto-procfs.c (procfs_fetch_registers): Likewise.
4780         (procfs_store_registers): Likewise.
4781         * ppc-linux-nat.c (fetch_altivec_register, fetch_spe_register,
4782         fetch_register, supply_vrregset, fetch_altivec_registers,
4783         fetch_ppc_registers, ppc_linux_fetch_inferior_registers): Likewise.
4784         (store_altivec_register, store_spe_register, store_register, 
4785         fill_vrregset, store_altivec_registers, store_ppc_registers,
4786         ppc_linux_store_inferior_registers): Likewise.
4787         * ppcnbsd-nat.c (ppcnbsd_fetch_inferior_registers): Likewise.
4788         (ppcnbsd_store_inferior_registers): Likewise.
4789         * ppcobsd-nat.c (ppcobsd_fetch_registers): Likewise.
4790         (ppcobsd_store_registers): Likewise.
4791         * procfs.c (procfs_fetch_registers, procfs_store_registers): Likewise.
4792         * remote.c (fetch_register_using_p, process_g_packet,
4793         fetch_registers_using_g, remote_fetch_registers): Likewise.
4794         (store_register_using_P, store_registers_using_G, 
4795         remote_store_registers): Likewise.
4796         * remote-m32r-sdi.c (m32r_fetch_registers, m32r_fetch_register,
4797         m32r_store_register, m32r_store_register): Likewise.
4798         * remote-mips.c (mips_fetch_registers, mips_store_registers): Likewise.
4799         * remote-sim.c (gdbsim_fetch_register): Likewise.
4800         (gdbsim_store_register): Likewise.
4801         * rs6000-nat.c (fetch_register, store_register): Likewise.
4802         (rs6000_fetch_inferior_registers): Likewise.
4803         (rs6000_store_inferior_registers): Likewise.
4804         * s390-nat.c (fetch_regs, store_regs): Likewise.
4805         (fetch_fpregs, store_fpregs): Likewise.
4806         (s390_linux_fetch_inferior_registers): Likewise.
4807         (s390_linux_store_inferior_registers): Likewise.
4808         * shnbsd-nat.c (shnbsd_fetch_inferior_registers): Likewise.
4809         (shnbsd_store_inferior_registers): Likewise.
4810         * sol-thread.c (sol_thread_fetch_registers): Likewise.
4811         (sol_thread_store_registers): Likewise.
4812         * sparc-nat.c (fetch_inferior_registers): Likewise.
4813         (store_inferior_registers): Likewise.
4814         * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
4815         (spu_store_inferior_registers): Likewise.
4816         * target.c (debug_print_register): Likewise.
4817         (debug_to_fetch_registers, debug_to_store_registers): Likewise.
4818         * vaxbsd-nat.c (vaxbsd_fetch_inferior_registers): Likewise.
4819         (vaxbsd_store_inferior_registers): Likewise.
4820         * win32-nat.c (do_win32_fetch_inferior_registers): Likewise.
4821         (win32_fetch_inferior_registers): Likewise.
4822         (win32_store_inferior_registers): Likewise.
4823
4824 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4825
4826         * gdbcore.h (struct regcache): Add forward declaration.
4827         (struct core_fns): Add REGCACHE argument to core_read_registers
4828         callback.
4829         * corelow.c (get_core_register_section): Add REGCACHE argument,
4830         use it instead of current_regcache, pass it to core_read_registers
4831         callback.
4832         (get_core_registers): Add current_regcache as parameter to
4833         get_core_register_section calls.
4834
4835         * alpha-nat.c (fetch_osf_core_registers): Add REGCACHE argument,
4836         use it instead of current_regcache.
4837         * armnbsd-nat.c (fetch_core_registers): Likewise.
4838         (fetch_elfcore_registers): Likewise.
4839         * core-regset.c (fetch_core_registers): Likewise.
4840         * cris-tdep.c (fetch_core_registers): Likewise.
4841         * irix5-nat.c (fetch_core_registers): Likewise.
4842         * m68klinux-nat.c (fetch_core_registers): Likewise.
4843         * mips-linux-tdep.c (fetch_core_registers): Likewise.
4844         * win32-nat.c (fetch_elf_core_registers): Likewise.
4845
4846 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4847
4848         * gregset.h (struct regcache): Add forward declaration.
4849         (supply_gregset): Add REGCACHE parameter, make GREGS const.
4850         (supply_fpregset): Add REGCACHE parameter, make FPREGS const.
4851         (supply_fpxregset): Add REGCACHE parameter, make FPXREGS const.
4852         (fill_gregset): Add REGCACHE parameter.
4853         (fill_fpregset): Likewise.
4854         (fill_fpxregset): Likewise.
4855
4856         Update all definitions accordingly:
4857         * alphabsd-nat.c, alpha-linux-nat.c, alpha-nat.c, amd64-linux-nat.c,
4858         arm-linux-nat.c, hppa-linux-nat.c, i386gnu-nat.c, i386-linux-nat.c,
4859         i386-sol2-nat.c, i386v4-nat.c, ia64-linux-nat.c, irix5-nat.c, 
4860         m32r-linux-nat.c, m68klinux-nat.c, mips-linux-nat.c, ppc-linux-nat.c,
4861         s390-nat.c, sparc64-linux-nat.c, sparc-linux-nat.c, sparc-sol2-nat.c 
4862         (supply_gregset): Add REGCACHE parameter, use it instead of 
4863         current_regcache.  Make GREGSETP parameter const, adapt casts.
4864         (supply_fpregset): Add REGCACHE parameter, use it instead of
4865         current_regcache.  Make FPREGSETP parameter const, adapt casts.
4866         (fill_gregset): Add REGCACHE parameter, use it instead of
4867         current_regcache.
4868         (fill_fpregset): Likewise.
4869
4870         Update all callers to pass in current_regcache as the new argument:
4871         * core-regset.c: Include "regcache.h".
4872         (fetch_core_registers): Update supply_gregset,and supply_fpregset calls.
4873         * procfs.c: Include "regcache.h".
4874         (procfs_fetch_registers): Update supply_gregset, supply_fpregset calls.
4875         (procfs_store_registers): Update fill_gregset, fill_fpregset calls.
4876         (procfs_do_thread_registers): Likewise.
4877         (procfs_make_note_section): Likewise.
4878         * proc-service.c: Include "regcache.h".
4879         (ps_lgetregs): Update fill_gregset call.
4880         (ps_lsetregs): Update supply_gregset call.
4881         (ps_lgetfpregs): Update fill_fpregset call.
4882         (ps_lsetfpregs): Update supply_fpregset call.
4883         * sol-thread.c (sol_thread_fetch_registers): Update supply_gregset,
4884         supply_fpregset calls.
4885         (sol_thread_store_registers): Update fill_gregset, fill_fpregset calls.
4886         (ps_lgetregs): Update fill_gregset call.
4887         (ps_lsetregs): Update supply_gregset call.
4888         (ps_lgetfpregs): Update fill_fpregset call.
4889         (ps_lsetfpregs): Update supply_fpregset call.
4890         
4891         * linux-nat.c (linux_nat_do_thread_registers): Update fill_gregset,
4892         fill_fpregset, and fill_fpxregset calls.
4893         * i386-linux-nat.c (fetch_regs): Update supply_gregset call.
4894         (store_regs): Update fill_gregset call.
4895         (fetch_fpregs): Update supply_fpregset call.
4896         (store_fpregs): Update fill_fpregset call.
4897         (fetch_fpxregs): Update supply_fpxregset call.
4898         (store_fpxregs): Update fill_fpxregset call.
4899         * m32r-linux-nat.c (fetch_regs): Update supply_gregset call.
4900         (store_regs): Update fill_gregset call.
4901         * m68klinux-nat.c (fetch_regs): Update supply_gregset call.
4902         (store_regs): Update fill_gregset call.
4903         (fetch_fpregs): Update supply_fpregset call.
4904         (store_fpregs): Update fill_fpregset call.
4905         (fetch_core_registers): Update supply_gregset, supply_fpregset calls.
4906         * s390-nat.c (fetch_regs): Update supply_gregset call.
4907         (store_regs): Update fill_gregset call.
4908         (fetch_fpregs): Update supply_fpregset call.
4909         (store_fpregs): Update fill_fpregset call.
4910
4911         * Makefile.in (core-regset.o, procfs.o, proc-service.o): Update
4912         dependencies.
4913
4914 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4915
4916         * monitor.c (monitor_supply_register): Add REGCACHE parameter, use
4917         it instead of current_regcache.
4918         (parse_register_dump): Add REGCACHE parameter, pass it to 
4919         supply_register callback.
4920         (monitor_dump_reg_block): Add REGCACHE parameter, pass it to
4921         parse_register_dump.
4922         (monitor_dump_regs): Add REGCACHE parameter, pass it to
4923         parse_register_dump and dumpregs callback.
4924         (monitor_wait): Pass current_regcache to parse_register_dump and
4925         monitor_dump_regs.
4926         (monitor_fetch_register): Pass current_regcache to
4927         monitor_supply_register.
4928         (monitor_fetch_registers): Pass current_regcache to
4929         monitor_dump_regs.
4930         * monitor.h (struct monitor_ops): Add REGCACHE parameter to
4931         supply_register and dumpregs callbacks.
4932         (monitor_supply_register, monitor_dump_reg_block): Update
4933         prototypes.
4934         * dbug-rom.c (dbug_supply_register): Add REGCACHE parameter.  Pass
4935         it to monitor_supply_register.
4936         * dink32-rom.c (dink32_supply_register): Likewise.
4937         * ppcbug-rom.c (ppcbug_supply_register): Likewise.
4938         * m32r-rom.c (m32r_supply_register): Likewise.  Also, use REGCACHE
4939         instead of current_regcache.
4940
4941 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4942
4943         * i386-nto-tdep.c (i386nto_supply_gregset, i386nto_supply_fpregset):
4944         Add REGCACHE parameter.  Use it instead of current_regcache.
4945         (i386nto_supply_regset): Add REGCACHE parameter, pass it to
4946         i386nto_supply_gregset and i386nto_supply_fpregset.
4947         (i386nto_regset_fill): Add REGCACHE parameter; use it instead
4948         of current_regcache.
4949
4950         * nto-procfs.c (procfs_fetch_registers): Pass current_regcache to
4951         nto_supply_ helper functions.
4952         (procfs_store_registers): Pass current_regcache to nto_regset_fill.
4953
4954         * nto-tdep.c (nto_dummy_supply_regset): Add REGCACHE parameter.
4955
4956         * nto-tdep.h (struct nto_target_ops): Add REGCACHE parameter to
4957         supply_greget, supply_fpregset, supply_altregset, supply_regset,
4958         and regset_fill member function pointers.
4959         (nto_dummy_supply_regset): Adapt prototype.
4960
4961 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4962
4963         * shnbsd-tdep.c (shnbsd_supply_reg): Add REGCACHE parameter, use it
4964         instead of current_regcache.  Make REGS const.
4965         (shnbsd_fill_reg): Add REGCACHE parameter; replace current_regcache.
4966         * shnbsd-tdep.h (shnbsd_supply_reg, shnbsd_fill_reg): Update
4967         prototypes.
4968         * shnbsd-nat.c: Include "regcache.h".
4969         (shnbsd_fetch_inferior_registers): Pass current_regcache to
4970         shnbsd_supply_reg.
4971         (shnbsd_store_inferior_registers): Pass current_regcache to
4972         shnbsd_fill_reg.
4973         * Makefile.in (shbsd-nat.o): Update dependencies.
4974
4975 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
4976
4977         * mips-linux-tdep.c (supply_32bit_reg): Add REGCACHE parameter.  Use it
4978         instead of current_regcache.
4979         (mips_supply_gregset): Likewise.  Pass REGCACHE to supply_32bit_reg.
4980         Make GREGSETP const, remove superfluous casts.
4981         (mips_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4982         (mips_supply_fpregset): Likewise.  Make FPREGSETP const, remove 
4983         superfluous casts.
4984         (mips_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4985         (supply_64bit_reg): Likewise
4986         (mips64_supply_gregset): Likewise.  Pass REGCACHE to supply_64bit_reg.
4987         Make GREGSETP const, adapt casts accordingly.
4988         (mips64_fill_gregset): Add REGCACHE parameter; replace current_regcache.
4989         (mips64_supply_fpregset): Likewise.  Make FPREGSET const, adapt
4990         casts accordingly.
4991         (mips64_fill_fpregset): Add REGCACHE parameter; replace current_regcache.
4992         (fetch_core_registers): Pass current_regcache to mips{64}_(supply|fill)_
4993         helper routines.
4994         * mips-linux-tdep.h (mips_supply_gregset, mips_fill_gregset,
4995         mips_supply_fpregset, mips_fill_fpregset, mips64_supply_gregset,
4996         mips64_fill_gregset, mips64_supply_fpregset, mips64_fill_fpregset):
4997         Adapt prototypes.
4998         * mips-linux-nat.c: Include "regcache.h".
4999         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5000         current_regcache to mips{64}_(supply|fill)_ helper routines.
5001         (mips64_linux_regsets_fetch_registers): Likewise.
5002         (mips64_linux_regsets_store_registers): Likewise.
5003
5004         * mipsnbsd-tdep.c (mipsnbsd_supply_reg, mipsnbsd_supply_fpreg): Add
5005         REGCACHE argument; replace current_regcache.  Make REGS const.
5006         (mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Add REGCACHE argument;
5007         replace current_regcache.
5008         * mipsnbsd-tdep.h (ipsnbsd_supply_reg, mipsnbsd_supply_fpreg,
5009         mipsnbds_fill_reg, mipsnbsd_fill_fpreg): Adapt prototypes.
5010         * mipsnbsd-nat.c (mipsnbsd_fetch_inferior_registers,
5011         mipsnbsd_store_inferior_registers): Pass current_regcache to
5012         mipsnbsd_(supply|fill)_... helper routines.
5013
5014         * Makefile.in (mips-linux-nat.o): Update dependencies.
5015
5016 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
5017
5018         * i387-tdep.c (i387_fill_fsave, i387_fill_fxsave): Remove.
5019         * i387-tdep.h (i387_fill_fsave, i387_fill_fxsave): Remove prototypes.
5020         * i368-linux-nat.c (supply_fpregset, supply_fpxregset): Replace
5021         i387_fill_fsave and i387_fill_fxsave calls by inline copies.
5022         * i386-nto-tdep.c (i386nto_regset_fill): Likewise.
5023         * i386gnu-nat.c (store_fpregs): Likewise.
5024         * i386v4-nat.c (fill_fpregset): Likewise.
5025         * go32-nat.c (store_register, go32_store_registers): Likewise.
5026
5027 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
5028
5029         * cris-tdep.c (supply_gregset): Rename to ...
5030         (cris_supply_gregset): ... this.  Add REGCACHE parameter.  Use it
5031         instead of current_regcache.
5032         (fetch_core_registers): Update call.  Pass current_regcache.
5033
5034 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
5035
5036         * arnmnbsd-nat.c (supply_gregset): Rename to ...
5037         (arm_supply_gregset): ... this.  Add REGCACHE parameter.
5038         Use it instead of current_regcache.
5039         (supply_fparegset): Rename to ...
5040         (arm_supply_fparegset): ... this.  Add REGCACHE parameter.
5041         Use it instead of current_regcache.
5042         (fetch_regs, fetch_fp_regs): Update calls.  Pass current_regcache.
5043         (fetch_core_registers, fetch_elfcore_registers): Likewise.
5044
5045 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
5046
5047         * alpha-tdep.c (alpha_supply_int_regs, alpha_fill_int_regs,
5048         alpha_supply_fp_regs, alpha_fill_fp_regs): Add REGCACHE parameter,
5049         use it instead of current_regcache.
5050         * alpha-tdep.h (struct regcache): Add forward declaration.
5051         (alpha_supply_int_regs, alpha_fill_int_regs, alpha_supply_fp_regs,
5052         alpha_fill_fp_regs): Update prototypes.
5053
5054         * alpha-nat.c: (supply_gregset, fill_gregset, supply_fpregset,
5055         fill_fpregset): Pass current_regcache to alpha_supply/fill_ routines.
5056         * alpha-linux-nat.c: Include "regcache.h".
5057         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Pass
5058         current_regcache to alpha_supply/fill_ routines.
5059
5060         * alphabsd-tdep.c: Include "regcache.h".
5061         (alphabsd_supply_reg, alphabsd_supply_fpreg): Add REGCACHE paramter,
5062         pass it to alpha_supply_ routines.  Make REGS const.
5063         (alphabsd_fill_reg, alphabsd_fill_fpreg): Add REGCACHE parameter,
5064         pass it to alpha_fill_ routines.
5065         * alphabsd-tdep.h (struct regcache): Add forward declaration.
5066         (alphabsd_supply_reg, alphabsd_fill_reg, alphabsd_supply_fpreg,
5067         alphabsd_fill_fpreg): Update prototypes.
5068
5069         * alphanbsd-nat.c (supply_gregset, fill_gregset, supply_fpregset,
5070         fill_fpregset, alphabsd_fetch_inferior_registers,
5071         alphabsd_store_inferior_registers): Pass current_regcache to
5072         alphabsd_supply/fill_ routines.
5073
5074         * Makefile.in (alpha-linux-nat.o, alphabsd-tdep.o): Update
5075         dependencies.
5076
5077 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
5078
5079         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
5080         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5081         instead of current_regcache.
5082         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
5083         REGCACHE parameter, pass it to supply_ routines.
5084         (aix_thread_fetch_registers): Pass current_regcache to
5085         fetch_regs_user_thread and fetch_regs_kernel_thread.
5086
5087         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
5088         Add REGCACHE parameter, use it instead of current_regcache.
5089         Call regcache_valid_p instead of register_cached.
5090         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
5091         Also, pass REGCACHE to fill_ routines.
5092         (aix_thread_store_registers): Pass current_regcache to
5093         store_regs_user_thread and store_regs_kernel_thread.
5094
5095 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
5096
5097         * m32r-linux-nat.c (supply_gregset): Do not modify contents
5098         pointed to by GREGSETP.
5099
5100 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
5101
5102         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
5103         of regcache_raw_read_signed.
5104         (fill_fpregset): Use regcache_raw_collect instead of
5105         regcache_raw_read.
5106
5107 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
5108
5109         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
5110         point arguments, test explicitly for use of the EABI32 ABI
5111         instead of inferring this condition from tests on register
5112         sizes.
5113
5114 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
5115
5116         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
5117         prior to allocating its location.
5118
5119 2007-05-02  Maciej W. Rozycki  <macro@mips.com>
5120
5121         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
5122         based on mips_abi_regsize() whose result is known in advance.
5123         (mips_o64_push_dummy_call): Likewise.
5124
5125 2007-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
5126
5127         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
5128         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
5129
5130         * mips-linux-nat.c: Include "gregset.h".
5131         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
5132         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
5133         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
5134         fill_fpregset): Move to mips-linux-nat.c.
5135
5136         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
5137
5138 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5139
5140         * regcache.c (deprecated_read_register_gen): Remove, inline ...
5141         (read_register): ... here.
5142         (deprecated_write_register_gen): Remove, inline ...
5143         (write_register): ... here.
5144         * regcache.h (deprecated_read_register_gen): Remove prototype.
5145         (deprecated_write_register_gen): Likewise.
5146
5147         * remote-sim.c (gdbsim_store_register): Replace call to
5148         deprecated_read_register_gen with regcache_cooked_read.
5149         * target.c (debug_print_register): Replace calls to
5150         deprecated_read_register_gen and read_register with
5151         regcache_cooked_read.
5152
5153 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5154
5155         * hpux-thread.c (hpux_thread_store_registers): Use
5156         regcache_raw_collect, not regcache_raw_read.
5157         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
5158         not regcache_raw_write.
5159
5160 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5161
5162         * gdbarch.sh: Remove deprecated_register_byte.
5163         * gdbarch.c, gdbarch.h: Regenerate.
5164         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
5165         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
5166
5167         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
5168         * regcache.c (regcache_valid_p): Allow to query cooked registers in
5169         read-only register caches.  Make REGCACHE parameter const.
5170         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
5171
5172         * mi/mi-main.c (old_regs): Remove.
5173         (mi_setup_architecture_data, _initialize_mi_main): Remove.
5174         (register_changed_p): Reimplement to compare two register caches.
5175         (mi_cmd_data_list_changed_registers): Update caller.
5176         * mi/mi-main.h (mi_setup_architecture_data): Remove.
5177         * mi/mi-interp.c (mi_interpreter_init): Do not call
5178         mi_setup_architecture_data.
5179
5180 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5181
5182         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
5183         inline definition at the places the macros are used.
5184         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
5185
5186 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
5187
5188         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
5189         "gdb_string.h".
5190         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
5191         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
5192         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
5193         (rs6000_aix_regset_from_core_section): New function.
5194         (rs6000_aix_init_osabi): Register it.
5195         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
5196         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
5197         * rs6000-nat.c (CoreRegs): Do not define type.
5198         (fetch_core_registers, rs6000_core_fns): Remove.
5199         (_initialize_core_rs6000): Do not register it.  Rename to ...
5200         (_initialize_rs6000_nat): ... this.
5201         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
5202
5203 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
5204
5205         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
5206         (dwarf2_read_address): Sign extend return address as required by
5207         target architecture.
5208
5209 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
5210
5211         * solib-frv.c (lm_base): Bail out if the main executable has
5212         not been relocated.
5213
5214 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5215
5216         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
5217         of FPCR register in fpregset.
5218
5219 2007-04-27  Maciej W. Rozycki  <macro@mips.com>
5220
5221         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
5222         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
5223
5224 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5225
5226         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
5227         * rs6000-nat.c (rs6000_wait): New function.
5228         (_initialize_core_rs6000): Install it as to_wait target method.
5229         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
5230
5231 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5232
5233         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
5234         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
5235         * rs6000-nat.c (super_create_inferior): New variable.
5236         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
5237         original version of create_inferior via super_create_inferior.
5238         (_initialize_core_rs6000): Install to_create_inferior target method.
5239
5240 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5241
5242         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
5243         (aix_thread_xfer_partial): ... this.
5244         (init_aix_thread_ops): Install to_xfer_partial instead
5245         of deprecated_xfer_memory target method.
5246
5247         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
5248         and inftarg.o, add inf-ptrace.o.
5249         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
5250         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
5251         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
5252         (fetch_inferior_registers): Rename to ...
5253         (rs6000_fetch_inferior_registers): ... this.  Make static.
5254         (store_inferior_registers): Rename to ...
5255         (rs6000_store_inferior_registers): ... this.  Make static.
5256         (read_word, child_xfer_memory): Remove.
5257         (rs6000_xfer_partial): New function.
5258         (kernel_u_size): Remove.
5259         (_initialize_core_rs6000): Add inf_ptrace-based target.
5260         * Makefile.in (rs6000-nat.o): Update dependencies.
5261
5262 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5263
5264         * inf-ptrace.c: Include "gdb_stdint.h".
5265         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
5266         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
5267         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
5268         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
5269         (inf_ptrace_store_register): Likewise.
5270         * Makefile.in (inf-ptrace.o): Update dependencies.
5271
5272 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5273
5274         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
5275         * configure.tgt (rs6000-*-*): Likewise.
5276         * config/rs6000/aix4.mh: Delete file.
5277         * config/rs6000/aix4.mt: Delete file.
5278         * config/rs6000/rs6000.mh: Delete file.
5279         * config/rs6000/rs6000.mt: Delete file.
5280
5281         * config/powerpc/nm-aix.h: Delete file.
5282         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
5283
5284 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5285
5286         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
5287         Remove obsolete part of comment.
5288         (store_regs_user_thread): Use uint32_t temporaries when calling
5289         fill_sprs32.
5290         (store_regs_kernel_thread): Likewise.  Add assertion to verify
5291         correct size of struct ptsprs members.
5292         (aix_thread_xfer_memory): Fix type of myaddr.
5293         (aix_thread_extra_thread_info): Fix compiler warning.
5294         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
5295         (fetch_register, store_register): Adapt callers.
5296
5297 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
5298
5299         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
5300
5301 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5302
5303         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
5304         and "regcache.h".
5305         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
5306         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
5307         (alpha_linux_regset_from_core_section): New function.
5308         (alpha_linux_init_abi): Install it.
5309         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
5310         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
5311         <sys/procfs.h>, and "gregset.h".
5312         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
5313         Move from config/alpha/nm-linux.h.
5314         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
5315         from alpha-nat.c.
5316         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
5317         * alpha-nat.c: Remove #ifdef __linux__ section.
5318         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
5319         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
5320         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
5321         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
5322         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
5323         (NATDEPFILES): Remove alpha-nat.o.
5324         * config/alpha/nm-linux.h: Delete file.
5325         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
5326         * Makefile.in (alpha-linux-nat.o): Update dependencies.
5327         (alpha-linux-tdep.o): Likewise.
5328
5329 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5330
5331         * mips-linux-nat.c: No longer include "gdbcore.h".
5332         (mips_linux_register_addr): Move from mips-linux-tdep.c.
5333         (mips64_linux_register_addr): Likewise.
5334         (mips_linux_register_u_offset): Call mips_linux_register_addr or
5335         mips64_linux_register_addr instead of register_addr.
5336         * mips-linux-tdep.c (mips_linux_register_addr,
5337         mips64_linux_register_addr): Move to mips-linux-nat.c.
5338         (register_addr): Remove.
5339         (register_addr_data, init_register_addr_data): Remove.
5340         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
5341         (set_mips_linux_register_addr): Remove.
5342         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
5343         * Makefile.in (mips-linux-nat.o): Update dependencies.
5344
5345 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5346
5347         * linux-nat.c (linux_register_u_offset): Remove.
5348         (linux_target_install_ops): New function.
5349         (linux_target): Use it.
5350         (linux_trad_target): New function.
5351         * linux-nat.h (linux_trad_target): Declare.
5352
5353         * alpha-linux-nat.c: Include "gdbcore.h".
5354         (alpha_linux_register_u_offset): New function.
5355         (_initialize_alpha_linux_nat): Use linux_trad_target.
5356
5357         * mips-linux-nat.c: Include "gdbcore.h".
5358         (mips_linux_register_u_offset): New function.
5359         (_initialize_mips_linux_nat): Use linux_trad_target.
5360
5361         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5362         * config/arm/nm-linux.h: Delete file.
5363
5364         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
5365         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
5366
5367         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5368         * config/ia64/nm-linux.h: Delete file.
5369
5370         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5371         * config/m32r/nm-linux.h: Delete file.
5372
5373         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5374         * config/m68k/nm-linux.h: Delete file.
5375
5376         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5377         * config/pa/nm-linux.h: Delete file.
5378
5379         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5380         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
5381         * config/powerpc/nm-linux.h: Delete file.
5382
5383         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
5384         * config/s390/nm-linux.h: Delete file.
5385
5386         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
5387         * config/sparc/linux64.mh (NAT_FILE): Likewise.
5388         * config/sparc/nm-linux.h: Delete file.
5389
5390         * Makefile.in (alpha-linux-nat.o): Update dependencies.
5391         (mips-linux-nat.o): Likewise.
5392
5393 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
5394
5395         * core-aout.c: Delete file.
5396         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
5397         (core-aout.o): Delete rule.
5398         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
5399
5400         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
5401
5402         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
5403         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
5404         KERNEL_U_ADDR): Remove.
5405
5406         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
5407         (cannot_fetch_register, cannot_store_register): Remove.
5408         (fetch_register): Inline cannot_fetch_register and register_addr.
5409         (store_register): Inline cannot_store_register and register_addr.
5410         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
5411         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5412         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
5413         Remove.
5414
5415         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
5416         (fetch_register): Inline register_addr.
5417         (store_register): Inline register_addr.
5418         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
5419         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
5420         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
5421
5422         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
5423         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
5424         REGISTER_U_ADDR): Remove.
5425
5426         * hppa-linux-nat.c (register_addr): Rename to ...
5427         (hppa_linux_register_addr): ... this.  Make static.
5428         (fetch_register, store_register): Adapt callers.
5429         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
5430
5431         * ppc-linux-nat.c (kernel_u_size): Remove.
5432         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
5433
5434         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
5435         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
5436         (NAT_FILE): Remove.
5437         * config/vax/nm-vax.h: Delete file.
5438
5439 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
5440
5441         * MAINTAINERS (Write After Approval): Add myself.
5442
5443 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
5444
5445         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
5446         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
5447         (m68k_linux_sigcontext_reg_offset): Fix typo.
5448         (target_is_uclinux): New.
5449         (m68k_linux_inferior_created): New.
5450         (m68k_linux_get_sigtramp_info):  Check for uClinux or
5451         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
5452         uClinux.
5453         (_initialize_m68k_linux_tdep): Register
5454         m68k_linux_inferior_created.
5455
5456 2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
5457
5458         * win32-nat.c (win32_detach): Remove delete_command call.
5459         Resume inferior with win32_resume instead of win32_continue.
5460
5461 2007-04-19  Jerome Guitton  <guitton@adacore.com>
5462
5463         * ser-mingw.c (fd_is_file): New function.
5464         (file_select_thread): New function.
5465         (ser_console_wait_handle): Add special handling for files.
5466
5467 2007-04-18  Denis Pilat  <denis.pilat@st.com>
5468
5469         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
5470         when missing from DW_TAG_subrange_type.  Remove the handling of null
5471         return from die_type.
5472
5473 2007-04-18  Maciej W. Rozycki  <macro@mips.com>
5474
5475         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
5476         change to rearrange some brackets.
5477         (mips_n32n64_push_dummy_call): Likewise.
5478         (mips_o32_push_dummy_call): Likewise.
5479         (mips_o64_push_dummy_call): Likewise.
5480
5481 2007-04-18  Denis Pilat  <denis.pilat@st.com>
5482
5483         * infcmd.c (post_create_inferior): Start with a call to 
5484         target_terminal_ours.
5485
5486 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
5487
5488         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
5489         brackets.
5490         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
5491         expressions.
5492         (mips_o32_push_dummy_call): Likewise.
5493         (mips_o64_push_dummy_call): Likewise.
5494
5495 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
5496
5497         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5498         comment.
5499
5500 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
5501
5502         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
5503         comment.
5504         (mips_o32_push_dummy_call): Likewise.
5505
5506 2007-04-17  Andreas Schwab  <schwab@suse.de>
5507
5508         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
5509         sal to be bigger than the end of the function.
5510
5511 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
5512             Nigel Stephens  <nigel@mips.com>
5513
5514         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
5515         argument alignment requirements when calculating stack space
5516         required.  When aligning an arg register to eight bytes
5517         boundary, align stack_offset too.  Write floating-point
5518         arguments to the appropriate integer register if need go there.
5519         (mips_o64_push_dummy_call): Likewise.
5520
5521 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
5522
5523         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
5524         "sig" arguments, add "regcache" argument.
5525         * gdbarch.c, gdbarch.h: Regenerate.
5526
5527         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
5528         (handle_inferior_event): Call remove_single_step_breakpoints directly
5529         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
5530
5531         * alpha-tdep.c (alpha_software_single_step): Update argument list.
5532         Remove handling of !insert_breakpoints_p case.
5533         * arm-tdep.c (arm_software_single_step): Likewise.
5534         * cris-tdep.c (cris_software_single_step): Likewise.
5535         * mips-tdep.c (mips_software_single_step): Likewise.
5536         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5537         * sparc-tdep.c (sparc_software_single_step): Likewise.
5538         * spu-tdep.c (spu_software_single_step): Likewise.
5539
5540         * alpha-tdep.h (alpha_software_single_step): Update prototype.
5541         * mips-tdep.h (mips_software_single_step): Likewise.
5542         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5543         * sparc-tdep.h (sparc_software_single_step): Likewise.
5544
5545 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
5546
5547         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
5548         when removing single-step breakpoints.
5549
5550 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
5551
5552         * varobj.h (varobj_set_frozen): New
5553         (varobj_get_frozen): New.
5554         (varobj_update): New parameter explicit.
5555         * varobj.c (struct varobj): New fields frozen
5556         and not_fetched.
5557         (varobj_set_frozen, varobj_get_frozen): New.
5558         (install_new_value): Don't fetch values for 
5559         frozen variable object, or children thereof.  Allow
5560         a frozen variable object to have non-fetched value.
5561         (varobj_update): Allow updating child variables.
5562         Don't traverse frozen children.
5563         (new_variable): Initialize the frozen field.
5564         (c_value_of_variable): Return NULL for frozen
5565         variable without any value yet. 
5566         * mi/mi-cmd-var.c (varobj_update_one): New parameter
5567         'explicit'.
5568         (mi_cmd_var_create): Output the 'frozen' field,
5569         as soon as testsuite is adjusted to expect that field.
5570         (mi_cmd_var_set_frozen): New.
5571         (mi_cmd_var_update): Pass the 'explicit' parameter to
5572         varobj_update_one.
5573         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
5574         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
5575         
5576 2007-04-13  Paul Brook  <paul@codesourcery.com>
5577
5578         * target-descriptions.c (tdesc_named_type): Add ieee_single and
5579         ieee_double.
5580         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
5581
5582 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5583
5584         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
5585         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
5586         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
5587         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
5588         * Makefile.in: Remove references to deleted files.
5589         * README: Do not mention deleted ROM monitor interfaces.
5590         * defs.h (enum language): Delete language_scm.
5591         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
5592         (dump_subexp_body_standard): Likewise.
5593         * parse.c (operator_length_standard): Likewise.
5594         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
5595         * remote-mips.c: Do not include remote-utils.h.
5596         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
5597         throughout.
5598         * value.c: Do not include scm-lang.h.
5599         (unpack_long): Delete scm_unpack call.
5600         * config/h8300/h8300.mt, config/mips/embed.mt,
5601         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
5602         config/sh/embed.mt, config/sh/linux.mt: Remove references to
5603         deleted files.
5604         * NEWS: Mention removed files.
5605
5606 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5607
5608         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
5609         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
5610
5611 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5612
5613         * NEWS: Mention removal of HP aCC support.
5614
5615 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5616
5617         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
5618         first entry for static executables.
5619         (breakpoint_addr): Delete unused variable.
5620         (elf_locate_base): Search for _r_debug in static executables.
5621         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
5622         also.
5623
5624 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5625
5626         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
5627         (bpstat_what, print_one_breakpoint, allocate_bp_location)
5628         (mention): Remove bp_through_sigtramp support.
5629         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
5630
5631 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5632
5633         * breakpoint.c (bpstat_what): Give step-resume higher priority than
5634         shlib events.
5635
5636 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
5637
5638         * infrun.c: Doc fixes.
5639         (handle_inferior_event): Clarify debug message.
5640         (insert_step_resume_breakpoint_at_sal): Print a debug message.
5641
5642 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
5643
5644         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
5645
5646 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
5647
5648         * config/m68k/tm-monitor.h: Delete file.
5649         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
5650         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
5651         call moved to ...
5652         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
5653         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
5654
5655 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
5656
5657         * gdbarch.sh (software_single_step): Change the return type
5658         from void to int and reformatted some comments to <= 80
5659         columns.
5660         * gdbarch.c, gdbarch.h: Regenerated.
5661         * alpha-tdep.c (alpha_software_single_step): Likewise.
5662         * alpha-tdep.h (alpha_software_single_step): Likewise.
5663         * arm-tdep.c (arm_software_single_step): Likewise.
5664         * cris-tdep.c (cris_software_single_step): Likewise.
5665         * mips-tdep.c (mips_software_single_step): Likewise.
5666         * mips-tdep.h (mips_software_single_step): Likewise.
5667         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
5668         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
5669         * sparc-tdep.c (sparc_software_single_step): Likewise.
5670         * sparc-tdep.h (sparc_software_single_step): Likewise.
5671         * spu-tdep.c (spu_software_single_step): Likewise.
5672         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
5673         and act accordingly.
5674
5675 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
5676
5677         * configure.ac (build_warnings): Add -Wno-char-subscripts.
5678         * configure: Regenerate.
5679         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
5680
5681 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5682
5683         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
5684
5685 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
5686
5687         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
5688         macros.
5689         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
5690         distinct on the TYPE_STUB_SUPPORTED debug targets.
5691         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
5692
5693 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
5694
5695         * sparc-tdep.c (X_RS2): New macro.
5696         (sparc_skip_stack_check): New function.
5697         (sparc_analyze_prologue): Adjust PC past stack probing
5698         sequence if necessary.
5699
5700 2007-04-10  Andreas Schwab  <schwab@suse.de>
5701
5702         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
5703         register.
5704
5705 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
5706
5707         * breakpoint.c (gdb_breakpoint_query): Really return an
5708         enum gdb_rc.
5709         (gdb_breakpoint): Likewise.
5710         * thread.c (gdb_list_thread_ids): Likewise.
5711         (gdb_thread_select): Likewise.
5712         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
5713         (mi_cmd_thread_list_ids): Remove bogus initialization.
5714
5715 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
5716
5717         * Makefile.in (SFILES): Remove hpacc-abi.c.
5718         (COMMON_OBS): Remove hpacc-abi.o.
5719         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
5720         (hpacc-abi.o, hpread.o): Delete rules.
5721         * somread.c: Delete extern declarations from hpread.c.
5722         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
5723         (som_symfile_finish): Do not call hpread_symfile_finish.
5724         (som_symfile_init): Do not call hpread_symfile_init.
5725         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
5726         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
5727         * hpacc-abi.c, hpread.c: Deleted.
5728
5729 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
5730
5731         * solib-svr4.c (enable_break): Simplify return value.
5732         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
5733
5734 2007-04-10  Andreas Schwab  <schwab@suse.de>
5735
5736         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
5737         l_ld_size, l_next_size, l_prev_size, l_name_size.
5738
5739         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
5740         to extract addresses from link map.
5741         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
5742         (LM_NEXT): Likewise.
5743         (LM_NAME): Likewise.
5744         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
5745         (elf_locate_base): Likewise.
5746         (open_symbol_file_object): Likewise.
5747         (svr4_fetch_objfile_link_map): Likewise.
5748         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
5749         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
5750         l_ld_size.
5751         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
5752         (svr4_lp64_fetch_link_map_offsets): Likewise.
5753
5754         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
5755         removed members.  Set l_ld_offset to -1 if not present.
5756
5757 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
5758         
5759         Pass stderr of program run with "target remote |"
5760         via gdb_stderr.
5761         * serial.c (serial_open): Set error_fd to -1.
5762         * serial.h (struct serial): New field error_fd.
5763         (struct serial_opts): New field avail.
5764         * ser-pipe.c (pipe_open): Create another pair
5765         of sockets.  Pass stderr to gdb.
5766         * ser-mingw.c (pipe_windows_open): Pass
5767         PEX_STDERR_TO_PIPE to pex_run.  Initialize
5768         sd->error_fd.
5769         (pipe_avail): New.
5770         (_initialize_ser_windows): Hook pipe_avail.
5771         * ser-base.c (generic_readchar): Check if there's
5772         anything in stderr channel and route that to gdb_stderr.
5773
5774 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
5775
5776         * dbxread.c (read_ofile_symtab): Move current_objfile
5777         clearing to after end_stabs.
5778
5779 2007-04-01  Andreas Schwab  <schwab@suse.de>
5780
5781         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
5782         gdbarch instead of current_gdbarch.
5783
5784 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
5785
5786         * varobj.c (varobj_create): Keep varobj value
5787         NULL when evaluating the type.
5788         
5789 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
5790
5791         * NEWS: Mention new Windows CE support.
5792
5793 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
5794
5795         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
5796         the obsoletion stanza.
5797         * NEWS: Mention deleted targets.
5798
5799         * config/sh/tm-wince.h: Remove.
5800         * config/sh/wince.mt: Remove.
5801         * config/mips/tm-wince.h: Remove.
5802         * config/mips/wince.mt: Remove.
5803
5804         * wince.c: Remove.
5805         * wince-stub.c: Remove.
5806         * wince-stub.h: Remove.
5807         * Makefile.in (wince.o): Remove rule.
5808         (wince-stub.o): Likewise.
5809
5810         * mips-tdep.c (mips_next_pc): Make static.
5811         * mips-tdep.h (mips_next_pc): Remove declaration.
5812         * arm-tdep.c (arm_pc_is_thumb): Make static.
5813         (thumb_get_next_pc): Likewise.
5814         (arm_get_next_pc): Likewise.
5815         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
5816         (arm_pc_is_thumb): Likewise.
5817         (thumb_get_next_pc): Likewise.
5818         (arm_get_next_pc): Likewise.
5819
5820 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
5821
5822         * MAINTAINERS: Remove d10v entry.
5823         * Makefile.in (SFILES): Remove dwarfread.c.
5824         (COMMON_OBS): Remove dwarfread.o.
5825         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
5826         (remote-est.o, rom68k-rom.o): Delete.
5827         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
5828         target est, target rom68k, and DWARF 1.
5829         * configure.tgt: Mark d10v as removed.
5830         * dwarf2read.c: Doc update.
5831         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
5832         and lnsize.
5833         (elf_locate_sections): Do not set them.
5834         (elf_symfile_read): Do not call dwarf_build_psymtabs.
5835         * symfile.h (dwarf_build_psymtabs): Delete prototype.
5836         * config/m68k/monitor.mt (TDEPFILES): Prune.
5837         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
5838         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
5839
5840 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
5841
5842         * doublest.c (convert_floatformat_to_doublest): Use
5843         floatformat_classify.
5844         (floatformat_is_nan): Rename to...
5845         (floatformat_classify): ...this.  Return more information.
5846         * doublest.h (enum float_kind): New.
5847         (floatformat_is_nan): Replace prototype...
5848         (floatformat_classify): ...with this one.
5849         * valprint.c (print_floating): Use floatformat_classify.  Handle
5850         infinity.
5851
5852 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
5853
5854         * README: Mention ISO C library requirement.
5855
5856 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
5857
5858         * Makefile.in (SFILES): Remove nlmread.c.
5859         (COMMON_OBS): Remove nlmread.o.
5860         (nlmread.o): Delete rule.
5861         * README: Delete reference to remote-st.c.
5862         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
5863         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
5864         GDB_OSABI_LYNXOS.
5865         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
5866         (_initialize_i386_tdep): Do not reference them.
5867         * nlmread.c: Delete file.
5868         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
5869         * target.c: Doc update.
5870         * thread.c: Delete commented include.
5871         * config/alpha/tm-alpha.h: Doc update.
5872
5873 2007-03-30  Chris Dearman  <chris@mips.com>
5874
5875         * utils.c (string_to_core_addr): Comment typo.
5876
5877 2007-03-30  Chris Dearman  <chris@mips.com>
5878
5879         * mips-tdep.c: Comment typo.
5880
5881 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
5882
5883         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
5884         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5885         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
5886         * config/powerpc/nm-ppc64-linux.h: Remove file.
5887         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
5888         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
5889         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
5890         * infptrace.c (call_ptrace): Likewise.
5891         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
5892         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
5893         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
5894         (store_register): Likewise.
5895
5896 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
5897
5898         * Makefile.in (varobj.o): Add missing dependency.
5899
5900 2007-03-29  Michael Snyder  <msnyder@access-company.com>
5901
5902         * MAINTAINERS: Update my email address.
5903
5904 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
5905
5906         Add support for exception handling with multiple versions of
5907         the Ada runtime:
5908         * ada-lang.c: Update general comments on how Ada exception catchpoints
5909         are implemented.
5910         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
5911         (__gnat_raise_nodefer_with_msg): Delete.
5912         (ada_unhandled_exception_name_addr_ftype): New type.
5913         (exception_support_info): New type.
5914         (ada_unhandled_exception_name_addr): Add forward declaration.
5915         (ada_unhandled_exception_name_addr_from_raise): Likewise.
5916         (default_exception_support_info): New constant.
5917         (exception_support_info_fallback): Likewise.
5918         (exception_info): New global variable.
5919         (ada_exception_support_info_sniffer): New function.
5920         (ada_executable_changed_observer): Likewise.
5921         (ada_unhandled_exception_name_addr_from_raise): Renamed from
5922         ada_unhandled_exception_name_addr.
5923         (ada_unhandled_exception_name_addr): Reimplement to match the
5924         latest Ada runtime implementation.
5925         (error_breakpoint_runtime_sym_not_found): Delete.
5926         (ada_exception_sym_name): Get the exception sym name from
5927         exception_info rather than hardcoding it.
5928         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
5929         Update error handling.
5930         * Makefile.in (ada-lang.o): Add dependency on observer.h.
5931
5932 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
5933
5934         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
5935         (remote-st.o, uw-thread.o): Delete.
5936         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
5937         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5938         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
5939         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
5940         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
5941         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
5942         rs6000-*-lynxos* to an obsoletion stanza.
5943         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
5944         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
5945         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
5946         i[34567]86-*-netware*.
5947         * NEWS: Mention deleted targets.
5948
5949         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
5950         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
5951         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
5952         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
5953         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
5954         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
5955         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
5956         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
5957         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
5958         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
5959         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
5960         config/rs6000/tm-rs6000ly.h: Delete files.
5961
5962 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
5963
5964         * defs.h (deprecated_registers_changed_hook): Delete declaration.
5965         * interps.c (clear_interpreter_hooks): Do not clear
5966         deprecated_registers_changed_hook.
5967         * regcache.c (registers_changed): Do not call it.
5968         * top.c (deprecated_registers_changed_hook): Do not define it.
5969         * mi/mi-interp.c (mi_command_loop): Do not clear it.
5970         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
5971         (tui_remove_hooks): Do not remove it.
5972         (tui_selected_frame_level_changed_hook): Check for negative level.
5973         Use get_selected_frame.
5974         (tui_registers_changed_hook): Deleted.
5975
5976 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
5977
5978         * stabsread.c (add_undefined_type): Add extra parameter.
5979         Now handles nameless types separately.
5980         (struct nat): New type.
5981         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
5982         New static variables.
5983         (read_type): Update calls to add_undefined_type.
5984         (add_undefined_type_noname): New function.
5985         (add_undefined_type_1): Renames from add_undefined_type.
5986         (cleanup_undefined_types_noname): New function.
5987         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
5988         (cleanup_undefined_types): New handles nameless types separately.
5989         (_initialize_stabsread): Initialize our new static constants.
5990
5991 2007-03-29  Denis Pilat  <denis.pilat@st.com>
5992
5993         * configure.ac: Test for signal.h.
5994         * configure, config.in: Regenerate.
5995
5996 2007-03-29  Denis Pilat  <denis.pilat@st.com>
5997
5998         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
5999         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
6000
6001 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
6002
6003         * arm-wince-tdep.c: New.
6004         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
6005         (MT_CFLAGS): Delete.
6006         (TM_CLIBS): Delete.
6007         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
6008         solib-legacy.o, solib-svr4.o, and remove wince.o.
6009         * configure.tgt (arm*-*-mingw32ce*): Add.
6010         * signals/signals.c [HAVE_SIGNAL_H]: Check.
6011         (do_target_signal_to_host): Silence 'not used' warning.
6012         * config/arm/tm-wince.h: Remove.
6013
6014 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
6015
6016         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
6017         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
6018
6019         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
6020         * config/ia64/tm-linux.h: Remove file.
6021         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
6022         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
6023         legacy_pc_in_sigtramp.
6024         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
6025         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
6026         Remove func_name argument.
6027         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
6028
6029         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
6030         * target.c (update_current_target): Add to_have_steppable_watchpoint.
6031         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
6032         (HAVE_STEPPABLE_WATCHPOINT): Define.
6033
6034         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
6035         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
6036         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
6037         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
6038         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
6039         target_insert_watchpoint, target_remove_watchpoint): Remove.
6040         (FETCH_INFERIOR_REGISTERS): Define.
6041         * ia64-linux-nat.c (ia64_register_addr): Make static.
6042         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
6043         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
6044         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
6045         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
6046         (ia64_linux_stopped_by_watchpoint): Make static.
6047         (ia64_linux_can_use_hw_breakpoint): New function.
6048         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
6049         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
6050         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
6051
6052 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
6053
6054         * linespec.c: Include language.h.
6055         (find_methods): Add language parameter.  Call
6056         lookup_symbol_in_language.  Pass language down.
6057         (add_matching_methods): Likewise.  Call
6058         lookup_symbol_in_language.
6059         (add_constructors): Likewise.
6060         (find_method): Pass sym_class to collect_methods.
6061         (collect_methods): Add sym_class parameter.  Pass language
6062         down.
6063         * symtab.c (lookup_symbol): Rename to ...
6064         (lookup_symbol_in_language): ... this.  Add language
6065         parameter.  Use passed language instead of current_language.
6066         (lookup_symbol): New as wrapper around
6067         lookup_symbol_in_language.
6068         (lookup_symbol_aux): Add language parameter.  Use passed
6069         language instead of current_language.
6070         (search_symbols): Indent.
6071         * symtab.h (enum language): Forward declare.
6072         (lookup_symbol_in_language): Declare.
6073         (lookup_symbol): Update description.
6074         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
6075         * ada-lang.c (restore_language): Remove.
6076         (lookup_symbol_in_language): Remove.
6077
6078 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
6079
6080         * breakpoint.c (bpstat_num): Add int *num parameter.
6081         * breakpoint.h (bpstat_num): Likewise.
6082         * infcmd.c (continue_command): Adjust to new bpstat_num
6083         interface.
6084         (program_info): Likewise.
6085
6086 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
6087
6088         * config/sh/tm-sh.h: Remove file.
6089         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
6090         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
6091         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6092         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
6093
6094 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
6095
6096         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
6097         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
6098         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
6099         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
6100         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
6101         sequence if target_shortname is "remote".
6102
6103 2007-03-27  Anton Blanchard  <anton@samba.org>
6104
6105         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
6106         instead of wordsize when looking for the LR in a stack frame.
6107
6108 2007-03-27  Andreas Schwab  <schwab@suse.de>
6109             Daniel Jacobowitz  <dan@codesourcery.com>
6110
6111         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
6112         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
6113         argument.  Update all callers.
6114         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
6115         (dwarf2_frame_set_eh_frame_regnum): Rename to...
6116         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
6117         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
6118         (dwarf2_frame_set_adjust_regnum): ...this.
6119         (dwarf2_frame_eh_frame_regnum): Delete prototype.
6120         * rs6000-tdep.c: Include "dwarf2-frame.h".
6121         (rs6000_adjust_frame_regnum): Define.
6122         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
6123         Register rs6000_adjust_frame_regnum.
6124
6125         * Makefile.in (rs6000-tdep.o): Update dependencies.
6126
6127 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
6128
6129         * Makefile.in: Add support for a "pdf" target.
6130
6131 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
6132
6133         * amd64-tdep.c (amd64_init_frame_cache): New function.
6134         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
6135
6136 2007-03-26  Nigel Stephens  <nigel@mips.com>
6137             Maciej W. Rozycki  <macro@mips.com>
6138
6139         * ui-out.c (ui_out_field_core_addr): Truncate address to
6140         TARGET_ADDR_BIT size before printing.
6141
6142 2007-03-22  Nigel Stephens  <nigel@mips.com>
6143             Maciej W. Rozycki  <macro@mips.com>
6144
6145         * remote-mips.c (mips_xfer_memory): Update prototype.
6146
6147 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
6148
6149         * symfile.h: #include "symtab.h"
6150
6151 2007-03-22  Denis Pilat  <denis.pilat@st.com>
6152
6153         * utils.c (pagination_on_command, pagination_off_command):
6154         Remove useless prototypes.
6155
6156 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
6157
6158         Fix PR pascal/2232.
6159         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
6160         instead of TYPE_NAME for object base class name.
6161
6162
6163 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
6164
6165         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
6166         Specify frame type in calls to frame_func_unwind().
6167
6168 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
6169
6170         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
6171         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
6172         (refine_prologue_limit): Delete.
6173         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
6174         Assume lim_pc is set.  Correct check for incomplete prologues.
6175         Do not skip clobbers of the frame pointer.
6176         * symtab.c (skip_prologue_using_sal): Fail if there is only one
6177         sal.
6178
6179 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
6180
6181         * frame.c (frame_pop): Check to see whether there's a frame to
6182         which we can pop first.
6183
6184 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
6185
6186         * MAINTAINERS (Write After Approval): Add myself.
6187
6188 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
6189
6190         * infrun.c (breakpoints_failed): Remove unnecessary variable.
6191         (handle_inferior_event): Remove unnecessary braces.
6192         * breakpoint.c (bpstat_what): Remove wrong comment.
6193
6194 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
6195
6196         * spu-tdep.c (spu_in_function_epilogue_p): New function.
6197         (spu_gdbarch_init): Install it.
6198
6199 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
6200
6201         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
6202         object types, not 0.
6203
6204 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
6205
6206         * spu-tdep.c (spu_frame_align): New function.
6207         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
6208
6209 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
6210
6211         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
6212         (spu_software_single_step): Likewise.
6213         (spu_read_pc, spu_write_pc): New functions.
6214         (spu_gdbarch_init): Install them.
6215
6216 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
6217
6218         * cli/cli-dump.c (struct callback_data): load_offset needs to 
6219         have signed long type.
6220
6221 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
6222
6223         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
6224         Revert the previous change that had some unexpected side-effects
6225         on mips32.
6226         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
6227         function to get the address of the calling instruction.
6228
6229 2007-03-07  Denis Pilat  <denis.pilat@st.com>
6230
6231         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
6232         get_selected_frame by deprecated_safe_get_selected_frame.
6233
6234 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
6235
6236         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
6237         "gdb_string.h".  Don't include "nbsd-tdep.h".
6238         (SIZEOF_STRUCT_REG): Remove.
6239         (SHNBSD_SIZEOF_GREGS): New.
6240         (shnbsd_supply_gregset, shnbsd_collect_gregset)
6241         (shnbsd_regset_from_core_section): New functions.
6242         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
6243         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
6244         shnbsd_supply_gregset, shnbsd_collect_gregset.
6245         (shnbsd_gregset): New variable.
6246         (shnbsd_init_abi): Set regset_from_core_section.
6247         (GDB_OSABI_NETBSD_CORE): New define.
6248         (shnbsd_core_osabi_sniffer): New function.
6249         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
6250         * Makefile.in (shnbsd-tdep.o): Update dependencies.
6251         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
6252         nbsd-tdep.o.
6253         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
6254
6255 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
6256
6257         * gdbtypes.c (replace_type): Fix typo that caused us to not update
6258         length of the types referenced by the new type CV ring.
6259
6260 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
6261
6262         * frame.c (frame_pop, frame_observer_target_changed): Call
6263         reinit_frame_cache.
6264         (flush_cached_frames): Rename to reinit_frame_cache and delete
6265         old implementation.
6266         * frame.h (flush_cached_frames): Delete prototype and update comment.
6267
6268         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
6269         reinit_frame_cache instead of flush_cached_frames.  Do not call
6270         select_frame after reinit_frame_cache.
6271         * corelow.c (core_open): Likewise.
6272         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
6273         * infrun.c (prepare_to_proceed, context_switch)
6274         (handle_inferior_event): Likewise.
6275         * linux-fork.c (fork_load_infrun_state): Likewise.
6276         * ocd.c (ocd_start_remote): Likewise.
6277         * remote-e7000.c (e7000_start_remote): Likewise.
6278         * remote-mips.c (device): Likewise.
6279         * thread.c (switch_to_thread): Likewise.
6280         * tracepoint.c (finish_tfind_command): Likewise.
6281         * gdbarch.c: Regenerated.
6282
6283 2007-02-28  Jerome Guitton  <guitton@adacore.com>
6284             Joel Brobecker  <brobecker@adacore.com>
6285
6286         * gdbtypes.c (check_typedef): Do not replace stub type if
6287         the resolved type is not defined in the same objfile.
6288
6289 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
6290
6291         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
6292
6293 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
6294
6295         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
6296         symbol for Ada units when the symbol is defined using 't' rather
6297         than 'Tt' as symbol descriptor.
6298
6299 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6300
6301         * config/mips/tm-nbsd.h: Delete file.
6302         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
6303         * config/sh/tm-nbsd.h: Delete file.
6304         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
6305
6306 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
6307
6308         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
6309         unused WRONG_PARAM value since it was recently deleted.
6310
6311 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
6312
6313         * varobj.c (varobj_update): Free temporary vectors.
6314
6315 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
6316
6317         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
6318         * config/powerpc/tm-linux.h: Delete file.
6319         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
6320         (PROCESS_LINENUMBER_HOOK): Do not undefine.
6321         (TEXT_SEGMENT_BASE): Do not redefine.
6322         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
6323         from config/rs6000/tm-rs6000.h.
6324         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6325         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
6326         (TEXT_SEGMENT_BASE): Remove.
6327         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
6328         (rs6000_in_solib_return_trampoline): Remove.
6329         (SKIP_TRAMPOLINE_CODE): Remove.
6330         (rs6000_skip_trampoline_code): Remove.
6331         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
6332         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
6333         (FP0_REGNUM): Remove.
6334         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
6335         (rs6000_set_host_arch_hook): Remove.
6336         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
6337         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
6338         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
6339         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
6340         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
6341         * rs6000-nat.c: Include "rs6000-tdep.h".
6342         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
6343         (set_host_arch): Rename to ...
6344         (rs6000_create_inferior): ... this.  Make public.
6345         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
6346         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
6347         (rs6000_create_inferior): Remove.
6348         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
6349         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
6350         set_gdbarch_in_solib_return_trampoline, and
6351         set_gdbarch_skip_trampoline_code.
6352         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
6353         from config/rs6000/tm-rs6000.h.
6354
6355 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
6356
6357         * buildsym.c (record_producer): Do nothing if no producer is provided.
6358
6359 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
6360
6361         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
6362         to check changelist is non-NULL.  Call error if the frontend tries
6363         to update a non-root variable.
6364
6365         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
6366
6367 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
6368
6369         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
6370         (dwarf2_frame_sniffer): Update.
6371         (dwarf2_signal_frame_this_id): New function.
6372         (dwarf2_signal_frame_unwind): Use it.
6373         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
6374         * frame.c (frame_func_unwind): Add this_type argument.
6375         (get_frame_func): Update.
6376         (frame_unwind_address_in_block): Add this_type argument and check it.
6377         Fix a typo.
6378         (get_frame_address_in_block): Update.
6379         * frame.h (enum frame_type): Move higher in the file.
6380         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
6381         argument.
6382
6383         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
6384         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
6385         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
6386         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
6387         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
6388         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
6389         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
6390         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
6391         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
6392         frame_func_unwind and frame_unwind_address_in_block to specify
6393         the frame type.  Use frame_unwind_address_in_block instead of
6394         frame_pc_unwind in sniffers.
6395
6396 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
6397
6398         * frame.c (deprecated_selected_frame): Rename to...
6399         (selected_frame): ...this.  Make static.
6400         (get_selected_frame, select_frame): Update.
6401         * frame.h (deprected_select_frame): Delete.
6402         (deprecated_safe_get_selected_frame): Update comments.
6403
6404         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
6405         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
6406         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
6407         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
6408         tui/tui.c: Replace references to deprecated_selected_frame.
6409
6410 2007-02-27  Fred Fish  <fnf@specifix.com>
6411
6412         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
6413         directly decrement the stack pointer, accumulate their operand into 
6414         the stack offset, and mark the function as not being frameless.
6415
6416 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6417
6418         * arch-utils.c (selected_byte_order): New.
6419         * arch-utils.h (selected_byte_order): New prototype.
6420         * remote-sim.c (gdbsim_open): Use selected_byte_order.
6421
6422 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6423
6424         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
6425         (default_symfile_offsets): Check VMA here.  Update section VMAs.
6426
6427 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6428
6429         * remote.c (init_remote_state): Add special handling for placeholder
6430         registers.
6431
6432 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6433
6434         * Makefile.in (XMLFILES): Include $(TDEP_XML).
6435         (filenames_h): New variable.
6436         (clean): Clean up xml-builtin.c and stamp-xml.
6437         (arm-linux-nat.o): Update.
6438         * config/arm/linux.mh (TDEP_XML): Define.
6439         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
6440         (arm_linux_has_wmmx_registers): New.
6441         (GET_THREAD_ID): Fix typo.
6442         (IWMMXT_REGS_SIZE): Define.
6443         (fetch_wmmx_regs, store_wmmx_regs): New.
6444         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
6445         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
6446         (super_xfer_partial, arm_linux_xfer_partial): New.
6447         (_initialize_arm_linux_nat): Use them.
6448         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
6449         (xml_builtin_xfer_partial): New function.
6450         * xml-support.h (xml_builtin_xfer_partial): New prototype.
6451         * NEWS: Update mention of iWMMXt support.
6452
6453 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
6454
6455         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
6456         if there are no FPA registers.
6457         (arm_dwarf_reg_to_regnum): New function.
6458         (arm_register_type, arm_register_name): Return minimal values for
6459         unsupported registers.
6460         (arm_register_sim_regno): Handle iWMMXt registers.
6461         (arm_gdbarch_init): Record missing FPA registers if indicated by
6462         a target description.  Recognize iWMMXt registers.  Only register
6463         "info float" for FPA.  Use ARM_NUM_REGS.  Register
6464         arm_dwarf_reg_to_regnum.
6465         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
6466         constants.
6467         (struct gdbarch_tdep): Add have_fpa_registers.
6468         * features/xscale-iwmmxt.xml: Update capitalization.
6469         * regformats/arm-with-iwmmxt.dat: Regenerated.
6470
6471 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
6472
6473         * NEWS (New targets): Add entry for the Toshiba Media Processor.
6474
6475 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
6476
6477         * MAINTAINERS (mep): New target.
6478
6479 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
6480
6481         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
6482         Richard Sandiford:
6483         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
6484         (mep-tdep.o): New rule.
6485         * configure.tgt (mep-*-*): New target.
6486         * mep-tdep.c: New file.
6487         * config/mep/mep.mt: New file.
6488
6489 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
6490
6491         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
6492         BREAKPOINT_HIT and STOP_UNKNOWN.
6493
6494 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
6495
6496         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
6497
6498 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
6499
6500         * gdb_expat.h (XMLCALL): Define if not already defined.
6501
6502 2007-02-20  Andreas Schwab  <schwab@suse.de>
6503
6504         * Makefile.in (symfile.o): Update dependencies.
6505
6506 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
6507
6508         * MAINTAINERS: Disable -Werror for cris simulator.  Build
6509         sparc64-solaris2.10 instead of the broken sparc-elf.
6510         * solib-frv.c: Include "solib.h".
6511         * Makefile.in (solib-frv.o): Update.
6512         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
6513         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
6514         (xtensa_frame_this_id, xtensa_frame_prev_register)
6515         (xtensa_push_dummy_call): Use %p.
6516
6517 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
6518
6519         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6520         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
6521         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6522         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
6523         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
6524         (sparc-linux-tdep.o): Update.
6525
6526 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
6527
6528         * xtensa-tdep.h (xtensa_reg_mask_t): New.
6529         (xtensa_mask_t): Change mask field to be a separate array.
6530         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
6531         (xtensa_pseudo_register_write, xtensa_unwind_pc)
6532         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
6533         (xtensa_breakpoint_from_pc): Remove implicit type casting.
6534         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
6535         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
6536         (mask14, mask15): Rename to
6537         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
6538         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
6539         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
6540         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
6541         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
6542         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
6543         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
6544         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
6545         (xtensa_submask14, xtensa_submask15): New.
6546         (rmap): Follow strict aliasing rules doing static initialization.
6547
6548 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
6549
6550         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
6551         handling from here...
6552         (tdesc_register_type): ...to here.
6553         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
6554         * features/arm-core.xml: Use code_ptr and data_ptr.
6555
6556 2007-02-13  Denis Pilat  <denis.pilat@st.com>
6557
6558         * varobj.h (enum varobj_update_error): New enum.
6559         * varobj.c (struct varobj_root): Add is_valid member.
6560         (varobj_get_type): Check for invalid varobj.
6561         (varobj_get_attributes): Likewise.
6562         (variable_editable):Likewise.
6563         (varobj_update): Likewise.  Use varobj_update_error.
6564         (new_root_variable): Set root varobj as valid by default.
6565         (varobj_invalidate): New function.
6566         * symfile.c (clear_symtab_users): Use varobj_invalidate.
6567         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
6568         Use varobj_update_error.
6569
6570 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
6571
6572         Fix PR pascal/2223.
6573         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
6574         Pascal language marker.
6575         * dwarf2read.c (set_cu_language): Likewise.
6576
6577 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
6578
6579         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
6580         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
6581         instead of target_terminal_init since inferior_ptid isn't set yet.
6582
6583 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
6584
6585         * MAINTAINERS (Write After Approval): Add myself.
6586
6587 2007-02-09  Fred Fish  <fnf@specifix.com>
6588
6589         Based on work by Apple Computer, Inc.
6590         * event-top.c (async_request_quit): Call quit() whenever either
6591         quit_flag is set or immediate_quit is set.
6592
6593 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6594
6595         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
6596         type to a pointer to const struct block.
6597         (ada_lookup_symbol_list): Don't cast away constness when calling
6598         remove_out_of_scope_renamings.
6599
6600 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
6601
6602         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
6603         address of 'filename'; it is always non null.
6604
6605 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
6606
6607         * exec.c (add_to_section_table): Do not discard empty sections.
6608
6609 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6610
6611         * features/Makefile, features/arm-with-iwmmxt.xml,
6612         features/gdbserver-regs.xsl, features/number-regs.xsl,
6613         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
6614         * regformats/arm-with-iwmmxt.dat: Generate.
6615         * NEWS: Mention iWMMXt.
6616
6617 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6618
6619         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
6620         (xml-tdesc.o): Update.
6621         * xml-support.c: Add a comment.
6622         (gdb_xml_enums_boolean): New variable.
6623         (gdb_xml_parse_attr_enum): Use strcasecmp.
6624         * xml-support.h (gdb_xml_enums_boolean): Declare.
6625         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
6626         next_regnum, and current_union.
6627         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
6628         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
6629         (field_attributes, union_children, reg_attributes, union_attributes)
6630         (vector_attributes, feature_attributes, feature_children): New.
6631         (target_children): Make static.  Add <feature>.
6632         (tdesc_elements): Make static.
6633         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
6634         (struct tdesc_feature, tdesc_feature_p): New types.
6635         (struct target_desc): Add features member.
6636         (struct tdesc_arch_data, tdesc_data): New.
6637         (target_find_description): Clarify error message.  Warn about
6638         ignored register descriptions.
6639         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6640         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
6641         (tdesc_data_cleanup, tdesc_numbered_register)
6642         (tdesc_numbered_register_choices, tdesc_find_register)
6643         (tdesc_register_name, tdesc_register_type)
6644         (tdesc_remote_register_number, tdesc_register_reggroup_p)
6645         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
6646         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
6647         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
6648         (tdesc_create_feature, tdesc_record_type): New.
6649         (free_target_description): Free features.
6650         (_initialize_target_descriptions): Initialize tdesc_data.
6651         * arch-utils.c (default_remote_register_number): New.
6652         * arch-utils.h (default_remote_register_number): New prototype.
6653         * target-descriptions.h (set_tdesc_pseudo_register_name)
6654         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
6655         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
6656         (tdesc_numbered_register, tdesc_numbered_register_choices)
6657         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
6658         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
6659         (tdesc_create_reg): Declare.
6660         * gdbarch.sh (remote_register_number): New entry.
6661         * gdbarch.c, gdbarch.h: Regenerate.
6662         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
6663         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
6664
6665         * arm-tdep.c (arm_register_aliases): New.
6666         (arm_register_name_strings): Rename to...
6667         (arm_register_names): ...this.  Make const.  Delete the old version.
6668         (current_option, arm_register_byte): Delete.
6669         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
6670         (value_of_arm_user_reg): New.
6671         (arm_gdbarch_init): Verify any described registers.  Call
6672         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
6673         for standard register names.
6674         (_initialize_arm_tdep): Do not adjust arm_register_names.
6675         * user-regs.c (struct user_reg): Add baton member.
6676         (append_user_reg, user_reg_add_builtin, user_regs_init)
6677         (user_reg_add, value_of_user_reg): Use a baton for user
6678         register functions.
6679         * std-regs.c: Update.
6680         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
6681         (user_reg_add): Add baton argument.
6682         * NEWS: Mention target description register support.
6683         * features/arm-core.xml, features/arm-fpa.xml: New.
6684         * eval.c (evaluate_subexp_standard): Allow ptype $register
6685         when the program is not running.
6686
6687 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
6688
6689         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
6690
6691 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
6692
6693         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
6694         info->disassembler_options to "any".
6695
6696 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6697
6698         * varobj.c (install_new_value): Only call value_get_print_value
6699         if changeable.
6700
6701 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6702
6703         Reported by timeless@gmail.com:
6704         * gdb/target.c (target_flash_erase): Do not return void value.
6705         (target_flash_done): Likewise.
6706         * gdb/cli/cli-cmds.c (source_command): Likewise.
6707
6708 2007-02-08  Fred Fish  <fnf@specifix.com>
6709
6710         Based on work by Apple Computer, Inc.
6711         * event-top.c (handle_sigint): Set quit_flag.
6712         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
6713         if quit_flag has already been reset.
6714
6715 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6716
6717         * ser-mingw.c (pipe_windows_close): Move variable initialization back
6718         up.
6719
6720 2007-02-08  Fred Fish  <fnf@specifix.com>
6721
6722         * defs.h (request_quit): Remove declaration.
6723         * utils.c (request_quit): Remove definition.
6724
6725 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
6726             Jan Kratochvil  <jan.kratochvil@redhat.com>
6727             Daniel Jacobowitz  <dan@codesourcery.com>
6728
6729         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
6730         (skip_prologue): Allow bl->blrl used by PIC code.
6731
6732 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
6733             Daniel Jacobowitz  <dan@codesourcery.com>
6734
6735         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
6736         initialize tmp_obstack.
6737         * p-valprint.c (pascal_object_print_value_fields)
6738         (pascal_object_print_value): Likewise.
6739
6740 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
6741
6742         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
6743
6744 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
6745
6746         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
6747         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
6748
6749 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
6750
6751         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
6752         (xml_cache): New.
6753         (tdesc_parse_xml): Cache expanded descriptions.
6754
6755 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
6756
6757         * Makefile.in (XMLFILES): New.
6758         (COMMON_OBS): Add xml-builtin.o.
6759         (xml-builtin.c, stamp-xml): New rules.
6760         (xml-tdesc.o): Update.
6761         * features/feature_to_c.sh: New file.
6762         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
6763         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
6764         (gdb_xml_start_element): Initialize scope after possibly reallocating
6765         scopes.  Move cleanup later.  Handle the XInclude description
6766         specially.
6767         (gdb_xml_end_element): Only parse the body if there is a current element.
6768         Call XML_DefaultCurrent if there is no element.
6769         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
6770         (struct xinclude_parsing_data, xinclude_start_include)
6771         (xinclude_end_include, xml_xinclude_default)
6772         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
6773         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
6774         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
6775         * xml-support.h (xml_fetch_another, xml_process_xincludes)
6776         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
6777         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
6778         XInclude directives.  Use the compiled in DTD.
6779         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
6780         directory name.  Do not warn here.
6781         (file_read_description_xml): Update call.  Warn here instead.  Pass
6782         a dirname as baton.
6783         (fetch_available_features_from_target): New.
6784         (target_read_description_xml): Use it.
6785         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
6786         to handle XInclude.
6787         * features/xinclude.dtd: New file.
6788
6789 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
6790
6791         * linux-thread-db.c (check_for_thread_db): Return early if we have
6792         no libthread_db support.
6793
6794 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
6795
6796         * mi/mi-parse.h: Include <sys/time.h>.
6797
6798 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
6799
6800         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
6801         instead of print_variable_value to print values.
6802
6803 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
6804
6805         * mi/mi-main.c: Numerous formatting changes.
6806         (mi_cmd_data_write_register_values): Replace clause inadvertantly
6807         removed in my previous change.
6808
6809 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
6810
6811         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
6812         Use 1000000L instead of 1000000.
6813
6814 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
6815
6816             Based on work by Apple Computer, Inc.
6817
6818         * configure.ac: Test for sys/resource.h and getrusage.
6819         * configure, config.in: Regenerate.
6820
6821         * mi/mi-main.c: Include <sys/resource.h> if present.
6822         (rusage): Declare if HAVE_GETRUSAGE.
6823         (current_command_ts, do_timings): New static variables.
6824         (timestamp, print_diff_now, print_diff, timeval_diff):
6825         New static timing functions.
6826         (mi_cmd_enable_timings): New function for new MI command.
6827         (captured_mi_execute_command, mi_execute_async_cli_command): 
6828         Call timing functions.
6829
6830         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
6831         -enable-timings.
6832
6833         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
6834
6835         * mi/mi-parse.h: (mi_timestamp): New structure.
6836         (mi_parse): Add mi_timestamp* member.
6837
6838 2007-02-02  Denis Pilat  <denis.pilat@st.com>
6839
6840         * thread.c (make_cleanup_restore_current_thread): New function.
6841         (info_threads_command): Use of make_cleanup_restore_current_thread
6842         to restore the current thread and the selected frame.
6843         (restore_selected_frame): New function.
6844         (struct current_thread_cleanup): Add frame_id field.
6845         (do_restore_current_thread_cleanup): Add restoring of the selected
6846         frame.
6847         (make_cleanup_restore_current_thread): Likewise.
6848         (thread_apply_all_command): backup the selected frame while 
6849         entering the function and restore it at exit.
6850         (thread_apply_command): Likewise.
6851
6852 2007-02-02  Denis Pilat  <denis.pilat@st.com>
6853
6854         * MAINTAINERS (Write After Approval): Add myself to the list.
6855
6856 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6857
6858         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
6859         (m32r_store_register): Ditto.
6860
6861 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
6862
6863         * ser-mingw.c (pipe_windows_open)
6864         (pipe_windows_read, pipe_windows_write): Declare
6865         variables at the top of the function.
6866
6867 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
6868
6869         * doublest.c (floatformat_from_length): Use the right element from
6870         gdbarch floatformats.
6871         (floatformat_from_type, extract_typed_floating)
6872         (store_typed_floating): Likewise.
6873         * doublest.h: Remove declarations for undefined floatformat arrays.
6874         * gdbarch.sh (float_format, double_format, long_double_format): Change
6875         to pairs.
6876         (pformat): Update for pairs.
6877         * gdbarch.c, gdbarch.h: Regenerated.
6878         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
6879         (floatformats_ieee_double_littlebyte_bigword)
6880         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
6881         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
6882         (floatformats_vax_d): New variables.
6883         (builtin_type_ieee_single, builtin_type_ieee_double)
6884         (builtin_type_arm_ext, builtin_type_ia64_spill)
6885         (builtin_type_ia64_quad): Replace arrays with individual types.
6886         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
6887         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
6888         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
6889         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
6890         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
6891         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
6892         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
6893         unused and endian-specific types.
6894         (recursive_dump_type): Update for floatformat pairs.
6895         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
6896         (build_gdbtypes): Use build_flt.
6897         (_initialize_gdbtypes): Update set of initialized types.
6898         * gdbtypes.h: Update declarations to match gdbtypes.c.
6899         (struct main_type): Store a pointer to two floatformats.
6900         * arch-utils.c (default_float_format, default_double_format): Delete.
6901         * arch-utils.h (default_float_format, default_double_format): Delete.
6902
6903         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
6904         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
6905         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
6906         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
6907         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
6908
6909 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
6910
6911         * target.c (maintenance_print_target_stack): New function.
6912         (initialize_targets): Add new "maintenance print target-stack"
6913         command.
6914
6915 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
6916
6917         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
6918
6919 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
6920
6921         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
6922         (struct dwarf2_loclist_baton): Likewise.
6923
6924 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
6925
6926         * cli/cli-script.c: Include breakpoint.h.
6927         (build_command_line): Require arguments only for if and while
6928         commands.
6929         (get_command_line, execute_user_command, execute_control_command):
6930         Fix wording of warning messages.
6931         (print_command_lines): Print breakpoint commands.
6932         (execute_control_command): Call commands_from_control_command to
6933         handle the `commands' command inside a body of a flow-control
6934         command.
6935         (read_next_line): Recognize the `commands' command and build a
6936         command line structure for it.
6937         (recurse_read_control_structure, read_command_lines): Handle
6938         `commands' similarly to `if' and `while'.
6939
6940         * breakpoint.c (get_number_trailer): Document the special meaning
6941         of NULL as the first argument PP.
6942         (commands_from_control_command): New function.
6943
6944         * breakpoint.h (commands_from_control_command): Add prototype.
6945
6946         * defs.h (commands_control): New enumerated value for enum
6947         command_control_type.
6948
6949 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
6950
6951         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
6952         (ada_exception_sal): Update accordingly.
6953
6954 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
6955
6956         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
6957         * NEWS: Describe CHAR array vs. string identifcation rules.
6958
6959 2007-01-25  Paul Brook  <paul@codesourcery.com>
6960
6961         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
6962
6963 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
6964
6965         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
6966         expression is empty, bother to return the 'optimized out' value we
6967         construct.  (Thanks to Carl Burch.)
6968
6969 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
6970
6971         * varobj.c (c_value_of_root, c_value_of_child)
6972         (cplus_describe_child): Don't call release_value.
6973
6974 2007-01-24  Thiemo Seufer  <ths@mips.com>
6975
6976         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
6977         initialization.
6978
6979 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
6980
6981         Refactor getting children name, value and type access 
6982         for varobjs in C++.
6983         * varobj.c (get_type_deref): Remove.
6984         (adjust_value_for_child_access): New.
6985         (c_number_of_children): Use the above.
6986         (c_describe_child): Likewise.
6987         (enum accessibility): New.
6988         (match_accessibility): New function.
6989         (cplus_describe_child): New function.
6990         (cplus_name_of_child, cplus_value_of_child)
6991         (cplus_type_of_child): Reimplement in terms
6992         of cplus_describe_child.
6993         (cplus_number_of_children): Use 
6994         adjust_value_for_child_access.
6995         
6996 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
6997
6998         Fix computation of the 'editable' attribute and
6999         value changeability for for references.
7000         * varobj.c (get_value_type): New function.
7001         (c_variable_editable): Use get_value_type.
7002         (varobj_value_is_changeable): Likewise.
7003                 
7004 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
7005
7006         * source.c (find_and_open_source): Try rewriting the source
7007         path inside filename if dirname is NULL.
7008
7009 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
7010
7011         * dwarf2read.c (add_partial_symbol): Create an extra partial
7012         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
7013         (new_symbol): Likewise for symbols.
7014
7015 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
7016
7017         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
7018
7019 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
7020         
7021         * value.c (value_primitive_field): Copy the full 'location' 
7022         contents, instead of assuming that copying ADDRESS will 
7023         bring over everything in the union.  Remove obsolete comment.
7024         
7025 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
7026
7027         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
7028         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
7029         (m32c_m16c_pointer_to_address): Separate code from declarations.
7030
7031 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
7032
7033         * target.c (update_current_target): Correct typo.
7034
7035 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
7036
7037         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
7038         declaration.
7039
7040 2007-01-11  Andrew Cagney  <cagney@redhat.com>
7041             Daniel Jacobowitz  <dan@codesourcery.com>
7042             Jan Kratochvil  <jan.kratochvil@redhat.com>
7043
7044         * dwarf2-frame.c (execute_cfa_program): New support of
7045         `DW_CFA_GNU_negative_offset_extended'.
7046
7047 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
7048
7049         * NEWS: Mention flash support for "load" and new remote packets.
7050
7051 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
7052
7053         * breakpoint.c (delete_command): Skip redundant loop iterations.
7054
7055 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
7056
7057         * gdbarch.sh (register_type): Update comment.
7058         * gdbarch.h: Regenerated.
7059         * arch-utils.c (generic_register_size): Call register_type.
7060         * ia64-tdep.c (ia64_extract_return_value): Likewise.
7061         * m32c-tdep.c (check_for_saved): Likewise.
7062         * mips-tdep.c (mips_print_register, print_gp_register_row)
7063         (mips_print_registers_info): Likewise.
7064         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
7065         Likewise.
7066         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
7067         (sh64_do_register, sh64_print_register)
7068         (sh64_media_print_registers_info): Likewise.
7069         * tui/tui-regs.c (tui_register_format): Likewise.
7070
7071 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
7072
7073         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
7074
7075         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
7076         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
7077         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
7078         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
7079         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
7080         (make_symbol_completion_list): Likewise.
7081
7082 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
7083             Daniel Jacobowitz  <dan@codesourcery.com>
7084
7085         * buildsym.c (end_symtab): Use preallocated symtab if available.
7086         Fill in SYMBOL_SYMTAB.
7087         * buildsym.h (struct subfile): Add symtab member.
7088         * dwarf2read.c (struct dwarf2_cu): Add line_header.
7089         (struct file_entry): Add symtab.
7090         (free_cu_line_header): New function.
7091         (read_file_scope): Use it.  Save line_header in the cu.  Process
7092         lines before DIEs.
7093         (add_file_name): Initialize new symtab member.
7094         (dwarf_decode_lines): Create symtabs for included files.
7095         (new_symbol): Set SYMBOL_SYMTAB.
7096         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
7097         (search_symbols): Likewise.
7098         * symtab.h (struct symbol): Add symtab member.
7099         (SYMBOL_SYMTAB): Define.
7100
7101 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
7102
7103         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
7104
7105 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
7106
7107         * arch-utils.c (show_endian): Correct reversed condition.
7108
7109 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
7110
7111         * MAINTAINERS (Write After Approval): Add myself.
7112
7113 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
7114             Vladimir Prus  <vladimir@codesourcery.com>
7115
7116         Fix 'selected frame' varobjs.
7117         * varobj.c (struct varobj): Remove the error field.
7118         (varobj_set_value): Don't check var->error.
7119         (install_new_value): Don't set var->error.
7120         (varobj_update): Always pass the new value
7121         of the root via install_new_value.
7122         (create_child): Don't set error field.
7123         (new_variable): Likewise.
7124         (c_value_of_root): Always reevaluate the value
7125         of selected frame varobjs in the selected frame.
7126         Don't call reinit_frame_cache.
7127
7128 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
7129
7130         * source.c (_initialize_source): Improve the help text of
7131         the substitute-path commands.
7132
7133 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
7134
7135         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
7136         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
7137         (frv_skip_prologue): Remove prototypes.
7138         (frv_adjust_breakpoint_address): Renamed from
7139         frv_gdbarch_adjust_breakpoint_address.
7140         (frv_gdbarch_init): Adjust.
7141
7142 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
7143
7144         * gdbarch.sh (deprecated_extract_return_value)
7145         (deprecated_store_return_value): Remove.
7146         (extract_return_value, store_return_value): Remove default values.
7147         * gdbarch.c, gdbarch.h: Regenerate.
7148         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
7149         (legacy_store_return_value): Remove.
7150         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
7151         Remove.
7152
7153         * mi/mi-main.c: Remove obsolete comment.
7154
7155         * regcache.c, regcache.h (deprecated_register_bytes)
7156         (deprecated_read_register_bytes)
7157         (deprecated_write_register_bytes): Remove.
7158
7159         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
7160         Don't forget to move destination pointer.
7161
7162 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
7163
7164         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
7165
7166 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
7167
7168         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
7169         past entry function with recent newlib.
7170
7171 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
7172
7173         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
7174         introduction.  Specify -var-update more exactly.
7175
7176 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
7177
7178         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
7179
7180 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
7181
7182         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
7183         the Global Maintainers' invitation to be a global maintainer.
7184
7185 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
7186
7187         * infrun.c (singlestep_pc): New variable.
7188         (resume): Set singlestep_pc.
7189         (context_switch): Add a debugging message.  Flush the frame cache.
7190         (handle_inferior_event): Add debugging messages.  Handle thread
7191         hops when a software single step has completed.  Let context_switch
7192         handle flushing the frame cache.
7193
7194 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7195
7196         * NEWS: Mention target descriptions, "set tdesc filename",
7197         "unset tdesc filename", "show tdesc filename", and
7198         qXfer:features:read.
7199         * arch-utils.c (choose_architecture_for_target): New function.
7200         (gdbarch_info_fill): Call it.
7201         * target-descriptions.c (struct property): Make members non-const.
7202         (struct target_desc): Add arch member.
7203         (target_description_filename): New variable.
7204         (target_find_description): Try via XML first.
7205         (tdesc_architecture): New.
7206         (free_target_description, make_cleanup_free_target_description): New.
7207         (set_tdesc_property): Call xstrdup.
7208         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
7209         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
7210         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
7211         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
7212         * target-descriptions.h (tdesc_architecture)
7213         (make_cleanup_free_target_description, set_tdesc_architecture): New
7214         prototypes.
7215         * Makefile.in (SFILES): Add xml-tdesc.c.
7216         (COMMON_OBS): Add xml-tdesc.o.
7217         (target-descriptions.o): Update.
7218         (xml-tdesc.o): New rule.
7219         * xml-tdesc.c, xml-tdesc.h: New files.
7220         * remote.c (PACKET_qXfer_features): New enum.
7221         (remote_protocol_features): Add qXfer:features:read.
7222         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
7223         (_initialize_remote): Register qXfer:features:read.
7224         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
7225         * features/gdb-target.dtd: New file.
7226
7227 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7228
7229         * copyright.sh: Clarify error.
7230
7231 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7232
7233         * symtab.c (matching_bfd_sections): Fix VMA matching for
7234         prelinked objects.
7235
7236 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
7237
7238         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
7239         nested symbols.
7240
7241 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7242
7243         Updated copyright notices for most files.
7244
7245 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7246
7247         * copyright.sh (prunes): Add step-line.inp and step-line.c.
7248
7249 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7250
7251         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
7252         exec_prefix.
7253         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
7254         '${prefix}'.
7255         * configure, config.in: Regenerate.
7256         * defs.h (debug_file_directory): Declare.
7257         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
7258         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
7259         relocate it if DEBUGDIR_RELOCATABLE.
7260         * symfile.c (debug_file_directory): Make non-static.
7261         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
7262         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
7263         (_initialize_symfile): Don't initialize debug_file_directory here.
7264
7265 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
7266
7267         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
7268         statements.
7269
7270 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7271
7272         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
7273         frame_unwind_register to recurse.
7274         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
7275         (alpha_heuristic_frame_prev_register): Likewise.
7276         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
7277         * m32c-tdep.c (m32c_prev_register): Likewise.
7278         * frame.c (frame_register_unwind_location): Remove FIXME.
7279
7280 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7281             Eli Zaretskii  <eliz@gnu.org>
7282
7283         * copyright.sh: New file.
7284
7285 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
7286
7287         * configure.ac: Check for XML_StopParser.
7288         * xml-support.c (gdb_xml_body_text): Check for an error.
7289         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
7290         (gdb_xml_end_element_wrapper): Likewise.
7291         * config.in, configure: Regenerated.
7292
7293 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
7294
7295         * varobj.c (install_new_value): Always update print_value.
7296         (value_get_print_value): Immediately return NULL for missing
7297         values.
7298
7299 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
7300
7301         * configure.ac: Tighten pattern for extracting value of
7302         DEPRECATED_TM_FILE from the target makefile fragment.
7303         * configure: Regenerated.
7304
7305 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
7306
7307         * linux-nat.c (struct simple_pid_list): Add status.
7308         (add_to_pid_list): Record the PID's status.
7309         (linux_record_stopped_pid): Likewise.  Make static.
7310         (pull_pid_from_list): Return the saved status.
7311         (linux_nat_handle_extended): Deleted.
7312         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
7313         Make static.  Handle non-SIGSTOP for a new thread's first signal.
7314         (flush_callback): Handle unexpected pending signals.
7315         (linux_nat_wait): Update calls to changed functions.
7316         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
7317         Remove prototypes for newly static functions.
7318
7319 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
7320
7321         * gdbarch.sh (value_from_register): New gdbarch function.
7322         * gdbarch.c, gdbarch.h: Regenerate.
7323         * findvar.c (default_value_from_register): New function.
7324         (value_from_register): Use gdbarch_value_from_register.
7325         * value.h (default_value_from_register): Declare.
7326         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
7327         spu_value_to_register): Remove.
7328         (spu_value_from_register): New function.
7329         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7330         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7331         Call set_gdbarch_value_from_register.
7332         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
7333         s390_value_to_register): Remove.
7334         (s390_value_from_register): New function.
7335         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
7336         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
7337         Call set_gdbarch_value_from_register.
7338
7339 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
7340
7341         * NEWS: Add "set sysroot" and "show sysroot".
7342         * solib.c (solib_absolute_prefix): Delete.  Replace
7343         all uses with gdb_sysroot.
7344         (_initialize_solib): Add "set sysroot" and "show sysroot".
7345         Make "solib-absolute-prefix" an alias to it.
7346
7347 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
7348
7349         * frame.c (get_frame_register_bytes): New function.
7350         (put_frame_register_bytes): Likewise.
7351         * frame.h (get_frame_register_bytes): Declare.
7352         (put_frame_register_bytes): Likewise.
7353         * findvar.c (value_from_register): Always construct lval_register
7354         values.  Use get_frame_register_bytes.
7355         * valops.c (value_assign): Use get_frame_register_bytes and
7356         put_frame_register_bytes.
7357
7358 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
7359
7360         * MAINTAINERS: Update Stan Shebs' email address.
7361
7362 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
7363
7364         * ada-lang.c (is_known_support_routine): Improve the implementation.
7365
7366 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
7367
7368         * ada-lang.c: Add include of source.h.
7369         (is_known_support_routine): Improve the check verifying that the file
7370         associated to this frame exists.
7371         * Makefile.in (ada-lang.o): Add dependency on source.h.
7372
7373 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
7374
7375         * ax-general.c (ax_const_l): Select proper opcode for the given
7376         value.
7377
7378 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
7379
7380         * varobj.c (c_value_of_root): Don't select frame if variable
7381         object is out of scope.
7382
7383 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
7384
7385         * varobj.c (struct varobj): New member print_value.
7386         (install_new_value): Compare last printed value with current one
7387         instead of contents.
7388         (new_variable): Initialize var->print_value to NULL.
7389         (free_variable): Free var->print_value.
7390         (value_get_print_value): New function derived from
7391         c_value_of_variable.
7392         (c_value_of_variable): Use value_get_print_value.
7393
7394 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
7395
7396         * i386-tdep.c (i386_analyze_stack_align): Add comment.
7397
7398 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
7399
7400         * NEWS: Add entries for new catch commands.
7401
7402 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
7403
7404         * dwarf2read.c (partial_die_info): Add field has_byte_size.
7405         (add_partial_symbol): Correct identification of external references.
7406         (process_structure_scope): Likewise.
7407         (read_partial_die): Handle DW_AT_byte_size attribute.
7408
7409 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
7410
7411         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
7412
7413 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
7414
7415         * varobj.c (get_type_deref): Fix variable objects for references to
7416         pointers.
7417
7418 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7419
7420         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
7421         with no symbols.
7422
7423 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7424
7425         * memory-map.c (struct_memory_map_parsing_data): Remove most
7426         members.  Make property_name an array.
7427         (free_memory_map_parsing_data, memory_map_start_element)
7428         (memory_map_end_element, memory_map_character_data): Delete.
7429         (memory_map_start_memory, memory_map_end_memory)
7430         (memory_map_start_property, memory_map_end_property): New functions.
7431         (property_attributes, memory_children, memory_type_enum)
7432         (memory_attributes, memory_map_children, memory_map_elements): New.
7433         (parse_memory_map): Rewrite.
7434         * xml-support.c (debug_xml): New.
7435         (xml_get_required_attribute, xml_get_integer_attribute)
7436         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
7437         Delete.
7438         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
7439         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
7440         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
7441         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
7442         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
7443         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
7444         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
7445         New.
7446         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
7447         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
7448         (enum gdb_xml_element_flag, struct gdb_xml_element)
7449         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
7450         (struct gdb_xml_enum): New.
7451         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
7452         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
7453         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
7454         (xml_get_required_attribute, xml_get_integer_attribute)
7455         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
7456         * Makefile.in (xml_support_h, xml-support.o): Update.
7457
7458 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7459
7460         * Makefile.in (eval.o): Update dependencies.
7461         * eval.c: Include "ui-out.h" and "exceptions.h".
7462         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
7463         Use value_zero if an error occurs when avoiding side effects.
7464         * varobj.c (c_value_of_root): Initialize new_val.
7465
7466 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7467
7468         * varobj.c (varobj_list_children): Stop if the number of children is
7469         unknown.
7470         (c_number_of_children):
7471
7472 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
7473
7474         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
7475         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
7476         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
7477         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
7478         sizeof, instead of hardcoded constants.
7479
7480 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7481
7482         * CONTRIBUTE: Use sourceware.org.
7483
7484 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7485
7486         * buildsym.c (start_subfile): Handle producer.
7487         (record_producer): New function.
7488         * buildsym.h (struct subfile): Include producer.
7489         (record_producer): New prototype.
7490         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
7491         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
7492         armcc_cfa_offsets_reversed.
7493         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
7494         (dwarf2_frame_find_quirks): New function.
7495         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
7496         (decode_frame_entry_1): Record the CIE version.  Record the
7497         augmentation.  Skip armcc augmentations.
7498         * dwarf2read.c (read_file_scope): Save the producer.
7499         * symtab.h (struct symtab): Rename unused version member to
7500         producer.
7501
7502 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
7503
7504         * configure.ac (build_warnings): Use -Wall and
7505         -Wdeclaration-after-statement.
7506         * configure: Regenerated.
7507
7508 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
7509
7510         Simplify access to variours properties of child
7511         variable objects in C.
7512         * varobj.c (value_struct_element_index): New function.
7513         (c_describe_child): New function.
7514         (c_name_of_child, c_value_of_child)
7515         (c_type_of_child): Rewrite to use c_describe_child.
7516
7517 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
7518
7519         gdb/
7520         * varobj.c: Include "vec.h". 
7521         (varobj_p): New typedef, declare vector of those.
7522         (struct varobj): Use vector for the 'children' member.
7523         (child_exists): Remove.
7524         (save_child_in_parent): Remove.
7525         (remove_child_from_parent): Remove.
7526         (struct varobj_child): Remove.
7527         (struct vstack): Remove.
7528         (vpush, vpop): Remove.
7529         (varobj_list_children): Adjust to work work vector.
7530         (varobj_update): Likewise. Use vectors for
7531         working stack and result.
7532         (delete_variable_1): Likewise.
7533         * Makefile.in (varobj.o): Update dependencies.
7534
7535 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
7536
7537         Port from Apple's version.
7538         gdb/
7539         * varobj.c (type_changeable): Rename to...
7540         (varobj_value_is_changeable_p): ...this. Adjust all callers.
7541         (is_root_p): New function. Use it everywhere.
7542
7543 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
7544
7545         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
7546         then plain 'fixup'.
7547
7548 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
7549
7550         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
7551
7552 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
7553
7554         * hpread.c (hpread_type_lookup): Fix compilation failure.
7555
7556 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
7557
7558         * NEWS: New port to S+core.
7559         * MAINTAINERS (Write After Approval, Responsible Maintainers):
7560         Add myself.
7561
7562         * Makefile.in: Add dependencies for S+core files.
7563         * configure.tgt (score*, score-*-*): Add S+core target.
7564         * config/score/embed.mt: New file.
7565         * score-tdep.c: New file.
7566         * score-tdep.h: New file.
7567
7568 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
7569
7570         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
7571         the appropriate type rather than a bogus void type.
7572
7573 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
7574
7575         * ada-lang.h (ada_find_printable_frame): Remove.
7576         (ada_exception_catchpoint_p, ada_decode_exception_location)
7577         (ada_decode_assert_location): Add declaration.
7578         * ada-lang.c: Add include of annotate.h and valprint.h.
7579         (exception_catchpoint_kind): New enum.
7580         (function_name_from_pc, is_known_support_routine)
7581         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
7582         (ada_exception_name_addr_1, ada_exception_name_addr)
7583         (print_it_exception, print_one_exception, print_mention_exception)
7584         (print_it_catch_exception, print_one_catch_exception)
7585         (print_mention_catch_exception, catch_exception_breakpoint_ops)
7586         (print_it_catch_exception_unhandled)
7587         (print_one_catch_exception_unhandled)
7588         (print_mention_catch_exception_unhandled, print_it_catch_assert)
7589         (print_one_catch_assert, print_mention_catch_assert)
7590         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
7591         (ada_get_next_arg, catch_ada_exception_command_split)
7592         (ada_exception_sym_name, ada_exception_sym_name)
7593         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
7594         (ada_parse_catchpoint_condition, ada_exception_sal)
7595         (ada_decode_exception_location)
7596         (ada_decode_assert_location): New function.
7597         (catch_exception_unhandled_breakpoint_ops): New global variable.
7598         (catch_assert_breakpoint_ops): New global variable.
7599         * breakpoint.c: Add include of ada-lang.h.
7600         (print_one_breakpoint): Do not print the condition for Ada
7601         exception catchpoints.
7602         (create_ada_exception_breakpoint): New function.
7603         (catch_ada_exception_command, catch_assert_command): New function.
7604         (catch_command_1): Add support for the new "catch exception" and
7605         "catch assert" commands.
7606         (_initialize_breakpoint): Add help description for the new catch
7607         commands.
7608         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
7609         valprint.h.
7610         (breakpoint.o): Add dependency on ada-lang.h.
7611
7612 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
7613
7614         * coffread.c (cs_to_section): If bfd_section is found, always
7615         return its section index.
7616         (coff_symtab_read): Determine the minimal_symbol_type using the
7617         bfd_section flags.
7618
7619 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
7620             Daniel Jacobowitz  <dan@codesourcery.com>
7621
7622         * Makefile.in (top.o): Update.
7623         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
7624         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
7625         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
7626         New.
7627         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
7628
7629 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
7630
7631         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
7632         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
7633
7634 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
7635
7636         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
7637         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
7638         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
7639         greater than or equal to zero.
7640         * m2-typeprint.c (m2_array): Likewise.
7641         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
7642         * gdbtypes.c (copy_type_recursive): Correct == typo.
7643         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
7644         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
7645         greater than zero.
7646         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
7647         (default_macro_scope): Remove unused variable.
7648         * prologue-value.h (pv_area_find_reg): Don't name an argument
7649         "register".
7650         * remote-fileio.c (remote_fio_func_map): Add missing braces.
7651         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
7652         type.
7653         (cleanup_sigint_signal_handler): Remove casts.
7654         * valprint.c (val_print): Use a volatile local for the modified
7655         argument.
7656         * varobj.c (languages): Remove extra array dimension.
7657         (varobj_create): Correct access to languages array.
7658         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
7659         missing braces.
7660         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
7661         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
7662         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
7663         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
7664         (mi_cmd_data_write_memory): Likewise.
7665         * signals/signals.c (target_signal_to_string): Cast to int before
7666         comparing.
7667         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
7668         Update all callers.
7669
7670 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
7671
7672         * NEWS: Mention pointer to member improvements.
7673         * Makefile.in (gnu-v3-abi.o): Delete special rule.
7674         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
7675         * ada-valprint.c (ada_print_scalar): Update for new type codes.
7676         * c-typeprint.c (c_print_type): Update for new type codes.
7677         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
7678         (c_type_print_base): Likewise.
7679         (c_type_print_args): Rewrite.
7680         * c-valprint.c (c_val_print): Update for new type codes.  Remove
7681         support for references to members.  Treat methods like functions.
7682         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
7683         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
7684         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
7685         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
7686         (struct cp_abi_ops): Add corresponding members.
7687         * cp-valprint.c (cp_print_class_method): Delete.
7688         (cp_find_class_member): New function.
7689         (cp_print_class_member): Use it.  Simplify support for bogus
7690         member pointers.
7691         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
7692         lookup_methodptr_type.
7693         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
7694         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
7695         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
7696         pointer support.
7697         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
7698         references returned by user defined operators.
7699         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
7700         (f_type_print_varspec_suffix): Remove support for member pointers.
7701         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
7702         and adjusted.
7703         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
7704         (lookup_methodptr_type): New.
7705         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
7706         (recursive_dump_type): Update for new types.
7707         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
7708         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
7709         (lookup_memberptr_type, lookup_methodptr_type)
7710         (smash_to_memberptr_type): New prototypes.
7711         (smash_to_method_type): Formatting fix.
7712         (lookup_member_type, smash_to_member_type): Delete prototypes.
7713         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
7714         Do not rely on debug information for the vptr or the method's
7715         enclosing type.  Handle function descriptors for IA64.
7716         (gnuv3_virtual_fn_field): Rewrite using the new functions.
7717         (gnuv3_find_method_in, gnuv3_print_method_ptr)
7718         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
7719         (gnuv3_method_ptr_to_value): New.
7720         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
7721         * hpread.c (hpread_type_lookup): Update for new types.
7722         * infcall.c (value_arg_coerce): Likewise.
7723         * m2-typeprint.c (m2_print_type): Remove explicit support
7724         for member pointers.
7725         * m2-valprint.c (m2_val_print): Likewise.
7726         * p-typeprint.c (pascal_type_print_varspec_prefix)
7727         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
7728         * p-valprint.c (pascal_val_print): Likewise.
7729         (pascal_object_print_class_method, pascal_object_print_class_member):
7730         Delete.
7731         * p-lang.h (pascal_object_print_class_method)
7732         (pascal_object_print_class_member): Delete prototypes.
7733         * stabsread.c (read_type): Update for new types.
7734         * typeprint.c (print_type_scalar): Likewise.
7735         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
7736         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
7737         argument.  Construct a pointer to member if the address of a
7738         function or data member is requested.
7739         (value_cast_pointers): Don't modify the input value.
7740         (value_cast): Adjust pointer to member handling for new types.
7741         Allow null pointer to member constants.  Don't modify the input
7742         value.
7743         (value_ind): Remove pointer to member check.  Handle function
7744         descriptors for function pointers.
7745         (value_struct_elt, value_find_oload_method_list, check_field):
7746         Remove pointer to member checks.
7747         * value.c (unpack_long): Allow pointers to data members.
7748         (value_from_longest): Allow member pointers.
7749         * value.h (value_aggregate_elt): Add want_address.
7750         * varobj.c (c_variable_editable): Remove check for members.
7751         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
7752         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
7753         in virtual tables.
7754         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
7755         * c-lang.h (cp_print_class_method): Delete prototype.
7756         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
7757         * mips-tdep.c (mips_gdbarch_init): Likewise.
7758         * gdbarch.c, gdbarch.h: Regenerated.
7759
7760 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
7761
7762         * rs6000-tdep.c (rs6000_use_struct_convention)
7763         (rs6000_extract_return_value, rs6000_store_return_value)
7764         (rs6000_extract_struct_value_address): Remove.
7765         (rs6000_return_value): New function.
7766         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
7767         store_return_value, deprecated_extract_struct_value_address and
7768         deprecated_use_struct_convention.  Use rs6000_return_value
7769         instead.
7770
7771 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
7772
7773         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
7774         -display-disable, -display-enable, -display-insert and
7775         -display-list.
7776
7777 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
7778
7779         * breakpoint.c (remove_breakpoint): Remove dead code.
7780
7781 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
7782
7783         * varobj.c: Include block.h.
7784         (c_value_of_root): Check scope within nested statements.
7785
7786 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
7787
7788         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
7789         regcache_cooked_write_signed instead of
7790         deprecated_write_register_bytes.
7791
7792 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
7793
7794         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
7795
7796 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
7797
7798         Followed the Start of New Year Procedure:
7799         * ChangeLog-2006: New file, containing all the entries for 2006.
7800         * ChangeLog: Removed all 2006 entries, and changed the reference
7801         to the previous ChangeLog to point to ChangeLog 2006.
7802         * top.c (print_gdb_version): Update copyright year.
7803
7804 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
7805
7806         * Makefile.in (remote-sds.o): Remove.
7807         * remote-sds.c: Delete.
7808
7809 For older changes see ChangeLog-2006.
7810 \f
7811 Local Variables:
7812 mode: change-log
7813 left-margin: 8
7814 fill-column: 74
7815 version-control: never
7816 coding: utf-8
7817 End: