* aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
[platform/upstream/binutils.git] / gdb / ChangeLog
1 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
2
3         * aix-thread.c (supply_gprs64, supply_reg32, supply_fprs,
4         supply_sprs64, supply_sprs32): Add REGCACHE parameter, use it
5         instead of current_regcache.
6         (fetch_regs_user_thread, fetch_regs_kernel_thread): Add
7         REGCACHE parameter, pass it to supply_ routines.
8         (aix_thread_fetch_registers): Pass current_regcache to
9         fetch_regs_user_thread and fetch_regs_kernel_thread.
10
11         (fill_gprs64, fill_gprs32, fill_fprs, fill_sprs64, fill_sprs32):
12         Add REGCACHE parameter, use it instead of current_regcache.
13         Call regcache_valid_p instead of register_cached.
14         (store_regs_user_thread, store_regs_kernel_thread): Likewise.
15         Also, pass REGCACHE to fill_ routines.
16         (aix_thread_store_registers): Pass current_regcache to
17         store_regs_user_thread and store_regs_kernel_thread.
18
19 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
20
21         * m32r-linux-nat.c (supply_gregset): Do not modify contents
22         pointed to by GREGSETP.
23
24 2007-05-06  Ulrich Weigand  <uweigand@de.ibm.com>
25
26         * irix5-nat.c (fill_gregset): Use regcache_raw_collect instead
27         of regcache_raw_read_signed.
28         (fill_fpregset): Use regcache_raw_collect instead of
29         regcache_raw_read.
30
31 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
32
33         * mips-tdep.c (mips_eabi_push_dummy_call): When pushing floating
34         point arguments, test explicitly for use of the EABI32 ABI
35         instead of inferring this condition from tests on register
36         sizes.
37
38 2007-05-03  Kevin Buettner  <kevinb@redhat.com>
39
40         * breakpoint.c (set_raw_breakpoint): Adjust breakpoint's address
41         prior to allocating its location.
42
43 2007-05-02  Maciej W. Rozycki  <macro@mips.com>
44
45         * mips-tdep.c (mips_o32_push_dummy_call): Remove conditions
46         based on mips_abi_regsize() whose result is known in advance.
47         (mips_o64_push_dummy_call): Likewise.
48
49 2007-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
50
51         * m68klinux-nat.c: Remove #ifndef USE_PROC_FS check.
52         * m68k-tdep.c: Remove code within #ifdef USE_PROC_FS.
53
54         * mips-linux-nat.c: Include "gregset.h".
55         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Move
56         from mips-linux-tdep.c.  Change parameter type to gdb_gregset_t.
57         * mips-linux-tdep.c (supply_gregset, fill_gregset, supply_fpregset,
58         fill_fpregset): Move to mips-linux-nat.c.
59
60         * Makefile.in (m68k-tdep.o, mips-linux-nat.o): Update dependencies.
61
62 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
63
64         * regcache.c (deprecated_read_register_gen): Remove, inline ...
65         (read_register): ... here.
66         (deprecated_write_register_gen): Remove, inline ...
67         (write_register): ... here.
68         * regcache.h (deprecated_read_register_gen): Remove prototype.
69         (deprecated_write_register_gen): Likewise.
70
71         * remote-sim.c (gdbsim_store_register): Replace call to
72         deprecated_read_register_gen with regcache_cooked_read.
73         * target.c (debug_print_register): Replace calls to
74         deprecated_read_register_gen and read_register with
75         regcache_cooked_read.
76
77 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
78
79         * hpux-thread.c (hpux_thread_store_registers): Use
80         regcache_raw_collect, not regcache_raw_read.
81         * irix5-nat.c (fetch_core_registers): Use regcache_raw_supply,
82         not regcache_raw_write.
83
84 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
85
86         * gdbarch.sh: Remove deprecated_register_byte.
87         * gdbarch.c, gdbarch.h: Regenerate.
88         * arch-utils.h (generic_register_size, generic_register_byte): Remove.
89         * arch-utils.c (generic_register_size, generic_register_byte): Remove.
90
91         * regcache.h (regcache_valid_p): Make REGCACHE parameter const.
92         * regcache.c (regcache_valid_p): Allow to query cooked registers in
93         read-only register caches.  Make REGCACHE parameter const.
94         (regcache_dump): Do not check DEPRECATED_REGISTER_BYTE.
95
96         * mi/mi-main.c (old_regs): Remove.
97         (mi_setup_architecture_data, _initialize_mi_main): Remove.
98         (register_changed_p): Reimplement to compare two register caches.
99         (mi_cmd_data_list_changed_registers): Update caller.
100         * mi/mi-main.h (mi_setup_architecture_data): Remove.
101         * mi/mi-interp.c (mi_interpreter_init): Do not call
102         mi_setup_architecture_data.
103
104 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
105
106         * alpha-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Do not define,
107         inline definition at the places the macros are used.
108         * alpha-linux-nat.c (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE): Likewise.
109
110 2007-04-28  Ulrich Weigand  <uweigand@de.ibm.com>
111
112         * rs6000-aix-tdep.c: Include "regcache.h", "regset.h", and
113         "gdb_string.h".
114         (rs6000_aix32_reg_offsets, rs6000_aix64_reg_offsets): New variables.
115         (rs6000_aix_supply_regset, rs6000_aix_collect_regset): New functions.
116         (rs6000_aix32_regset, rs6000_aix64_regset): New variables.
117         (rs6000_aix_regset_from_core_section): New function.
118         (rs6000_aix_init_osabi): Register it.
119         (_initialize_rs6000_aix_tdep): Register GDB_OSABI_AIX osabi and
120         sniffer for bfd_arch_powerpc as well as bfd_arch_rs6000. 
121         * rs6000-nat.c (CoreRegs): Do not define type.
122         (fetch_core_registers, rs6000_core_fns): Remove.
123         (_initialize_core_rs6000): Do not register it.  Rename to ...
124         (_initialize_rs6000_nat): ... this.
125         * Makefile.in (rs6000-aix-tdep.o): Update dependencies.
126
127 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
128
129         * dwarf2expr.c (unsigned_address_type): Add forward declaration.
130         (dwarf2_read_address): Sign extend return address as required by
131         target architecture.
132
133 2007-04-27  Kevin Buettner  <kevinb@redhat.com>
134
135         * solib-frv.c (lm_base): Bail out if the main executable has
136         not been relocated.
137
138 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
139
140         * alpha-linux-tdep.c (alpha_linux_supply_fpregset): Correct location
141         of FPCR register in fpregset.
142
143 2007-04-27  Maciej W. Rozycki  <macro@mips.com>
144
145         * Makefile.in (gdbtk-wrapper.o): Update dependencies.
146         (gdbtk-varobj.o, gdbtk-cmds.o, gdbtk-stack.o): Likewise.
147
148 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
149
150         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Remove.
151         * rs6000-nat.c (rs6000_wait): New function.
152         (_initialize_core_rs6000): Install it as to_wait target method.
153         * target.c (store_waitstatus): Don't check CHILD_SPECIAL_WAITSTATUS.
154
155 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
156
157         * config/rs6000/nm-rs6000.h (TARGET_CREATE_INFERIOR_HOOK): Remove.
158         * fork-child.c (fork_inferior): Don't call TARGET_CREATE_INFERIOR_HOOK.
159         * rs6000-nat.c (super_create_inferior): New variable.
160         (rs6000_create_inferior): Make static.  Adapt argument list.  Call
161         original version of create_inferior via super_create_inferior.
162         (_initialize_core_rs6000): Install to_create_inferior target method.
163
164 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
165
166         * aix-thread.c (aix_thread_xfer_memory): Replace by ...
167         (aix_thread_xfer_partial): ... this.
168         (init_aix_thread_ops): Install to_xfer_partial instead
169         of deprecated_xfer_memory target method.
170
171         * config/powerpc/aix.mh (NATDEPFILES): Remove infptrace.o
172         and inftarg.o, add inf-ptrace.o.
173         * config/rs6000/nm-rs6000.h (FETCH_INFERIOR_REGISTERS,
174         CHILD_XFER_MEMORY, KERNEL_U_SIZE, kernel_u_size): Remove.
175         * rs6000-nat.c: Include "inf-ptrace.h" and "gdb_stdint.h".
176         (fetch_inferior_registers): Rename to ...
177         (rs6000_fetch_inferior_registers): ... this.  Make static.
178         (store_inferior_registers): Rename to ...
179         (rs6000_store_inferior_registers): ... this.  Make static.
180         (read_word, child_xfer_memory): Remove.
181         (rs6000_xfer_partial): New function.
182         (kernel_u_size): Remove.
183         (_initialize_core_rs6000): Add inf_ptrace-based target.
184         * Makefile.in (rs6000-nat.o): Update dependencies.
185
186 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
187
188         * inf-ptrace.c: Include "gdb_stdint.h".
189         (inf_ptrace_xfer_partial): Use "uintptr_t" instead of "long" as 
190         intermediate type when casting CORE_ADDR to PTRACE_TYPE_ARG3.
191         (inf_ptrace_fetch_register): Add intermediate cast to "uintptr_t"
192         before casting CORE_ADDR to PTRACE_TYPE_ARG3.
193         (inf_ptrace_store_register): Likewise.
194         * Makefile.in (inf-ptrace.o): Update dependencies.
195
196 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
197
198         * configure.host (rs6000-*-*): Merge with powerpc-*-aix* rules.
199         * configure.tgt (rs6000-*-*): Likewise.
200         * config/rs6000/aix4.mh: Delete file.
201         * config/rs6000/aix4.mt: Delete file.
202         * config/rs6000/rs6000.mh: Delete file.
203         * config/rs6000/rs6000.mt: Delete file.
204
205         * config/powerpc/nm-aix.h: Delete file.
206         * config/powerpc/aix.mh (NAT_FILE): Set to config/rs6000/nm-rs6000.h.
207
208 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
209
210         * aix-thread.c (fill_sprs32): Change argument types to "uint32_t *".
211         Remove obsolete part of comment.
212         (store_regs_user_thread): Use uint32_t temporaries when calling
213         fill_sprs32.
214         (store_regs_kernel_thread): Likewise.  Add assertion to verify
215         correct size of struct ptsprs members.
216         (aix_thread_xfer_memory): Fix type of myaddr.
217         (aix_thread_extra_thread_info): Fix compiler warning.
218         * rs6000-nat.c (rs6000_ptrace64): Change type of buf to "void *".
219         (fetch_register, store_register): Adapt callers.
220
221 2007-04-27  Ulrich Weigand  <uweigand@de.ibm.com>
222
223         * vec.h (vec_free): Rename to vec_free_.  Adapt users.
224
225 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
226
227         * alpha-linux-tdep.c: Include "gdb_string.h", "regset.h",
228         and "regcache.h".
229         (alpha_linux_supply_gregset, alpha_linux_supply_fpregset): New.
230         (alpha_linux_gregset, alpha_linux_fpregset): New variables.
231         (alpha_linux_regset_from_core_section): New function.
232         (alpha_linux_init_abi): Install it.
233         * alpha-linux-nat.c: Do not include "gdbcore.h".  Include
234         "alpha-tdep.h", <sys/ptrace.h>, <alpha/ptrace.h>,
235         <sys/procfs.h>, and "gregset.h".
236         (ALPHA_REGSET_BASE, ALPHA_REGSET_UNIQUE, ALPHA_UNIQUE_PTRACE_ADDR):
237         Move from config/alpha/nm-linux.h.
238         (supply_gregset, fill_gregset, supply_fpregset, fill_fpregset): Copy
239         from alpha-nat.c.
240         (alpha_linux_register_u_offset): Inline register_addr from alpha-nat.c.
241         * alpha-nat.c: Remove #ifdef __linux__ section.
242         (fetch_elf_core_registers, alpha_elf_core_fns): Remove.
243         (_initialize_core_alpha): Do not register alpha_elf_core_fns.
244         (ALPHA_UNIQUE_PTRACE_ADDR, ALPHA_REGSET_UNIQUE): Define unconditionally.
245         (ALPHA_REGSET_BASE): Move from config/alpha/nm-osf.h.
246         * config/alpha/alpha-linux.mh (NAT_FILE): Set to config/nm-linux.h.
247         (NATDEPFILES): Remove alpha-nat.o.
248         * config/alpha/nm-linux.h: Delete file.
249         * config/alpha/nm-osf.h (ALPHA_REGSET_BASE): Move to alpha-nat.c.
250         * Makefile.in (alpha-linux-nat.o): Update dependencies.
251         (alpha-linux-tdep.o): Likewise.
252
253 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
254
255         * mips-linux-nat.c: No longer include "gdbcore.h".
256         (mips_linux_register_addr): Move from mips-linux-tdep.c.
257         (mips64_linux_register_addr): Likewise.
258         (mips_linux_register_u_offset): Call mips_linux_register_addr or
259         mips64_linux_register_addr instead of register_addr.
260         * mips-linux-tdep.c (mips_linux_register_addr,
261         mips64_linux_register_addr): Move to mips-linux-nat.c.
262         (register_addr): Remove.
263         (register_addr_data, init_register_addr_data): Remove.
264         (_initialize_mips_linux_tdep): Do not initialize register_addr_data.
265         (set_mips_linux_register_addr): Remove.
266         (mips_linux_init_abi): Do not call set_mips_linux_register_addr.
267         * Makefile.in (mips-linux-nat.o): Update dependencies.
268
269 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
270
271         * linux-nat.c (linux_register_u_offset): Remove.
272         (linux_target_install_ops): New function.
273         (linux_target): Use it.
274         (linux_trad_target): New function.
275         * linux-nat.h (linux_trad_target): Declare.
276
277         * alpha-linux-nat.c: Include "gdbcore.h".
278         (alpha_linux_register_u_offset): New function.
279         (_initialize_alpha_linux_nat): Use linux_trad_target.
280
281         * mips-linux-nat.c: Include "gdbcore.h".
282         (mips_linux_register_u_offset): New function.
283         (_initialize_mips_linux_nat): Use linux_trad_target.
284
285         * config/arm/linux.mh (NAT_FILE): Set to config/nm-linux.h.
286         * config/arm/nm-linux.h: Delete file.
287
288         * config/i386/nm-linux64.h (FETCH_INFERIOR_REGISTERS): Remove.
289         * config/i386/nm-linux.h (FETCH_INFERIOR_REGISTERS): Remove.
290
291         * config/ia64/linux.mh (NAT_FILE): Set to config/nm-linux.h.
292         * config/ia64/nm-linux.h: Delete file.
293
294         * config/m32r/linux.mh (NAT_FILE): Set to config/nm-linux.h.
295         * config/m32r/nm-linux.h: Delete file.
296
297         * config/m68k/linux.mh (NAT_FILE): Set to config/nm-linux.h.
298         * config/m68k/nm-linux.h: Delete file.
299
300         * config/pa/linux.mh (NAT_FILE): Set to config/nm-linux.h.
301         * config/pa/nm-linux.h: Delete file.
302
303         * config/powerpc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
304         * config/powerpc/ppc64-linux.mh (NAT_FILE): Likewise.
305         * config/powerpc/nm-linux.h: Delete file.
306
307         * config/s390/s390.mh (NAT_FILE): Set to config/nm-linux.h.
308         * config/s390/nm-linux.h: Delete file.
309
310         * config/sparc/linux.mh (NAT_FILE): Set to config/nm-linux.h.
311         * config/sparc/linux64.mh (NAT_FILE): Likewise.
312         * config/sparc/nm-linux.h: Delete file.
313
314         * Makefile.in (alpha-linux-nat.o): Update dependencies.
315         (mips-linux-nat.o): Likewise.
316
317 2007-04-25  Ulrich Weigand  <uweigand@de.ibm.com>
318
319         * core-aout.c: Delete file.
320         * Makefile.in (ALLDEPFILES): Remove core-aout.c.
321         (core-aout.o): Delete rule.
322         * gdbcore.h (kernel_u_addr, KERNEL_U_ADDR): Remove.
323
324         * config/alpha/nm-linux.h (U_REGS_OFFSET): Remove.
325
326         * arm-linux-nat.c (arm_linux_kernel_u_size): Remove.
327         * config/arm/nm-linux.h (U_REGS_OFFSET, KERNEL_U_SIZE,
328         KERNEL_U_ADDR): Remove.
329
330         * i386-linux-nat.c (register_u_addr, kernel_u_size): Remove.
331         (cannot_fetch_register, cannot_store_register): Remove.
332         (fetch_register): Inline cannot_fetch_register and register_addr.
333         (store_register): Inline cannot_store_register and register_addr.
334         * config/i386/linux.mh (NATDEPFILES): Remove core-aout.o.
335         * config/i386/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
336         REGISTER_U_ADDR, CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER):
337         Remove.
338
339         * m68klinux-nat.c (m68k_linux_register_u_addr, kernel_u_size): Remove.
340         (fetch_register): Inline register_addr.
341         (store_register): Inline register_addr.
342         * config/m68k/linux.mh (NATDEPFILES): Remove core-aout.o.
343         * config/m68k/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR,
344         U_REGS_OFFSET, REGISTER_U_ADDR): Remove.
345
346         * config/mips/nm-irix5.h (REGISTER_U_ADDR): Remove.
347         * config/mips/nm-linux.h (KERNEL_U_SIZE, U_REGS_OFFSET,
348         REGISTER_U_ADDR): Remove.
349
350         * hppa-linux-nat.c (register_addr): Rename to ...
351         (hppa_linux_register_addr): ... this.  Make static.
352         (fetch_register, store_register): Adapt callers.
353         * config/pa/nm-linux.h (U_REGS_OFFSET): Remove.
354
355         * ppc-linux-nat.c (kernel_u_size): Remove.
356         * config/powerpc/nm-linux.h (KERNEL_U_SIZE, KERNEL_U_ADDR): Remove.
357
358         * vax-nat.c (vax_kernel_u_addr, vax_register_u_addr): Make static.
359         * config/vax/vax.mh (NATDEPFILES): Remove core-aout.o.
360         (NAT_FILE): Remove.
361         * config/vax/nm-vax.h: Delete file.
362
363 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
364
365         * MAINTAINERS (Write After Approval): Add myself.
366
367 2007-04-20  Mark Shinwell  <shinwell@codesourcery.com>
368
369         * Makefile.in: Adjust dependencies of m68klinux-tdep.c.
370         * m68klinux-tdep.c (m68k_uclinux_sigcontext_reg_offset): New.
371         (m68k_linux_sigcontext_reg_offset): Fix typo.
372         (target_is_uclinux): New.
373         (m68k_linux_inferior_created): New.
374         (m68k_linux_get_sigtramp_info):  Check for uClinux or
375         normal Linux.  Use m68k_uclinux_sigcontext_reg_offset for
376         uClinux.
377         (_initialize_m68k_linux_tdep): Register
378         m68k_linux_inferior_created.
379
380 2007-04-19  Pedro Alves  <pedro_alves@portugalmail.pt>
381
382         * win32-nat.c (win32_detach): Remove delete_command call.
383         Resume inferior with win32_resume instead of win32_continue.
384
385 2007-04-19  Jerome Guitton  <guitton@adacore.com>
386
387         * ser-mingw.c (fd_is_file): New function.
388         (file_select_thread): New function.
389         (ser_console_wait_handle): Add special handling for files.
390
391 2007-04-18  Denis Pilat  <denis.pilat@st.com>
392
393         * dwarf2read.c (read_subrange_type): Use DW_ATE_signed default type
394         when missing from DW_TAG_subrange_type.  Remove the handling of null
395         return from die_type.
396
397 2007-04-18  Maciej W. Rozycki  <macro@mips.com>
398
399         * mips-tdep.c (mips_eabi_push_dummy_call): Revert the last
400         change to rearrange some brackets.
401         (mips_n32n64_push_dummy_call): Likewise.
402         (mips_o32_push_dummy_call): Likewise.
403         (mips_o64_push_dummy_call): Likewise.
404
405 2007-04-18  Denis Pilat  <denis.pilat@st.com>
406
407         * infcmd.c (post_create_inferior): Start with a call to 
408         target_terminal_ours.
409
410 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
411
412         * mips-tdep.c (mips_eabi_push_dummy_call): Rearrange some
413         brackets.
414         (mips_n32n64_push_dummy_call): Likewise.  Reformat some
415         expressions.
416         (mips_o32_push_dummy_call): Likewise.
417         (mips_o64_push_dummy_call): Likewise.
418
419 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
420
421         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
422         comment.
423
424 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
425
426         * mips-tdep.c (mips_n32n64_push_dummy_call): Fix a typo in a
427         comment.
428         (mips_o32_push_dummy_call): Likewise.
429
430 2007-04-17  Andreas Schwab  <schwab@suse.de>
431
432         * symtab.c (skip_prologue_using_sal): Allow the end of the prologue
433         sal to be bigger than the end of the function.
434
435 2007-04-17  Maciej W. Rozycki  <macro@mips.com>
436             Nigel Stephens  <nigel@mips.com>
437
438         * mips-tdep.c (mips_o32_push_dummy_call): Take account of
439         argument alignment requirements when calculating stack space
440         required.  When aligning an arg register to eight bytes
441         boundary, align stack_offset too.  Write floating-point
442         arguments to the appropriate integer register if need go there.
443         (mips_o64_push_dummy_call): Likewise.
444
445 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
446
447         * gdbarch.sh (software_single_step): Remove "insert_breakpoints_p" and
448         "sig" arguments, add "regcache" argument.
449         * gdbarch.c, gdbarch.h: Regenerate.
450
451         * infrun.c (resume): Update SOFTWARE_SINGLE_STEP call arguments.
452         (handle_inferior_event): Call remove_single_step_breakpoints directly
453         instead of calling SOFTWARE_SINGLE_STEP to remove breakpoints.
454
455         * alpha-tdep.c (alpha_software_single_step): Update argument list.
456         Remove handling of !insert_breakpoints_p case.
457         * arm-tdep.c (arm_software_single_step): Likewise.
458         * cris-tdep.c (cris_software_single_step): Likewise.
459         * mips-tdep.c (mips_software_single_step): Likewise.
460         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
461         * sparc-tdep.c (sparc_software_single_step): Likewise.
462         * spu-tdep.c (spu_software_single_step): Likewise.
463
464         * alpha-tdep.h (alpha_software_single_step): Update prototype.
465         * mips-tdep.h (mips_software_single_step): Likewise.
466         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
467         * sparc-tdep.h (sparc_software_single_step): Likewise.
468
469 2007-04-14  Ulrich Weigand  <uweigand@de.ibm.com>
470
471         * alpha-tdep.c (alpha_software_single_step): Do not call write_pc
472         when removing single-step breakpoints.
473
474 2007-04-14  Vladimir Prus  <vladimir@codesourcery.com>
475
476         * varobj.h (varobj_set_frozen): New
477         (varobj_get_frozen): New.
478         (varobj_update): New parameter explicit.
479         * varobj.c (struct varobj): New fields frozen
480         and not_fetched.
481         (varobj_set_frozen, varobj_get_frozen): New.
482         (install_new_value): Don't fetch values for 
483         frozen variable object, or children thereof.  Allow
484         a frozen variable object to have non-fetched value.
485         (varobj_update): Allow updating child variables.
486         Don't traverse frozen children.
487         (new_variable): Initialize the frozen field.
488         (c_value_of_variable): Return NULL for frozen
489         variable without any value yet. 
490         * mi/mi-cmd-var.c (varobj_update_one): New parameter
491         'explicit'.
492         (mi_cmd_var_create): Output the 'frozen' field,
493         as soon as testsuite is adjusted to expect that field.
494         (mi_cmd_var_set_frozen): New.
495         (mi_cmd_var_update): Pass the 'explicit' parameter to
496         varobj_update_one.
497         * mi/mi-cmds.c (mi_cmds): Register '-var-set-frozen'.
498         * mi/mi-cmds.h (mi_cmd_var_set_frozen): Declare.
499         
500 2007-04-13  Paul Brook  <paul@codesourcery.com>
501
502         * target-descriptions.c (tdesc_named_type): Add ieee_single and
503         ieee_double.
504         * doc/gdb.texinfo: Document ieee_single and ieee_double target types.
505
506 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
507
508         * mips-mdebug-tdep.c, mips-mdebug-tdep.h, ocd.c, ocd.h, ppc-bdm.c,
509         remote-e7000.c, remote-hms.c, remote-utils.c, remote-utils.h,
510         scm-exp.c, scm-lang.c, scm-lang.h, scm-tags.h, scm-valprint.c,
511         ser-e7kpc.c, sh3-rom.c, stop-gdb.c: Delete.
512         * Makefile.in: Remove references to deleted files.
513         * README: Do not mention deleted ROM monitor interfaces.
514         * defs.h (enum language): Delete language_scm.
515         * expprint.c (print_subexp_standard): Do not handle OP_EXPRSTRING.
516         (dump_subexp_body_standard): Likewise.
517         * parse.c (operator_length_standard): Likewise.
518         * expression.h (enum exp_opcode): Delete OP_EXPRSTRING.
519         * remote-mips.c: Do not include remote-utils.h.
520         * remote-sim.c: Likewise.  Use remote_debug instead of sr_get_debug
521         throughout.
522         * value.c: Do not include scm-lang.h.
523         (unpack_long): Delete scm_unpack call.
524         * config/h8300/h8300.mt, config/mips/embed.mt,
525         config/powerpc/ppc-eabi.mt, config/powerpc/ppc-sim.mt,
526         config/sh/embed.mt, config/sh/linux.mt: Remove references to
527         deleted files.
528         * NEWS: Mention removed files.
529
530 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
531
532         * symfile.c (add_psymbol_with_dem_name_to_list): Remove.
533         * symfile.h (add_psymbol_with_dem_name_to_list): Remove prototype.
534
535 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
536
537         * NEWS: Mention removal of HP aCC support.
538
539 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
540
541         * solib-svr4.c (IGNORE_FIRST_LINK_MAP_ENTRY): Do not ignore the
542         first entry for static executables.
543         (breakpoint_addr): Delete unused variable.
544         (elf_locate_base): Search for _r_debug in static executables.
545         (enable_break): Do not set breakpoint_addr.  Scan solib_break_names
546         also.
547
548 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
549
550         * breakpoint.c (update_breakpoints_after_exec, print_it_typical)
551         (bpstat_what, print_one_breakpoint, allocate_bp_location)
552         (mention): Remove bp_through_sigtramp support.
553         * breakpoint.h (enum bptype): Remove bp_through_sigtramp.
554
555 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
556
557         * breakpoint.c (bpstat_what): Give step-resume higher priority than
558         shlib events.
559
560 2007-04-13  Daniel Jacobowitz  <dan@codesourcery.com>
561
562         * infrun.c: Doc fixes.
563         (handle_inferior_event): Clarify debug message.
564         (insert_step_resume_breakpoint_at_sal): Print a debug message.
565
566 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
567
568         * configure.tgt (arm-*-nto*, sh-*-nto*): Remove.
569
570 2007-04-12  Ulrich Weigand  <uweigand@de.ibm.com>
571
572         * config/m68k/tm-monitor.h: Delete file.
573         * config/m68k/monitor.mt (DEPRECATED_TM_FILE): Remove.
574         * m68k-tdep.c (m68k_gdbarch_init): set_gdbarch_decr_pc_after_break
575         call moved to ...
576         * m68kbsd-tdep.c (m68kbsd_init_abi): ... here and ...
577         * m68klinux-tdep.c (m68k_linux_init_abi): ... here.
578
579 2007-04-12  Luis Machado  <luisgpm@br.ibm.com>
580
581         * gdbarch.sh (software_single_step): Change the return type
582         from void to int and reformatted some comments to <= 80
583         columns.
584         * gdbarch.c, gdbarch.h: Regenerated.
585         * alpha-tdep.c (alpha_software_single_step): Likewise.
586         * alpha-tdep.h (alpha_software_single_step): Likewise.
587         * arm-tdep.c (arm_software_single_step): Likewise.
588         * cris-tdep.c (cris_software_single_step): Likewise.
589         * mips-tdep.c (mips_software_single_step): Likewise.
590         * mips-tdep.h (mips_software_single_step): Likewise.
591         * rs6000-tdep.c (rs6000_software_single_step): Likewise.
592         * rs6000-tdep.h (rs6000_software_single_step): Likewise.
593         * sparc-tdep.c (sparc_software_single_step): Likewise.
594         * sparc-tdep.h (sparc_software_single_step): Likewise.
595         * spu-tdep.c (spu_software_single_step): Likewise.
596         * infrun.c (resume): Check the return value from SOFTWARE_SINGLE_STEP
597         and act accordingly.
598
599 2007-04-11  Steve Ellcey  <sje@cup.hp.com>
600
601         * configure.ac (build_warnings): Add -Wno-char-subscripts.
602         * configure: Regenerate.
603         * doc/gdbint.texinfo (warning flags): Add -Wno-char-subscripts.
604
605 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
606
607         * libunwind-frame.c (LIBUNWIND_SO): Use major version number for `.so'.
608
609 2007-04-11  Jan Kratochvil  <jan.kratochvil@redhat.com>
610
611         * gdbtypes.h (TYPE_FLAG_STUB_SUPPORTED, TYPE_STUB_SUPPORTED): New
612         macros.
613         (TYPE_IS_OPAQUE): Empty vs. opaque structures are now
614         distinct on the TYPE_STUB_SUPPORTED debug targets.
615         * dwarf2read.c (read_structure_type): Set TYPE_FLAG_STUB_SUPPORTED.
616
617 2007-04-11  Joel Brobecker  <brobecker@adacore.com>
618
619         * sparc-tdep.c (X_RS2): New macro.
620         (sparc_skip_stack_check): New function.
621         (sparc_analyze_prologue): Adjust PC past stack probing
622         sequence if necessary.
623
624 2007-04-10  Andreas Schwab  <schwab@suse.de>
625
626         * rs6000-tdep.c (rs6000_dwarf2_reg_to_regnum): Decode 64 as CR
627         register.
628
629 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
630
631         * breakpoint.c (gdb_breakpoint_query): Really return an
632         enum gdb_rc.
633         (gdb_breakpoint): Likewise.
634         * thread.c (gdb_list_thread_ids): Likewise.
635         (gdb_thread_select): Likewise.
636         * mi/mi-main.c (mi_cmd_thread_select): Expect an enum gdb_rc.
637         (mi_cmd_thread_list_ids): Remove bogus initialization.
638
639 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
640
641         * Makefile.in (SFILES): Remove hpacc-abi.c.
642         (COMMON_OBS): Remove hpacc-abi.o.
643         (ALLDEPFILES): Remove hpread.c and $(HPREAD_SOURCE).
644         (hpacc-abi.o, hpread.o): Delete rules.
645         * somread.c: Delete extern declarations from hpread.c.
646         (som_symfile_read): Do not call do_pxdb or hpread_build_psymtabs.
647         (som_symfile_finish): Do not call hpread_symfile_finish.
648         (som_symfile_init): Do not call hpread_symfile_init.
649         * config/pa/hppa64.mt (TDEPFILES): Remove hpread.o.
650         * config/pa/hppahpux.mt (TDEPFILES): Likewise.
651         * hpacc-abi.c, hpread.c: Deleted.
652
653 2007-04-10  Daniel Jacobowitz  <dan@codesourcery.com>
654
655         * solib-svr4.c (enable_break): Simplify return value.
656         (svr4_solib_create_inferior_hook): Do not warn if enable_break fails.
657
658 2007-04-10  Andreas Schwab  <schwab@suse.de>
659
660         * solib-svr4.h (struct link_map_offsets): Remove l_addr_size,
661         l_ld_size, l_next_size, l_prev_size, l_name_size.
662
663         * solib-svr4.c (LM_ADDR_FROM_LINK_MAP): Use extract_typed_address
664         to extract addresses from link map.
665         (LM_DYNAMIC_FROM_LINK_MAP): Likewise.
666         (LM_NEXT): Likewise.
667         (LM_NAME): Likewise.
668         (IGNORE_FIRST_LINK_MAP_ENTRY): Likewise.
669         (elf_locate_base): Likewise.
670         (open_symbol_file_object): Likewise.
671         (svr4_fetch_objfile_link_map): Likewise.
672         (SOLIB_EXTRACT_ADDRESS): Remove unused macro.
673         (HAS_LM_DYNAMIC_FROM_LINK_MAP): Test l_ld_offset instead of
674         l_ld_size.
675         (svr4_ilp32_fetch_link_map_offsets): Don't set removed members.
676         (svr4_lp64_fetch_link_map_offsets): Likewise.
677
678         * solib-legacy.c (legacy_svr4_fetch_link_map_offsets): Don't set
679         removed members.  Set l_ld_offset to -1 if not present.
680
681 2007-04-08  Vladimir Prus  <vladimir@codesourcery.com>
682         
683         Pass stderr of program run with "target remote |"
684         via gdb_stderr.
685         * serial.c (serial_open): Set error_fd to -1.
686         * serial.h (struct serial): New field error_fd.
687         (struct serial_opts): New field avail.
688         * ser-pipe.c (pipe_open): Create another pair
689         of sockets.  Pass stderr to gdb.
690         * ser-mingw.c (pipe_windows_open): Pass
691         PEX_STDERR_TO_PIPE to pex_run.  Initialize
692         sd->error_fd.
693         (pipe_avail): New.
694         (_initialize_ser_windows): Hook pipe_avail.
695         * ser-base.c (generic_readchar): Check if there's
696         anything in stderr channel and route that to gdb_stderr.
697
698 2007-04-03  Pedro Alves  <pedro_alves@portugalmail.pt>
699
700         * dbxread.c (read_ofile_symtab): Move current_objfile
701         clearing to after end_stabs.
702
703 2007-04-01  Andreas Schwab  <schwab@suse.de>
704
705         * rs6000-tdep.c (rs6000_convert_from_func_ptr_addr): Use parameter
706         gdbarch instead of current_gdbarch.
707
708 2007-04-01  Vladimir Prus  <vladimir@codesourcery.com>
709
710         * varobj.c (varobj_create): Keep varobj value
711         NULL when evaluating the type.
712         
713 2007-03-31  Pedro Alves  <pedro_alves@portugalmail.pt>
714
715         * NEWS: Mention new Windows CE support.
716
717 2007-03-30  Pedro Alves  <pedro_alves@portugalmail.pt>
718
719         * configure.tgt: Move mips*-*-pe and sh*-*-pe to 
720         the obsoletion stanza.
721         * NEWS: Mention deleted targets.
722
723         * config/sh/tm-wince.h: Remove.
724         * config/sh/wince.mt: Remove.
725         * config/mips/tm-wince.h: Remove.
726         * config/mips/wince.mt: Remove.
727
728         * wince.c: Remove.
729         * wince-stub.c: Remove.
730         * wince-stub.h: Remove.
731         * Makefile.in (wince.o): Remove rule.
732         (wince-stub.o): Likewise.
733
734         * mips-tdep.c (mips_next_pc): Make static.
735         * mips-tdep.h (mips_next_pc): Remove declaration.
736         * arm-tdep.c (arm_pc_is_thumb): Make static.
737         (thumb_get_next_pc): Likewise.
738         (arm_get_next_pc): Likewise.
739         * arm-tdep.h (arm_pc_is_thumb_dummy): Remove declaration.
740         (arm_pc_is_thumb): Likewise.
741         (thumb_get_next_pc): Likewise.
742         (arm_get_next_pc): Likewise.
743
744 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
745
746         * MAINTAINERS: Remove d10v entry.
747         * Makefile.in (SFILES): Remove dwarfread.c.
748         (COMMON_OBS): Remove dwarfread.o.
749         (gdb_sim_d10v_h, abug-rom.o, cpu32bug-rom.o, d10v-tdep.o, dwarfread.o)
750         (remote-est.o, rom68k-rom.o): Delete.
751         * NEWS: Mention removal of d10v, target abug, target cpu32bug,
752         target est, target rom68k, and DWARF 1.
753         * configure.tgt: Mark d10v as removed.
754         * dwarf2read.c: Doc update.
755         * elfread.c (struct elfinfo): Remove dboffset, dbsize, lnoffset,
756         and lnsize.
757         (elf_locate_sections): Do not set them.
758         (elf_symfile_read): Do not call dwarf_build_psymtabs.
759         * symfile.h (dwarf_build_psymtabs): Delete prototype.
760         * config/m68k/monitor.mt (TDEPFILES): Prune.
761         * abug-rom.c, cpu32bug-rom.c, d10v-tdep.c, dwarfread.c,
762         remote-est.c, rom68k-rom.c, config/d10v/d10v.mt: Delete.
763
764 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
765
766         * doublest.c (convert_floatformat_to_doublest): Use
767         floatformat_classify.
768         (floatformat_is_nan): Rename to...
769         (floatformat_classify): ...this.  Return more information.
770         * doublest.h (enum float_kind): New.
771         (floatformat_is_nan): Replace prototype...
772         (floatformat_classify): ...with this one.
773         * valprint.c (print_floating): Use floatformat_classify.  Handle
774         infinity.
775
776 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
777
778         * README: Mention ISO C library requirement.
779
780 2007-03-30  Daniel Jacobowitz  <dan@codesourcery.com>
781
782         * Makefile.in (SFILES): Remove nlmread.c.
783         (COMMON_OBS): Remove nlmread.o.
784         (nlmread.o): Delete rule.
785         * README: Delete reference to remote-st.c.
786         * acinclude.m4 (CY_AC_TCL_LYNX_POSIX): Delete.
787         * defs.h (enum gdb_osabi): Delete GDB_OSABI_NETWARE and
788         GDB_OSABI_LYNXOS.
789         * i386-tdep.c (i386_nw_init_abi, i386_nlm_osabi_sniffer): Delete.
790         (_initialize_i386_tdep): Do not reference them.
791         * nlmread.c: Delete file.
792         * osabi.c (gdb_osabi_names): Remove NetWare and LynxOS.
793         * target.c: Doc update.
794         * thread.c: Delete commented include.
795         * config/alpha/tm-alpha.h: Doc update.
796
797 2007-03-30  Chris Dearman  <chris@mips.com>
798
799         * utils.c (string_to_core_addr): Comment typo.
800
801 2007-03-30  Chris Dearman  <chris@mips.com>
802
803         * mips-tdep.c: Comment typo.
804
805 2007-03-29  Ulrich Weigand  <uweigand@de.ibm.com>
806
807         * config/alpha/nm-osf.h (PTRACE_XFER_TYPE): Remove.
808         * config/mips/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
809         * config/sparc/nm-linux.h (PTRACE_ARG3_TYPE, PTRACE_XFER_TYPE): Remove.
810         * config/powerpc/nm-ppc64-linux.h: Remove file.
811         * config/powerpc/ppc64-linux.mh (NATDEPFILES): Set to nm-linux.h.
812         * inferior.h (PTRACE_ARG3_TYPE): Do not define.
813         (call_ptrace): Change type of third argument to PTRACE_TYPE_ARG3.
814         * infptrace.c (call_ptrace): Likewise.
815         * m68klinux-nat.c (PTRACE_XFER_TYPE): Do not define.
816         (fetch_register): Replace PTRACE_ARG3_TYPE by PTRACE_TYPE_ARG3
817         and PTRACE_XFER_TYPE by PTRACE_TYPE_RET.
818         (store_register): Likewise.
819
820 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
821
822         * Makefile.in (varobj.o): Add missing dependency.
823
824 2007-03-29  Michael Snyder  <msnyder@access-company.com>
825
826         * MAINTAINERS: Update my email address.
827
828 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
829
830         Add support for exception handling with multiple versions of
831         the Ada runtime:
832         * ada-lang.c: Update general comments on how Ada exception catchpoints
833         are implemented.
834         (raise_sym_name, raise_unhandled_sym_name, raise_assert_sym_name)
835         (__gnat_raise_nodefer_with_msg): Delete.
836         (ada_unhandled_exception_name_addr_ftype): New type.
837         (exception_support_info): New type.
838         (ada_unhandled_exception_name_addr): Add forward declaration.
839         (ada_unhandled_exception_name_addr_from_raise): Likewise.
840         (default_exception_support_info): New constant.
841         (exception_support_info_fallback): Likewise.
842         (exception_info): New global variable.
843         (ada_exception_support_info_sniffer): New function.
844         (ada_executable_changed_observer): Likewise.
845         (ada_unhandled_exception_name_addr_from_raise): Renamed from
846         ada_unhandled_exception_name_addr.
847         (ada_unhandled_exception_name_addr): Reimplement to match the
848         latest Ada runtime implementation.
849         (error_breakpoint_runtime_sym_not_found): Delete.
850         (ada_exception_sym_name): Get the exception sym name from
851         exception_info rather than hardcoding it.
852         (ada_exception_sal): Add call to ada_exception_support_info_sniffer.
853         Update error handling.
854         * Makefile.in (ada-lang.o): Add dependency on observer.h.
855
856 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
857
858         * Makefile.in (coff_solib_h, coff-solib.o, i386v-nat.o, lynx-nat.o)
859         (remote-st.o, uw-thread.o): Delete.
860         (HFILES_NO_SRCDIR, ALLDEPFILES): Update.
861         * configure.host: Move hppa*-*-hiux*, i[34567]86-ncr-*,
862         i[34567]86-*-dgux*, i[34567]86-*-lynxos*, i[34567]86-*-sco3.2v5*,
863         i[34567]86-*-sco3.2v4*, i[34567]86-*-sco*, i[34567]86-*-sysv4.2*,
864         i[34567]86-*-sysv4*, i[34567]86-*-sysv5*, i[34567]86-*-unixware2*,
865         i[34567]86-*-unixware*, i[34567]86-*-sysv*, i[34567]86-*-isc*, and
866         rs6000-*-lynxos* to an obsoletion stanza.
867         * configure.tgt: Move hppa*-*-hiux*, i[34567]86-ncr-*,
868         i[34567]86-*-lynxos*, m68*-cisco*-*, m68*-tandem-*, m68*-*-os68k*,
869         and rs6000-*-lynxos* to an obsoletion stanza.  Do not mention
870         i[34567]86-*-netware*.
871         * NEWS: Mention deleted targets.
872
873         * coff-solib.c, coff-solib.h, i386v-nat.c, lynx-nat.c, remote-st.c,
874         uw-thread.c, config/nm-lynx.h, config/i386/i386sco.mh,
875         config/i386/i386sco4.mh, config/i386/i386sco5.mh, config/i386/i386v.mh,
876         config/i386/i386v4.mh, config/i386/i386v42mp.mh,
877         config/i386/ncr3000.mh, config/i386/ncr3000.mt,
878         config/i386/nm-i386sco.h, config/i386/nm-i386sco4.h,
879         config/i386/nm-i386sco5.h, config/i386/nm-i386v.h,
880         config/i386/nm-i386v4.h, config/i386/nm-i386v42mp.h,
881         config/m68k/cisco.mt, config/m68k/os68k.mt, config/m68k/st2000.mt,
882         config/m68k/tm-cisco.h, config/m68k/tm-os68k.h,
883         config/rs6000/rs6000lynx.mh, config/rs6000/rs6000lynx.mt,
884         config/rs6000/tm-rs6000ly.h: Delete files.
885
886 2007-03-29  Daniel Jacobowitz  <dan@codesourcery.com>
887
888         * defs.h (deprecated_registers_changed_hook): Delete declaration.
889         * interps.c (clear_interpreter_hooks): Do not clear
890         deprecated_registers_changed_hook.
891         * regcache.c (registers_changed): Do not call it.
892         * top.c (deprecated_registers_changed_hook): Do not define it.
893         * mi/mi-interp.c (mi_command_loop): Do not clear it.
894         * tui/tui-hooks.c (tui_install_hooks): Do not install it.
895         (tui_remove_hooks): Do not remove it.
896         (tui_selected_frame_level_changed_hook): Check for negative level.
897         Use get_selected_frame.
898         (tui_registers_changed_hook): Deleted.
899
900 2007-03-29  Joel Brobecker  <brobecker@adacore.com>
901
902         * stabsread.c (add_undefined_type): Add extra parameter.
903         Now handles nameless types separately.
904         (struct nat): New type.
905         (noname_undefs, noname_undefs_allocated, noname_undefs_length):
906         New static variables.
907         (read_type): Update calls to add_undefined_type.
908         (add_undefined_type_noname): New function.
909         (add_undefined_type_1): Renames from add_undefined_type.
910         (cleanup_undefined_types_noname): New function.
911         (cleanup_undefined_types_1): Renames cleanup_undefined_types.
912         (cleanup_undefined_types): New handles nameless types separately.
913         (_initialize_stabsread): Initialize our new static constants.
914
915 2007-03-29  Denis Pilat  <denis.pilat@st.com>
916
917         * configure.ac: Test for signal.h.
918         * configure, config.in: Regenerate.
919
920 2007-03-29  Denis Pilat  <denis.pilat@st.com>
921
922         * stack.c (print_stack_frame): Always use LOC_AND_ADDRESS in MI output.
923         * infrun.c (normal_stop): Remove MI specific frame printing treatment.
924
925 2007-03-29  Pedro Alves  <pedro_alves@portugalmail.pt>
926
927         * arm-wince-tdep.c: New.
928         * config/arm/wince.mt (DEPRECATED_TM_FILE): Use tm-arm.h.
929         (MT_CFLAGS): Delete.
930         (TM_CLIBS): Delete.
931         (TDEPFILES): Add arm-wince-tdep.o, corelow.o, solib.o,
932         solib-legacy.o, solib-svr4.o, and remove wince.o.
933         * configure.tgt (arm*-*-mingw32ce*): Add.
934         * signals/signals.c [HAVE_SIGNAL_H]: Check.
935         (do_target_signal_to_host): Silence 'not used' warning.
936         * config/arm/tm-wince.h: Remove.
937
938 2007-03-28  Ulrich Weigand  <uweigand@de.ibm.com>
939
940         * arch-utils.c (legacy_pc_in_sigtramp): Remove.
941         * arch-utils.h (legacy_pc_in_sigtramp): Remove.
942
943         * config/ia64/linux.mt (DEPRECATED_TM_FILE): Remove.
944         * config/ia64/tm-linux.h: Remove file.
945         * ia64-tdep.h (struct gdbarch_tdep): Add pc_in_sigtramp callback.
946         * ia64-tdep.c (ia64_sigtramp_frame_sniffer): Use it instead of
947         legacy_pc_in_sigtramp.
948         (ia64_gdbarch_init): Initialize tdep->pc_in_sigtramp.
949         * ia64-linux-tdep.c (ia64_linux_pc_in_sigtramp): Make static.
950         Remove func_name argument.
951         (ia64_linux_init_abi): Install it as tdep->pc_in_sigtramp.
952
953         * infrun.c (HAVE_STEPPABLE_WATCHPOINT): Do not redefine.
954         * target.c (update_current_target): Add to_have_steppable_watchpoint.
955         * target.h (struct target_ops):  Add to_have_steppable_watchpoint.
956         (HAVE_STEPPABLE_WATCHPOINT): Define.
957
958         * config/ia64/linux.mh (NATDEPFILES): Remove core-aout.o.
959         * config/ia64/nm-linux.h (KERNEL_U_ADDR, U_REGS_OFFSET,
960         CANNOT_FETCH_REGISTER, CANNOT_STORE_REGISTER,
961         TARGET_CAN_USE_HARDWARE_WATCHPOINT, HAVE_STEPPABLE_WATCHPOINT,
962         STOPPED_BY_WATCHPOINT, target_stopped_data_address,
963         target_insert_watchpoint, target_remove_watchpoint): Remove.
964         (FETCH_INFERIOR_REGISTERS): Define.
965         * ia64-linux-nat.c (ia64_register_addr): Make static.
966         (ia64_cannot_fetch_register, ia64_cannot_store_register): Likewise.
967         (ia64_linux_insert_watchpoint): Make static.  Remove ptid_p argument.
968         (ia64_linux_remove_watchpoint): Likewise.  Add type argument.
969         (ia64_linux_stopped_data_address): Make static.  Add target_ops.
970         (ia64_linux_stopped_by_watchpoint): Make static.
971         (ia64_linux_can_use_hw_breakpoint): New function.
972         (ia64_linux_fetch_register, ia64_linux_fetch_registers): Likewise.
973         (ia64_linux_store_register, ia64_linux_store_registers): Likewise.
974         (_initialize_ia64_linux_nat): Install register and watchpoint ops.
975
976 2007-03-28  Pedro Alves  <pedro_alves@portugalmail.pt>
977
978         * linespec.c: Include language.h.
979         (find_methods): Add language parameter.  Call
980         lookup_symbol_in_language.  Pass language down.
981         (add_matching_methods): Likewise.  Call
982         lookup_symbol_in_language.
983         (add_constructors): Likewise.
984         (find_method): Pass sym_class to collect_methods.
985         (collect_methods): Add sym_class parameter.  Pass language
986         down.
987         * symtab.c (lookup_symbol): Rename to ...
988         (lookup_symbol_in_language): ... this.  Add language
989         parameter.  Use passed language instead of current_language.
990         (lookup_symbol): New as wrapper around
991         lookup_symbol_in_language.
992         (lookup_symbol_aux): Add language parameter.  Use passed
993         language instead of current_language.
994         (search_symbols): Indent.
995         * symtab.h (enum language): Forward declare.
996         (lookup_symbol_in_language): Declare.
997         (lookup_symbol): Update description.
998         * ada-lang.h (lookup_symbol_in_language): Remove declaration.
999         * ada-lang.c (restore_language): Remove.
1000         (lookup_symbol_in_language): Remove.
1001
1002 2007-03-27  Pedro Alves  <pedro_alves@portugalmail.pt>
1003
1004         * breakpoint.c (bpstat_num): Add int *num parameter.
1005         * breakpoint.h (bpstat_num): Likewise.
1006         * infcmd.c (continue_command): Adjust to new bpstat_num
1007         interface.
1008         (program_info): Likewise.
1009
1010 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
1011
1012         * config/sh/tm-sh.h: Remove file.
1013         * config/sh/embed.mt (DEPRECATED_TM_FILE): Remove.
1014         * config/sh/linux.mt (DEPRECATED_TM_FILE): Remove.
1015         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1016         * config/sh/tm-wince.h: Do not include "sh/tm-sh.h".
1017
1018 2007-03-27  Ulrich Weigand  <uweigand@de.ibm.com>
1019
1020         * config/sh/tm-sh.h (DEPRECATED_BIG_REMOTE_BREAKPOINT,
1021         DEPRECATED_LITTLE_REMOTE_BREAKPOINT): Remove.
1022         * remote.c: Remove code under #ifdef DEPRECATED_REMOTE_BREAKPOINT,
1023         DEPRECATED_BIG_REMOTE_BREAKPOINT, DEPRECATED_LITTLE_REMOTE_BREAKPOINT.
1024         * sh-tdep.c (sh_breakpoint_from_pc): Return remote breakpoint
1025         sequence if target_shortname is "remote".
1026
1027 2007-03-27  Anton Blanchard  <anton@samba.org>
1028
1029         * rs6000-tdep.c (rs6000_frame_cache): Use tdep->lr_frame_offset
1030         instead of wordsize when looking for the LR in a stack frame.
1031
1032 2007-03-27  Andreas Schwab  <schwab@suse.de>
1033             Daniel Jacobowitz  <dan@codesourcery.com>
1034
1035         * dwarf2-frame.c (dwarf2_frame_eh_frame_regnum): Rename to...
1036         (dwarf2_frame_adjust_regnum): ...this.  Make static.  Add eh_frame_p
1037         argument.  Update all callers.
1038         (struct dwarf2_frame_ops): Replace eh_frame_regnum with adjust_regnum.
1039         (dwarf2_frame_set_eh_frame_regnum): Rename to...
1040         (dwarf2_frame_set_adjust_regnum): ...this.  Update argument type.
1041         * dwarf2frame.h (dwarf2_frame_set_eh_frame_regnum): Rename to...
1042         (dwarf2_frame_set_adjust_regnum): ...this.
1043         (dwarf2_frame_eh_frame_regnum): Delete prototype.
1044         * rs6000-tdep.c: Include "dwarf2-frame.h".
1045         (rs6000_adjust_frame_regnum): Define.
1046         (rs6000_gdbarch_init): Enable use of DWARF CFI frame unwinder.
1047         Register rs6000_adjust_frame_regnum.
1048
1049         * Makefile.in (rs6000-tdep.o): Update dependencies.
1050
1051 2007-03-27  Brooks Moses  <brooks.moses@codesourcery.com>
1052
1053         * Makefile.in: Add support for a "pdf" target.
1054
1055 2007-03-27  Daniel Jacobowitz  <dan@codesourcery.com>
1056
1057         * amd64-tdep.c (amd64_init_frame_cache): New function.
1058         (amd64_alloc_frame_cache, amd64_skip_prologue): Use it.
1059
1060 2007-03-26  Nigel Stephens  <nigel@mips.com>
1061             Maciej W. Rozycki  <macro@mips.com>
1062
1063         * ui-out.c (ui_out_field_core_addr): Truncate address to
1064         TARGET_ADDR_BIT size before printing.
1065
1066 2007-03-22  Nigel Stephens  <nigel@mips.com>
1067             Maciej W. Rozycki  <macro@mips.com>
1068
1069         * remote-mips.c (mips_xfer_memory): Update prototype.
1070
1071 2007-03-22  Joel Brobecker  <brobecker@adacore.com>
1072
1073         * symfile.h: #include "symtab.h"
1074
1075 2007-03-22  Denis Pilat  <denis.pilat@st.com>
1076
1077         * utils.c (pagination_on_command, pagination_off_command):
1078         Remove useless prototypes.
1079
1080 2007-03-21  Pierre Muller  <muller@ics.u-strasbg.fr>
1081
1082         Fix PR pascal/2232.
1083         * p-valprint.c (pascal_object_print_value): Use type_name_no_tag 
1084         instead of TYPE_NAME for object base class name.
1085
1086
1087 2007-03-19  Kevin Buettner  <kevinb@redhat.com>
1088
1089         * mep-tdep.c (mep_analyze_frame_prologue, mep_frame_this_id):
1090         Specify frame type in calls to frame_func_unwind().
1091
1092 2007-03-13  Daniel Jacobowitz  <dan@codesourcery.com>
1093
1094         * rs6000-tdep.c (rs6000_skip_prologue): Use skip_prologue_using_sal.
1095         (rs6000_in_function_epilogue_p): Use extract_unsigned_integer.
1096         (refine_prologue_limit): Delete.
1097         (skip_prologue): Don't call it.  Use extract_unsigned_integer.
1098         Assume lim_pc is set.  Correct check for incomplete prologues.
1099         Do not skip clobbers of the frame pointer.
1100         * symtab.c (skip_prologue_using_sal): Fail if there is only one
1101         sal.
1102
1103 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
1104
1105         * frame.c (frame_pop): Check to see whether there's a frame to
1106         which we can pop first.
1107
1108 2007-03-13  Nathan Froyd  <froydnj@codesourcery.com>
1109
1110         * MAINTAINERS (Write After Approval): Add myself.
1111
1112 2007-03-09  Markus Deuling  <deuling@de.ibm.com>
1113
1114         * infrun.c (breakpoints_failed): Remove unnecessary variable.
1115         (handle_inferior_event): Remove unnecessary braces.
1116         * breakpoint.c (bpstat_what): Remove wrong comment.
1117
1118 2007-03-09  Ulrich Weigand  <uweigand@de.ibm.com>
1119
1120         * spu-tdep.c (spu_in_function_epilogue_p): New function.
1121         (spu_gdbarch_init): Install it.
1122
1123 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
1124
1125         * spu-linux-nat.c (spu_xfer_partial): Return -1 for unsupported
1126         object types, not 0.
1127
1128 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
1129
1130         * spu-tdep.c (spu_frame_align): New function.
1131         (spu_gdbarch_init): Install it.  Set call dummy location to ON_STACK.
1132
1133 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
1134
1135         * spu-tdep.c (spu_unwind_pc): Mask off interrupt enable bit.
1136         (spu_software_single_step): Likewise.
1137         (spu_read_pc, spu_write_pc): New functions.
1138         (spu_gdbarch_init): Install them.
1139
1140 2007-03-08  Ulrich Weigand  <uweigand@de.ibm.com>
1141
1142         * cli/cli-dump.c (struct callback_data): load_offset needs to 
1143         have signed long type.
1144
1145 2007-03-07  Joel Brobecker  <brobecker@adacore.com>
1146
1147         * mips-tdep.c (mips_insn16_frame_cache, mips_insn32_frame_sniffer):
1148         Revert the previous change that had some unexpected side-effects
1149         on mips32.
1150         (mips_insn16_frame_cache, mips_insn32_frame_cache): Use the proper
1151         function to get the address of the calling instruction.
1152
1153 2007-03-07  Denis Pilat  <denis.pilat@st.com>
1154
1155         * tui/tui-hooks.c (tui_selected_frame_level_changed_hook): Replace
1156         get_selected_frame by deprecated_safe_get_selected_frame.
1157
1158 2007-03-02  Mark Kettenis  <kettenis@gnu.org>
1159
1160         * shnbsd-tdep.c: Include "regset.h", "gdb_assert.h" and
1161         "gdb_string.h".  Don't include "nbsd-tdep.h".
1162         (SIZEOF_STRUCT_REG): Remove.
1163         (SHNBSD_SIZEOF_GREGS): New.
1164         (shnbsd_supply_gregset, shnbsd_collect_gregset)
1165         (shnbsd_regset_from_core_section): New functions.
1166         (fetch_core_registers, fetch_elfcore_registers): Remove functions.
1167         (shnbsd_supply_reg, shnbsd_fill_reg): Simply call
1168         shnbsd_supply_gregset, shnbsd_collect_gregset.
1169         (shnbsd_gregset): New variable.
1170         (shnbsd_init_abi): Set regset_from_core_section.
1171         (GDB_OSABI_NETBSD_CORE): New define.
1172         (shnbsd_core_osabi_sniffer): New function.
1173         (_initialize_shnbsd_tdep): Register shnbsd_core_osabi_sniffer.
1174         * Makefile.in (shnbsd-tdep.o): Update dependencies.
1175         * config/sh/nbsd.mt (TDEPFILES): Add corelow.o, remove
1176         nbsd-tdep.o.
1177         * config/sh/obsd.mt (TDEPFILES): Remove nbsd-tdep.o.
1178
1179 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
1180
1181         * gdbtypes.c (replace_type): Fix typo that caused us to not update
1182         length of the types referenced by the new type CV ring.
1183
1184 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
1185
1186         * frame.c (frame_pop, frame_observer_target_changed): Call
1187         reinit_frame_cache.
1188         (flush_cached_frames): Rename to reinit_frame_cache and delete
1189         old implementation.
1190         * frame.h (flush_cached_frames): Delete prototype and update comment.
1191
1192         * bsd-kvm.c (bsd_kvm_open, bsd_kvm_proc_cmd, bsd_kvm_pcb_cmd): Call
1193         reinit_frame_cache instead of flush_cached_frames.  Do not call
1194         select_frame after reinit_frame_cache.
1195         * corelow.c (core_open): Likewise.
1196         * gdbarch.sh (deprecated_current_gdbarch_select_hack): Likewise.
1197         * infrun.c (prepare_to_proceed, context_switch)
1198         (handle_inferior_event): Likewise.
1199         * linux-fork.c (fork_load_infrun_state): Likewise.
1200         * ocd.c (ocd_start_remote): Likewise.
1201         * remote-e7000.c (e7000_start_remote): Likewise.
1202         * remote-mips.c (device): Likewise.
1203         * thread.c (switch_to_thread): Likewise.
1204         * tracepoint.c (finish_tfind_command): Likewise.
1205         * gdbarch.c: Regenerated.
1206
1207 2007-02-28  Jerome Guitton  <guitton@adacore.com>
1208             Joel Brobecker  <brobecker@adacore.com>
1209
1210         * gdbtypes.c (check_typedef): Do not replace stub type if
1211         the resolved type is not defined in the same objfile.
1212
1213 2007-02-28  Daniel Jacobowitz  <dan@codesourcery.com>
1214
1215         * top.c (gdb_readline_wrapper_cleanup): Remove invalid assertion.
1216
1217 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
1218
1219         * stabsread.c (define_symbol): Create an associated STRUCT_DOMAIN
1220         symbol for Ada units when the symbol is defined using 't' rather
1221         than 'Tt' as symbol descriptor.
1222
1223 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
1224
1225         * config/mips/tm-nbsd.h: Delete file.
1226         * config/mips/nbsd.mt (DEPRECATED_TM_FILE): Remove.
1227         * config/sh/tm-nbsd.h: Delete file.
1228         * config/sh/nbsd.mt (DEPRECATED_TM_FILE): Set to tm-sh.h.
1229
1230 2007-02-28  Joel Brobecker  <brobecker@adacore.com>
1231
1232         * mi/mi-cmd-var.c (varobj_update_one): Remove reference to
1233         unused WRONG_PARAM value since it was recently deleted.
1234
1235 2007-02-28  Vladimir Prus  <vladimir@codesourcery.com>
1236
1237         * varobj.c (varobj_update): Free temporary vectors.
1238
1239 2007-02-28  Ulrich Weigand  <uweigand@de.ibm.com>
1240
1241         * config/powerpc/linux.mt (DEPRECATED_TM_FILE): Set to tm-ppc-eabi.h.
1242         * config/powerpc/tm-linux.h: Delete file.
1243         * config/powerpc/tm-ppc-eabi.h: Do not include "rs6000/tm-rs6000.h".
1244         (PROCESS_LINENUMBER_HOOK): Do not undefine.
1245         (TEXT_SEGMENT_BASE): Do not redefine.
1246         * config/rs6000/nm-rs6000.h (CHILD_SPECIAL_WAITSTATUS): Move here
1247         from config/rs6000/tm-rs6000.h.
1248         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1249         * config/rs6000/tm-rs6000.h (struct frame_info): Remove declaration.
1250         (TEXT_SEGMENT_BASE): Remove.
1251         (IN_SOLIB_RETURN_TRAMPOLINE): Remove.
1252         (rs6000_in_solib_return_trampoline): Remove.
1253         (SKIP_TRAMPOLINE_CODE): Remove.
1254         (rs6000_skip_trampoline_code): Remove.
1255         (CHILD_SPECIAL_WAITSTATUS): Move to config/rs6000/nm-rs6000.h.
1256         (TARGET_CREATE_INFERIOR_HOOK, rs6000_create_inferior): Likewise.
1257         (FP0_REGNUM): Remove.
1258         (rs6000_find_toc_address_hook): Move to rs6000-tdep.h.
1259         (rs6000_set_host_arch_hook): Remove.
1260         * Makefile.in (rs6000-nat.o): Add dependency on $(rs6000_tdep_h).
1261         (rs6000-aix-tdep.o): Add dependency on $(ppc_tdep_h).
1262         * ppc-tdep.h (struct gdbarch_tdep): Add field text_segment_base.
1263         * rs6000-aix-tdep.c: Include "ppc-tdep.h".
1264         (rs6000_aix_init_osabi): Set text_segment_base tdep field.
1265         * rs6000-nat.c: Include "rs6000-tdep.h".
1266         (exec_one_dummy_insn): Replace TEXT_SEGMENT_BASE by tdep field.
1267         (set_host_arch): Rename to ...
1268         (rs6000_create_inferior): ... this.  Make public.
1269         (_initialize_core_rs6000): Do not set rs6000_set_host_arch_hook.
1270         * rs6000-tdep.c (rs6000_set_host_arch_hook): Remove.
1271         (rs6000_create_inferior): Remove.
1272         (branch_dest): Replace TEXT_SEGMENT_BASE by tdep field.
1273         (rs6000_gdbarch_init): Call set_gdbarch_fp0_regnum,
1274         set_gdbarch_in_solib_return_trampoline, and
1275         set_gdbarch_skip_trampoline_code.
1276         * rs6000-tdep.h (rs6000_find_toc_address_hook): Move here
1277         from config/rs6000/tm-rs6000.h.
1278
1279 2007-02-27  Joel Brobecker  <brobecker@adacore.com>
1280
1281         * buildsym.c (record_producer): Do nothing if no producer is provided.
1282
1283 2007-02-27  Nick Roberts  <nickrob@snap.net.nz>
1284
1285         * varobj.c (varobj_update): Remove unused local.  Use gdb_assert
1286         to check changelist is non-NULL.  Call error if the frontend tries
1287         to update a non-root variable.
1288
1289         * varobj.h (enum varobj_update_error): Delete WRONG_PARAM value.
1290
1291 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
1292
1293         * dwarf2-frame.c (dwarf2_frame_cache, dwarf2_frame_this_id)
1294         (dwarf2_frame_sniffer): Update.
1295         (dwarf2_signal_frame_this_id): New function.
1296         (dwarf2_signal_frame_unwind): Use it.
1297         (dwarf2_frame_base_sniffer): Use frame_unwind_address_in_block.
1298         * frame.c (frame_func_unwind): Add this_type argument.
1299         (get_frame_func): Update.
1300         (frame_unwind_address_in_block): Add this_type argument and check it.
1301         Fix a typo.
1302         (get_frame_address_in_block): Update.
1303         * frame.h (enum frame_type): Move higher in the file.
1304         (frame_unwind_address_in_block, frame_func_unwind): Add enum frame_type
1305         argument.
1306
1307         * alpha-mdebug-tdep.c, alpha-tdep.c, amd64-tdep.c, amd64obsd-tdep.c,
1308         arm-tdep.c, avr-tdep.c, cris-tdep.c, frv-tdep.c, h8300-tdep.c,
1309         hppa-tdep.c, i386-tdep.c, i386obsd-tdep.c, ia64-tdep.c,
1310         libunwind-frame.c, m32c-tdep.c, m32r-linux-tdep.c, m32r-tdep.c,
1311         m68hc11-tdep.c, m68k-tdep.c, m88k-tdep.c, mips-mdebug-tdep.c,
1312         mips-tdep.c, mn10300-tdep.c, mt-tdep.c, rs6000-tdep.c, s390-tdep.c,
1313         score-tdep.c, sh-tdep.c, sh64-tdep.c, sparc-tdep.c,
1314         sparc64obsd-tdep.c, spu-tdep.c, v850-tdep.c, vax-tdep.c,
1315         xstormy16-tdep.c, xtensa-tdep.c: Update calls to
1316         frame_func_unwind and frame_unwind_address_in_block to specify
1317         the frame type.  Use frame_unwind_address_in_block instead of
1318         frame_pc_unwind in sniffers.
1319
1320 2007-02-27  Daniel Jacobowitz  <dan@codesourcery.com>
1321
1322         * frame.c (deprecated_selected_frame): Rename to...
1323         (selected_frame): ...this.  Make static.
1324         (get_selected_frame, select_frame): Update.
1325         * frame.h (deprected_select_frame): Delete.
1326         (deprecated_safe_get_selected_frame): Update comments.
1327
1328         * breakpoint.c, cli/cli-cmds.c, f-valprint.c, infcmd.c, inflow.c,
1329         infrun.c, stack.c, tui/tui-disasm.c, tui/tui-source.c,
1330         tui/tui-winsource.c, valops.c, varobj.c, findvar.c, macroscope.c,
1331         parse.c, regcache.h, sh64-tdep.c, tui/tui-hooks.c, tui/tui-win.c,
1332         tui/tui.c: Replace references to deprecated_selected_frame.
1333
1334 2007-02-27  Fred Fish  <fnf@specifix.com>
1335
1336         * rs6000-tdep.c (skip_prologue): Recognize addi instructions that 
1337         directly decrement the stack pointer, accumulate their operand into 
1338         the stack offset, and mark the function as not being frameless.
1339
1340 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
1341
1342         * arch-utils.c (selected_byte_order): New.
1343         * arch-utils.h (selected_byte_order): New prototype.
1344         * remote-sim.c (gdbsim_open): Use selected_byte_order.
1345
1346 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
1347
1348         * symfile.c (place_section): Check SEC_ALLOC.  Do not check VMA.
1349         (default_symfile_offsets): Check VMA here.  Update section VMAs.
1350
1351 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
1352
1353         * remote.c (init_remote_state): Add special handling for placeholder
1354         registers.
1355
1356 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
1357
1358         * Makefile.in (XMLFILES): Include $(TDEP_XML).
1359         (filenames_h): New variable.
1360         (clean): Clean up xml-builtin.c and stamp-xml.
1361         (arm-linux-nat.o): Update.
1362         * config/arm/linux.mh (TDEP_XML): Define.
1363         * arm-linux-nat.c (PTRACE_GETWMMXREGS, PTRACE_SETWMMXREGS): Define.
1364         (arm_linux_has_wmmx_registers): New.
1365         (GET_THREAD_ID): Fix typo.
1366         (IWMMXT_REGS_SIZE): Define.
1367         (fetch_wmmx_regs, store_wmmx_regs): New.
1368         (arm_linux_fetch_inferior_registers): Use fetch_wmmx_regs.
1369         (arm_linux_store_inferior_registers): Use store_wmmx_regs.
1370         (super_xfer_partial, arm_linux_xfer_partial): New.
1371         (_initialize_arm_linux_nat): Use them.
1372         * xml-support.c (fetch_xml_builtin): Move outside HAVE_LIBEXPAT.
1373         (xml_builtin_xfer_partial): New function.
1374         * xml-support.h (xml_builtin_xfer_partial): New prototype.
1375         * NEWS: Update mention of iWMMXt support.
1376
1377 2007-02-26  Daniel Jacobowitz  <dan@codesourcery.com>
1378
1379         * arm-tdep.c (arm_scan_prologue): Do not record FPA register saves
1380         if there are no FPA registers.
1381         (arm_dwarf_reg_to_regnum): New function.
1382         (arm_register_type, arm_register_name): Return minimal values for
1383         unsupported registers.
1384         (arm_register_sim_regno): Handle iWMMXt registers.
1385         (arm_gdbarch_init): Record missing FPA registers if indicated by
1386         a target description.  Recognize iWMMXt registers.  Only register
1387         "info float" for FPA.  Use ARM_NUM_REGS.  Register
1388         arm_dwarf_reg_to_regnum.
1389         * arm-tdep.h (enum gdb_regnum): Add ARM_NUM_REGS and iWMMXt
1390         constants.
1391         (struct gdbarch_tdep): Add have_fpa_registers.
1392         * features/xscale-iwmmxt.xml: Update capitalization.
1393         * regformats/arm-with-iwmmxt.dat: Regenerated.
1394
1395 2007-02-24  Kevin Buettner  <kevinb@redhat.com>
1396
1397         * NEWS (New targets): Add entry for the Toshiba Media Processor.
1398
1399 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
1400
1401         * MAINTAINERS (mep): New target.
1402
1403 2007-02-23  Kevin Buettner  <kevinb@redhat.com>
1404
1405         From Jim Blandy, Dave Brolley, Kevin Buettner, Don Howard, and
1406         Richard Sandiford:
1407         * Makefile.in (elf_mep_h, mep_desc_h, mep_opc_h): New variables.
1408         (mep-tdep.o): New rule.
1409         * configure.tgt (mep-*-*): New target.
1410         * mep-tdep.c: New file.
1411         * config/mep/mep.mt: New file.
1412
1413 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
1414
1415         * infrun.c (inferior_stop_reason, print_stop_reason): Remove
1416         BREAKPOINT_HIT and STOP_UNKNOWN.
1417
1418 2007-02-22  Markus Deuling  <deuling@de.ibm.com>
1419
1420         * valops.c (value_ind): Fix unary * handling of TYPE_CODE_INT. 
1421
1422 2007-02-20  Joel Brobecker  <brobecker@adacore.com>
1423
1424         * gdb_expat.h (XMLCALL): Define if not already defined.
1425
1426 2007-02-20  Andreas Schwab  <schwab@suse.de>
1427
1428         * Makefile.in (symfile.o): Update dependencies.
1429
1430 2007-02-20  Daniel Jacobowitz  <dan@codesourcery.com>
1431
1432         * MAINTAINERS: Disable -Werror for cris simulator.  Build
1433         sparc64-solaris2.10 instead of the broken sparc-elf.
1434         * solib-frv.c: Include "solib.h".
1435         * Makefile.in (solib-frv.o): Update.
1436         * mt-tdep.c (mt_gdbarch_init): Correct typo in floatformats patch.
1437         * xtensa-tdep.c (xtensa_regset_from_core_section): Cast size_t to int.
1438         (xtensa_frame_this_id, xtensa_frame_prev_register)
1439         (xtensa_push_dummy_call): Use %p.
1440
1441 2007-02-16  Daniel Jacobowitz  <dan@codesourcery.com>
1442
1443         * avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1444         ia64-tdep.c, m68k-tdep.c, mips-linux-tdep.c, ppcobsd-tdep.c,
1445         sparc-linux-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1446         * Makefile.in (avr-tdep.o, hppabsd-tdep.o, hppa-tdep.o, i386-tdep.o)
1447         (ia64-tdep.o, m68k-tdep.o, mips-linux-tdep.o, ppcobsd-tdep.o)
1448         (sparc-linux-tdep.o): Update.
1449
1450 2007-02-15  Maxim Grigoriev  <maxim2405@gmail.com>
1451
1452         * xtensa-tdep.h (xtensa_reg_mask_t): New.
1453         (xtensa_mask_t): Change mask field to be a separate array.
1454         * xtensa-tdep.c (extract_call_winsize, xtensa_pseudo_register_read)
1455         (xtensa_pseudo_register_write, xtensa_unwind_pc)
1456         (xtensa_unwind_dummy_id, xtensa_push_dummy_call)
1457         (xtensa_breakpoint_from_pc): Remove implicit type casting.
1458         * xtensa-config.c (mask0, mask1, mask2, mask3, mask4, mask5)
1459         (mask6, mask7, mask8, mask9, mask10, mask11, mask12, mask13)
1460         (mask14, mask15): Rename to
1461         (xtensa_mask0, xtensa_mask1, xtensa_mask2, xtensa_mask3)
1462         (xtensa_mask4, xtensa_mask5, xtensa_mask6, xtensa_mask7)
1463         (xtensa_mask8, xtensa_mask9, xtensa_mask10, xtensa_mask11)
1464         (xtensa_mask12, xtensa_mask13, xtensa_mask14, xtensa_mask15): this.
1465         (xtensa_submask0, xtensa_submask1, xtensa_submask2, xtensa_submask3)
1466         (xtensa_submask4, xtensa_submask5, xtensa_submask6, xtensa_submask7)
1467         (xtensa_submask8, xtensa_submask9, xtensa_submask10)
1468         (xtensa_submask11, xtensa_submask12, xtensa_submask13)
1469         (xtensa_submask14, xtensa_submask15): New.
1470         (rmap): Follow strict aliasing rules doing static initialization.
1471
1472 2007-02-13  Daniel Jacobowitz  <dan@codesourcery.com>
1473
1474         * target-descriptions.c (tdesc_named_type): Move code_ptr and data_ptr
1475         handling from here...
1476         (tdesc_register_type): ...to here.
1477         * xml-tdesc.c (tdesc_start_reg): Allow code_ptr and data_ptr.
1478         * features/arm-core.xml: Use code_ptr and data_ptr.
1479
1480 2007-02-13  Denis Pilat  <denis.pilat@st.com>
1481
1482         * varobj.h (enum varobj_update_error): New enum.
1483         * varobj.c (struct varobj_root): Add is_valid member.
1484         (varobj_get_type): Check for invalid varobj.
1485         (varobj_get_attributes): Likewise.
1486         (variable_editable):Likewise.
1487         (varobj_update): Likewise.  Use varobj_update_error.
1488         (new_root_variable): Set root varobj as valid by default.
1489         (varobj_invalidate): New function.
1490         * symfile.c (clear_symtab_users): Use varobj_invalidate.
1491         * mi/mi-cmd-var.c (varobj_update_one): Change return type to void.
1492         Use varobj_update_error.
1493
1494 2007-02-12  Pierre Muller  <muller@ics.u-strasbg.fr>
1495
1496         Fix PR pascal/2223.
1497         * dwarfread.c (set_cu_language): Recognize DW_LANG_Pascal83 as
1498         Pascal language marker.
1499         * dwarf2read.c (set_cu_language): Likewise.
1500
1501 2007-02-12  Corinna Vinschen  <vinschen@redhat.com>
1502
1503         * win32-nat.c (win32_wait): Reset terminal pgrp to GDB.
1504         (do_initial_win32_stuff): Call terminal_init_inferior_with_pgrp
1505         instead of target_terminal_init since inferior_ptid isn't set yet.
1506
1507 2007-02-10  Pedro Alves  <pedro_alves@portugalmail.pt>
1508
1509         * MAINTAINERS (Write After Approval): Add myself.
1510
1511 2007-02-09  Fred Fish  <fnf@specifix.com>
1512
1513         Based on work by Apple Computer, Inc.
1514         * event-top.c (async_request_quit): Call quit() whenever either
1515         quit_flag is set or immediate_quit is set.
1516
1517 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1518
1519         * ada-lang.c (remove_out_of_scope_renamings): Change third parameter's
1520         type to a pointer to const struct block.
1521         (ada_lookup_symbol_list): Don't cast away constness when calling
1522         remove_out_of_scope_renamings.
1523
1524 2007-02-09  Gabriel Dos Reis  <gdr@integrable-solutions.net>
1525
1526         * linux-nat.c (linux_nat_find_memory_regions): Don't check the
1527         address of 'filename'; it is always non null.
1528
1529 2007-02-09  Joel Brobecker  <brobecker@adacore.com>
1530
1531         * exec.c (add_to_section_table): Do not discard empty sections.
1532
1533 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1534
1535         * features/Makefile, features/arm-with-iwmmxt.xml,
1536         features/gdbserver-regs.xsl, features/number-regs.xsl,
1537         features/sort-regs.xsl, features/xscale-iwmmxt.xml: New files.
1538         * regformats/arm-with-iwmmxt.dat: Generate.
1539         * NEWS: Mention iWMMXt.
1540
1541 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1542
1543         * Makefile.in (arm-tdep.o, eval.o, target-descriptions.o)
1544         (xml-tdesc.o): Update.
1545         * xml-support.c: Add a comment.
1546         (gdb_xml_enums_boolean): New variable.
1547         (gdb_xml_parse_attr_enum): Use strcasecmp.
1548         * xml-support.h (gdb_xml_enums_boolean): Declare.
1549         * xml-tdesc.c (struct tdesc_parsing_data): Record current_feature,
1550         next_regnum, and current_union.
1551         (tdesc_start_feature, tdesc_start_reg, tdesc_start_union)
1552         (tdesc_end_union, tdesc_start_field, tdesc_start_vector)
1553         (field_attributes, union_children, reg_attributes, union_attributes)
1554         (vector_attributes, feature_attributes, feature_children): New.
1555         (target_children): Make static.  Add <feature>.
1556         (tdesc_elements): Make static.
1557         * target-descriptions.c (struct tdesc_reg, tdesc_reg_p, type_p)
1558         (struct tdesc_feature, tdesc_feature_p): New types.
1559         (struct target_desc): Add features member.
1560         (struct tdesc_arch_data, tdesc_data): New.
1561         (target_find_description): Clarify error message.  Warn about
1562         ignored register descriptions.
1563         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1564         (tdesc_named_type, tdesc_data_init, tdesc_data_alloc)
1565         (tdesc_data_cleanup, tdesc_numbered_register)
1566         (tdesc_numbered_register_choices, tdesc_find_register)
1567         (tdesc_register_name, tdesc_register_type)
1568         (tdesc_remote_register_number, tdesc_register_reggroup_p)
1569         (set_tdesc_pseudo_register_name, set_tdesc_pseudo_register_type)
1570         (set_tdesc_pseudo_register_reggroup_p, tdesc_use_registers)
1571         (tdesc_free_reg, tdesc_create_reg, tdesc_free_feature)
1572         (tdesc_create_feature, tdesc_record_type): New.
1573         (free_target_description): Free features.
1574         (_initialize_target_descriptions): Initialize tdesc_data.
1575         * arch-utils.c (default_remote_register_number): New.
1576         * arch-utils.h (default_remote_register_number): New prototype.
1577         * target-descriptions.h (set_tdesc_pseudo_register_name)
1578         (set_tdesc_pseudo_register_type, set_tdesc_pseudo_register_reggroup_p)
1579         (tdesc_use_registers, tdesc_data_alloc, tdesc_data_cleanup)
1580         (tdesc_numbered_register, tdesc_numbered_register_choices)
1581         (tdesc_has_registers, tdesc_find_feature, tdesc_feature_name)
1582         (tdesc_named_type, tdesc_create_feature, tdesc_record_type)
1583         (tdesc_create_reg): Declare.
1584         * gdbarch.sh (remote_register_number): New entry.
1585         * gdbarch.c, gdbarch.h: Regenerate.
1586         * remote.c (init_remote_state): Use gdbarch_remote_register_number.
1587         * features/gdb-target.dtd: Add feature, reg, vector, union, and field.
1588
1589         * arm-tdep.c (arm_register_aliases): New.
1590         (arm_register_name_strings): Rename to...
1591         (arm_register_names): ...this.  Make const.  Delete the old version.
1592         (current_option, arm_register_byte): Delete.
1593         (set_disassembly_style): Simplify.  Do not adjust arm_register_names.
1594         (value_of_arm_user_reg): New.
1595         (arm_gdbarch_init): Verify any described registers.  Call
1596         tdesc_use_registers.  Don't use arm_register_byte.  Create aliases
1597         for standard register names.
1598         (_initialize_arm_tdep): Do not adjust arm_register_names.
1599         * user-regs.c (struct user_reg): Add baton member.
1600         (append_user_reg, user_reg_add_builtin, user_regs_init)
1601         (user_reg_add, value_of_user_reg): Use a baton for user
1602         register functions.
1603         * std-regs.c: Update.
1604         * user-regs.h (user_reg_read_ftype, user_reg_add_builtin)
1605         (user_reg_add): Add baton argument.
1606         * NEWS: Mention target description register support.
1607         * features/arm-core.xml, features/arm-fpa.xml: New.
1608         * eval.c (evaluate_subexp_standard): Allow ptype $register
1609         when the program is not running.
1610
1611 2007-02-09  Nick Roberts  <nickrob@snap.net.nz>
1612
1613         * mi/mi-cmd-var.c (mi_cmd_var_create):  Add value field.
1614
1615 2007-02-08  Thiago Jung Bauermann  <bauerman@br.ibm.com>
1616
1617         * rs6000-tdep.c (gdb_print_insn_powerpc): Set
1618         info->disassembler_options to "any".
1619
1620 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1621
1622         * varobj.c (install_new_value): Only call value_get_print_value
1623         if changeable.
1624
1625 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1626
1627         Reported by timeless@gmail.com:
1628         * gdb/target.c (target_flash_erase): Do not return void value.
1629         (target_flash_done): Likewise.
1630         * gdb/cli/cli-cmds.c (source_command): Likewise.
1631
1632 2007-02-08  Fred Fish  <fnf@specifix.com>
1633
1634         Based on work by Apple Computer, Inc.
1635         * event-top.c (handle_sigint): Set quit_flag.
1636         (async_request_quit): Don't set quit_flag.  Avoid calling quit()
1637         if quit_flag has already been reset.
1638
1639 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1640
1641         * ser-mingw.c (pipe_windows_close): Move variable initialization back
1642         up.
1643
1644 2007-02-08  Fred Fish  <fnf@specifix.com>
1645
1646         * defs.h (request_quit): Remove declaration.
1647         * utils.c (request_quit): Remove definition.
1648
1649 2007-02-08  Joel Brobecker  <brobecker@gnat.com>
1650             Jan Kratochvil  <jan.kratochvil@redhat.com>
1651             Daniel Jacobowitz  <dan@codesourcery.com>
1652
1653         * rs6000-tdep.c (bl_to_blrl_insn_p): New function.
1654         (skip_prologue): Allow bl->blrl used by PIC code.
1655
1656 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
1657             Daniel Jacobowitz  <dan@codesourcery.com>
1658
1659         * cp-valprint.c (cp_print_value_fields, cp_print_value): Always
1660         initialize tmp_obstack.
1661         * p-valprint.c (pascal_object_print_value_fields)
1662         (pascal_object_print_value): Likewise.
1663
1664 2007-02-08  Daniel Jacobowitz  <dan@codesourcery.com>
1665
1666         * features/feature_to_c.sh: Use %s to avoid problems with nawk.
1667
1668 2007-02-08  Mark Kettenis  <kettenis@gnu.org>
1669
1670         * sparcnbsd-tdep.c: Include "gdbtypes.h" instead of "floatformat.h".
1671         * Makefile.in (sparcnbsd-tdep.o): Update dependencies.
1672
1673 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
1674
1675         * xml-tdesc.c (struct tdesc_xml_cache, tdesc_xml_cache_s)
1676         (xml_cache): New.
1677         (tdesc_parse_xml): Cache expanded descriptions.
1678
1679 2007-02-07  Daniel Jacobowitz  <dan@codesourcery.com>
1680
1681         * Makefile.in (XMLFILES): New.
1682         (COMMON_OBS): Add xml-builtin.o.
1683         (xml-builtin.c, stamp-xml): New rules.
1684         (xml-tdesc.o): Update.
1685         * features/feature_to_c.sh: New file.
1686         * xml-support.c (MAX_XINCLUDE_DEPTH): Define.
1687         (struct gdb_xml_parser): Add dtd_name and is_xinclude.
1688         (gdb_xml_start_element): Initialize scope after possibly reallocating
1689         scopes.  Move cleanup later.  Handle the XInclude description
1690         specially.
1691         (gdb_xml_end_element): Only parse the body if there is a current element.
1692         Call XML_DefaultCurrent if there is no element.
1693         (gdb_xml_fetch_external_entity, gdb_xml_use_dtd): New.
1694         (struct xinclude_parsing_data, xinclude_start_include)
1695         (xinclude_end_include, xml_xinclude_default)
1696         (xml_xinclude_start_doctype, xml_xinclude_end_doctype)
1697         (xml_xinclude_xml_decl, xml_xinclude_cleanup, xinclude_attributes)
1698         (xinclude_elements, xml_process_xincludes, fetch_xml_builtin): New.
1699         * xml-support.h (xml_fetch_another, xml_process_xincludes)
1700         (fetch_xml_builtin, xml_builtin, gdb_xml_use_dtd): New declarations.
1701         * xml-tdesc.c (tdesc_parse_xml): Add fetcher_baton argument.  Expand
1702         XInclude directives.  Use the compiled in DTD.
1703         (fetch_xml_from_file): Add baton argument.  Treat it as a containing
1704         directory name.  Do not warn here.
1705         (file_read_description_xml): Update call.  Warn here instead.  Pass
1706         a dirname as baton.
1707         (fetch_available_features_from_target): New.
1708         (target_read_description_xml): Use it.
1709         * features/gdb-target.dtd: Add copyright notice.  Use xinclude.dtd
1710         to handle XInclude.
1711         * features/xinclude.dtd: New file.
1712
1713 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
1714
1715         * linux-thread-db.c (check_for_thread_db): Return early if we have
1716         no libthread_db support.
1717
1718 2007-02-05  Daniel Jacobowitz  <dan@codesourcery.com>
1719
1720         * mi/mi-parse.h: Include <sys/time.h>.
1721
1722 2007-02-05  Nick Roberts  <nickrob@snap.net.nz>
1723
1724         * mi/mi-cmd-stack.c (list_args_or_locals): Use common_val_print
1725         instead of print_variable_value to print values.
1726
1727 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
1728
1729         * mi/mi-main.c: Numerous formatting changes.
1730         (mi_cmd_data_write_register_values): Replace clause inadvertantly
1731         removed in my previous change.
1732
1733 2007-02-03   Eli Zaretskii  <eliz@gnu.org>
1734
1735         * mi/mi-main.c (mi_load_progress, timestamp, print_diff_now):
1736         Use 1000000L instead of 1000000.
1737
1738 2007-02-03  Nick Roberts  <nickrob@snap.net.nz>
1739
1740             Based on work by Apple Computer, Inc.
1741
1742         * configure.ac: Test for sys/resource.h and getrusage.
1743         * configure, config.in: Regenerate.
1744
1745         * mi/mi-main.c: Include <sys/resource.h> if present.
1746         (rusage): Declare if HAVE_GETRUSAGE.
1747         (current_command_ts, do_timings): New static variables.
1748         (timestamp, print_diff_now, print_diff, timeval_diff):
1749         New static timing functions.
1750         (mi_cmd_enable_timings): New function for new MI command.
1751         (captured_mi_execute_command, mi_execute_async_cli_command): 
1752         Call timing functions.
1753
1754         * mi/mi-cmds.c (mi_cmds): Add entry for new MI command
1755         -enable-timings.
1756
1757         * mi/mi-cmds.h (mi_cmd_enable_timings): New extern.
1758
1759         * mi/mi-parse.h: (mi_timestamp): New structure.
1760         (mi_parse): Add mi_timestamp* member.
1761
1762 2007-02-02  Denis Pilat  <denis.pilat@st.com>
1763
1764         * thread.c (make_cleanup_restore_current_thread): New function.
1765         (info_threads_command): Use of make_cleanup_restore_current_thread
1766         to restore the current thread and the selected frame.
1767         (restore_selected_frame): New function.
1768         (struct current_thread_cleanup): Add frame_id field.
1769         (do_restore_current_thread_cleanup): Add restoring of the selected
1770         frame.
1771         (make_cleanup_restore_current_thread): Likewise.
1772         (thread_apply_all_command): backup the selected frame while 
1773         entering the function and restore it at exit.
1774         (thread_apply_command): Likewise.
1775
1776 2007-02-02  Denis Pilat  <denis.pilat@st.com>
1777
1778         * MAINTAINERS (Write After Approval): Add myself to the list.
1779
1780 2007-02-01  Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
1781
1782         * gdb/remote-m32r.sdi.c (m32r_fetch_register): Change PWD mask.
1783         (m32r_store_register): Ditto.
1784
1785 2007-01-30  Vladimir Prus  <vladimir@codesourcery.com>
1786
1787         * ser-mingw.c (pipe_windows_open)
1788         (pipe_windows_read, pipe_windows_write): Declare
1789         variables at the top of the function.
1790
1791 2007-01-29  Daniel Jacobowitz  <dan@codesourcery.com>
1792
1793         * doublest.c (floatformat_from_length): Use the right element from
1794         gdbarch floatformats.
1795         (floatformat_from_type, extract_typed_floating)
1796         (store_typed_floating): Likewise.
1797         * doublest.h: Remove declarations for undefined floatformat arrays.
1798         * gdbarch.sh (float_format, double_format, long_double_format): Change
1799         to pairs.
1800         (pformat): Update for pairs.
1801         * gdbarch.c, gdbarch.h: Regenerated.
1802         * gdbtypes.c (floatformats_ieee_single, floatformats_ieee_double)
1803         (floatformats_ieee_double_littlebyte_bigword)
1804         (floatformats_i387_ext, floatformats_m68881_ext, floatformats_arm_ext)
1805         (floatformats_ia64_spill, floatformats_ia64_quad, floatformats_vax_f)
1806         (floatformats_vax_d): New variables.
1807         (builtin_type_ieee_single, builtin_type_ieee_double)
1808         (builtin_type_arm_ext, builtin_type_ia64_spill)
1809         (builtin_type_ia64_quad): Replace arrays with individual types.
1810         (builtin_type_ieee_single_big, builtin_type_ieee_single_little)
1811         (builtin_type_ieee_double_big, builtin_type_ieee_double_little)
1812         (builtin_type_ieee_double_littlebyte_bigword, builtin_type_i960_ext)
1813         (builtin_type_m88110_ext, builtin_type_m88110_harris_ext)
1814         (builtin_type_arm_ext_big, builtin_type_arm_ext_littlebyte_bigword)
1815         (builtin_type_ia64_spill_big, builtin_type_ia64_spill_little)
1816         (builtin_type_ia64_quad_big, builtin_type_ia64_quad_little): Delete
1817         unused and endian-specific types.
1818         (recursive_dump_type): Update for floatformat pairs.
1819         (build_flt): Move higher.  Handle bit == -1.  Take a floatformat pair.
1820         (build_gdbtypes): Use build_flt.
1821         (_initialize_gdbtypes): Update set of initialized types.
1822         * gdbtypes.h: Update declarations to match gdbtypes.c.
1823         (struct main_type): Store a pointer to two floatformats.
1824         * arch-utils.c (default_float_format, default_double_format): Delete.
1825         * arch-utils.h (default_float_format, default_double_format): Delete.
1826
1827         * arm-tdep.c, avr-tdep.c, hppa-tdep.c, hppabsd-tdep.c, i386-tdep.c,
1828         ia64-tdep.c,  iq2000-tdep.c, m68k-tdep.c, m88k-tdep.c,
1829         mips-linux-tdep.c, mips-tdep.c, mt-tdep.c, ppcobsd-tdep.c,
1830         sparc-linux-tdep.c, sparc-tdep.c, sparcnbsd-tdep.c, spu-tdep.c,
1831         vax-tdep.c, alpha-tdep.c, ppc-sysv-tdep.c: Update.
1832
1833 2007-01-29  Joel Brobecker  <brobecker@adacore.com>
1834
1835         * target.c (maintenance_print_target_stack): New function.
1836         (initialize_targets): Add new "maintenance print target-stack"
1837         command.
1838
1839 2007-01-28  Mark Kettenis  <kettenis@gnu.org>
1840
1841         * dwarf2read.c (new_symbol): Handle DW_AT_decl_file being zero.
1842
1843 2007-01-27  Daniel Jacobowitz  <dan@codesourcery.com>
1844
1845         * dwarf2loc.h (struct dwarf2_locexpr_baton): Change size to a long.
1846         (struct dwarf2_loclist_baton): Likewise.
1847
1848 2007-01-27  Eli Zaretskii  <eliz@gnu.org>
1849
1850         * cli/cli-script.c: Include breakpoint.h.
1851         (build_command_line): Require arguments only for if and while
1852         commands.
1853         (get_command_line, execute_user_command, execute_control_command):
1854         Fix wording of warning messages.
1855         (print_command_lines): Print breakpoint commands.
1856         (execute_control_command): Call commands_from_control_command to
1857         handle the `commands' command inside a body of a flow-control
1858         command.
1859         (read_next_line): Recognize the `commands' command and build a
1860         command line structure for it.
1861         (recurse_read_control_structure, read_command_lines): Handle
1862         `commands' similarly to `if' and `while'.
1863
1864         * breakpoint.c (get_number_trailer): Document the special meaning
1865         of NULL as the first argument PP.
1866         (commands_from_control_command): New function.
1867
1868         * breakpoint.h (commands_from_control_command): Add prototype.
1869
1870         * defs.h (commands_control): New enumerated value for enum
1871         command_control_type.
1872
1873 2007-01-26  Joel Brobecker  <brobecker@adacore.com>
1874
1875         * ada-lang.c (ada_exception_breakpoint_ops): Fix typo in function name.
1876         (ada_exception_sal): Update accordingly.
1877
1878 2007-01-26  Jan Kratochvil <jan.kratochvil@redhat.com>
1879
1880         * c-valprint.c (c_val_print): Require strings to be of no-signed CHARs.
1881         * NEWS: Describe CHAR array vs. string identifcation rules.
1882
1883 2007-01-25  Paul Brook  <paul@codesourcery.com>
1884
1885         * arm-tdep.c (arm_get_next_pc): Fix bitfield off-by-one error.
1886
1887 2007-01-24  Jim Blandy  <jimb@codesourcery.com>
1888
1889         * dwarf2loc.c (dwarf2_evaluate_loc_desc): When the location
1890         expression is empty, bother to return the 'optimized out' value we
1891         construct.  (Thanks to Carl Burch.)
1892
1893 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
1894
1895         * varobj.c (c_value_of_root, c_value_of_child)
1896         (cplus_describe_child): Don't call release_value.
1897
1898 2007-01-24  Thiemo Seufer  <ths@mips.com>
1899
1900         * mips-linux-tdep.c (mips_linux_n64_rt_sigframe): Fix struct
1901         initialization.
1902
1903 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
1904
1905         Refactor getting children name, value and type access 
1906         for varobjs in C++.
1907         * varobj.c (get_type_deref): Remove.
1908         (adjust_value_for_child_access): New.
1909         (c_number_of_children): Use the above.
1910         (c_describe_child): Likewise.
1911         (enum accessibility): New.
1912         (match_accessibility): New function.
1913         (cplus_describe_child): New function.
1914         (cplus_name_of_child, cplus_value_of_child)
1915         (cplus_type_of_child): Reimplement in terms
1916         of cplus_describe_child.
1917         (cplus_number_of_children): Use 
1918         adjust_value_for_child_access.
1919         
1920 2007-01-24  Vladimir Prus  <vladimir@codesourcery.com>
1921
1922         Fix computation of the 'editable' attribute and
1923         value changeability for for references.
1924         * varobj.c (get_value_type): New function.
1925         (c_variable_editable): Use get_value_type.
1926         (varobj_value_is_changeable): Likewise.
1927                 
1928 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
1929
1930         * source.c (find_and_open_source): Try rewriting the source
1931         path inside filename if dirname is NULL.
1932
1933 2007-01-24  Joel Brobecker  <brobecker@adacore.com>
1934
1935         * dwarf2read.c (add_partial_symbol): Create an extra partial
1936         symbol in the VAR_DOMAIN for Ada structures, unions or enums.
1937         (new_symbol): Likewise for symbols.
1938
1939 2007-01-24  Nick Roberts  <nickrob@snap.net.nz>
1940
1941         * mi/mi-main.c (mi_cmd_execute): Call free_all_values.
1942
1943 2007-01-23  Vladimir Prus  <vladimir@codesourcery.com>
1944         
1945         * value.c (value_primitive_field): Copy the full 'location' 
1946         contents, instead of assuming that copying ADDRESS will 
1947         bring over everything in the union.  Remove obsolete comment.
1948         
1949 2007-01-23  Masaki Muranaka  <monaka@monami-software.com>
1950
1951         * m32c-tdep.c (make_regs, m32c_analyze_prologue)
1952         (m32c_skip_trampoline_code, m32c_m16c_address_to_pointer)
1953         (m32c_m16c_pointer_to_address): Separate code from declarations.
1954
1955 2007-01-23  Nick Hudson  <nick.hudson@dsl.pipex.com>
1956
1957         * target.c (update_current_target): Correct typo.
1958
1959 2007-01-22  Masaki Muranaka  <monaka@monami-software.com>
1960
1961         * xstormy16-tdep.c (xstormy16_skip_prologue): Separate code from a
1962         declaration.
1963
1964 2007-01-11  Andrew Cagney  <cagney@redhat.com>
1965             Daniel Jacobowitz  <dan@codesourcery.com>
1966             Jan Kratochvil  <jan.kratochvil@redhat.com>
1967
1968         * dwarf2-frame.c (execute_cfa_program): New support of
1969         `DW_CFA_GNU_negative_offset_extended'.
1970
1971 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
1972
1973         * NEWS: Mention flash support for "load" and new remote packets.
1974
1975 2007-01-21  Markus Deuling  <deuling@de.ibm.com>
1976
1977         * breakpoint.c (delete_command): Skip redundant loop iterations.
1978
1979 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
1980
1981         * gdbarch.sh (register_type): Update comment.
1982         * gdbarch.h: Regenerated.
1983         * arch-utils.c (generic_register_size): Call register_type.
1984         * ia64-tdep.c (ia64_extract_return_value): Likewise.
1985         * m32c-tdep.c (check_for_saved): Likewise.
1986         * mips-tdep.c (mips_print_register, print_gp_register_row)
1987         (mips_print_registers_info): Likewise.
1988         * sh-tdep.c (sh_pseudo_register_read, sh_pseudo_register_write):
1989         Likewise.
1990         * sh64-tdep.c (sh64_pseudo_register_read, sh64_pseudo_register_write)
1991         (sh64_do_register, sh64_print_register)
1992         (sh64_media_print_registers_info): Likewise.
1993         * tui/tui-regs.c (tui_register_format): Likewise.
1994
1995 2007-01-21  Daniel Jacobowitz  <dan@codesourcery.com>
1996
1997         * objfiles.h (ALL_PRIMARY_SYMTABS): Define.
1998
1999         * ada-lang.c (symtab_for_sym, ada_lookup_symbol_list)
2000         (ada_lookup_symbol): Use ALL_PRIMARY_SYMTABS.
2001         * cp-support.c (make_symbol_overload_list_qualified): Likewise.
2002         * symtab.c (lookup_symbol_aux_block, lookup_symbol_aux_symtabs)
2003         (basic_lookup_transparent_type, find_pc_sect_symtab, search_symbols)
2004         (make_symbol_completion_list): Likewise.
2005
2006 2007-01-21  Jan Kratochvil  <jan.kratochvil@redhat.com>
2007             Daniel Jacobowitz  <dan@codesourcery.com>
2008
2009         * buildsym.c (end_symtab): Use preallocated symtab if available.
2010         Fill in SYMBOL_SYMTAB.
2011         * buildsym.h (struct subfile): Add symtab member.
2012         * dwarf2read.c (struct dwarf2_cu): Add line_header.
2013         (struct file_entry): Add symtab.
2014         (free_cu_line_header): New function.
2015         (read_file_scope): Use it.  Save line_header in the cu.  Process
2016         lines before DIEs.
2017         (add_file_name): Initialize new symtab member.
2018         (dwarf_decode_lines): Create symtabs for included files.
2019         (new_symbol): Set SYMBOL_SYMTAB.
2020         * symtab.c (lookup_symbol): Use SYMBOL_SYMTAB.
2021         (search_symbols): Likewise.
2022         * symtab.h (struct symbol): Add symtab member.
2023         (SYMBOL_SYMTAB): Define.
2024
2025 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
2026
2027         * symfile.c (allocate_symtab): Remove INIT_EXTRA_SYMTAB_INFO.
2028
2029 2007-01-20  Daniel Jacobowitz  <dan@codesourcery.com>
2030
2031         * arch-utils.c (show_endian): Correct reversed condition.
2032
2033 2007-01-19  Jan Kratochvil  <jan.kratochvil@redhat.com>
2034
2035         * MAINTAINERS (Write After Approval): Add myself.
2036
2037 2007-01-16  Daniel Jacobowitz  <dan@codesourcery.com>
2038             Vladimir Prus  <vladimir@codesourcery.com>
2039
2040         Fix 'selected frame' varobjs.
2041         * varobj.c (struct varobj): Remove the error field.
2042         (varobj_set_value): Don't check var->error.
2043         (install_new_value): Don't set var->error.
2044         (varobj_update): Always pass the new value
2045         of the root via install_new_value.
2046         (create_child): Don't set error field.
2047         (new_variable): Likewise.
2048         (c_value_of_root): Always reevaluate the value
2049         of selected frame varobjs in the selected frame.
2050         Don't call reinit_frame_cache.
2051
2052 2007-01-15  Joel Brobecker  <brobecker@adacore.com>
2053
2054         * source.c (_initialize_source): Improve the help text of
2055         the substitute-path commands.
2056
2057 2007-01-14  Mark Kettenis  <kettenis@gnu.org>
2058
2059         * frv-tdep.c (frv_gdbarch_init, frv_register_name)
2060         (frv_breakpoint_from_pc, frv_gdbarch_adjust_breakpoint_address)
2061         (frv_skip_prologue): Remove prototypes.
2062         (frv_adjust_breakpoint_address): Renamed from
2063         frv_gdbarch_adjust_breakpoint_address.
2064         (frv_gdbarch_init): Adjust.
2065
2066 2007-01-13  Mark Kettenis  <kettenis@gnu.org>
2067
2068         * gdbarch.sh (deprecated_extract_return_value)
2069         (deprecated_store_return_value): Remove.
2070         (extract_return_value, store_return_value): Remove default values.
2071         * gdbarch.c, gdbarch.h: Regenerate.
2072         * arch-utils.c, arch-utils.h (legacy_extract_return_value)
2073         (legacy_store_return_value): Remove.
2074         * regcache.c, regcache.h (deprecated_grub_regcache_for_registers):
2075         Remove.
2076
2077         * mi/mi-main.c: Remove obsolete comment.
2078
2079         * regcache.c, regcache.h (deprecated_register_bytes)
2080         (deprecated_read_register_bytes)
2081         (deprecated_write_register_bytes): Remove.
2082
2083         * frame.c (get_frame_register_bytes, put_frame_register_bytes):
2084         Don't forget to move destination pointer.
2085
2086 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
2087
2088         * config/i386/nm-i386gnu.h (CHILD_PREPARE_TO_STORE): Remove.
2089
2090 2007-01-11  Ulrich Weigand  <uweigand@de.ibm.com>
2091
2092         * spu-tdep.c (spu_analyze_prologue): Fix erroneous backtrace
2093         past entry function with recent newlib.
2094
2095 2007-01-11  Vladimir Prus  <vladimir@codesourcery.com>
2096
2097         * gdb.texinfo (GDB/MI Variable Objects): Improve the 
2098         introduction.  Specify -var-update more exactly.
2099
2100 2007-01-11  Daniel Jacobowitz  <dan@codesourcery.com>
2101
2102         * frame.c (get_prev_frame_1): Check PC_REGNUM before using it.
2103
2104 2007-01-10  Jim Blandy  <jimb@codesourcery.com>
2105
2106         * MAINTAINERS (Global Maintainers): Ulrich Weigand has accepted
2107         the Global Maintainers' invitation to be a global maintainer.
2108
2109 2007-01-10  Daniel Jacobowitz  <dan@codesourcery.com>
2110
2111         * infrun.c (singlestep_pc): New variable.
2112         (resume): Set singlestep_pc.
2113         (context_switch): Add a debugging message.  Flush the frame cache.
2114         (handle_inferior_event): Add debugging messages.  Handle thread
2115         hops when a software single step has completed.  Let context_switch
2116         handle flushing the frame cache.
2117
2118 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
2119
2120         * NEWS: Mention target descriptions, "set tdesc filename",
2121         "unset tdesc filename", "show tdesc filename", and
2122         qXfer:features:read.
2123         * arch-utils.c (choose_architecture_for_target): New function.
2124         (gdbarch_info_fill): Call it.
2125         * target-descriptions.c (struct property): Make members non-const.
2126         (struct target_desc): Add arch member.
2127         (target_description_filename): New variable.
2128         (target_find_description): Try via XML first.
2129         (tdesc_architecture): New.
2130         (free_target_description, make_cleanup_free_target_description): New.
2131         (set_tdesc_property): Call xstrdup.
2132         (set_tdesc_architecture, tdesc_set_cmdlist, tdesc_show_cmdlist)
2133         (tdesc_unset_cmdlist, unset_tdesc_cmd, unset_tdesc_filename_cmd)
2134         (set_tdesc_cmd, show_tdesc_cmd, set_tdesc_filename_cmd)
2135         (show_tdesc_filename_cmd, _initialize_target_descriptions): New.
2136         * target-descriptions.h (tdesc_architecture)
2137         (make_cleanup_free_target_description, set_tdesc_architecture): New
2138         prototypes.
2139         * Makefile.in (SFILES): Add xml-tdesc.c.
2140         (COMMON_OBS): Add xml-tdesc.o.
2141         (target-descriptions.o): Update.
2142         (xml-tdesc.o): New rule.
2143         * xml-tdesc.c, xml-tdesc.h: New files.
2144         * remote.c (PACKET_qXfer_features): New enum.
2145         (remote_protocol_features): Add qXfer:features:read.
2146         (remote_xfer_partial): Handle TARGET_OBJECT_AVAILABLE_FEATURES.
2147         (_initialize_remote): Register qXfer:features:read.
2148         * target.h (enum target_object): Add TARGET_OBJECT_AVAILABLE_FEATURES.
2149         * features/gdb-target.dtd: New file.
2150
2151 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
2152
2153         * copyright.sh: Clarify error.
2154
2155 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2156
2157         * symtab.c (matching_bfd_sections): Fix VMA matching for
2158         prelinked objects.
2159
2160 2007-01-09  Jan Kratochvil  <jan.kratochvil@redhat.com>
2161
2162         * minsyms.c (lookup_minimal_symbol_by_pc_section): Handle
2163         nested symbols.
2164
2165 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
2166
2167         Updated copyright notices for most files.
2168
2169 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
2170
2171         * copyright.sh (prunes): Add step-line.inp and step-line.c.
2172
2173 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
2174
2175         * configure.ac (DEBUGDIR_RELOCATABLE): Define for debugdir inside
2176         exec_prefix.
2177         (TARGET_SYSTEM_ROOT_RELOCATABLE): Allow for exec_prefix being
2178         '${prefix}'.
2179         * configure, config.in: Regenerate.
2180         * defs.h (debug_file_directory): Declare.
2181         * main.c (captured_main): Canonicalize gdb_sysroot.  Assume
2182         TARGET_SYSTEM_ROOT is defined.  Initialize debug_file_directory and
2183         relocate it if DEBUGDIR_RELOCATABLE.
2184         * symfile.c (debug_file_directory): Make non-static.
2185         (find_separate_debug_file): Look for debug info for SYSROOT/PATH
2186         in DEBUGDIR/PATH if DEBUGDIR is inside SYSROOT.
2187         (_initialize_symfile): Don't initialize debug_file_directory here.
2188
2189 2007-01-09  Jim Blandy  <jimb@codesourcery.com>
2190
2191         * score-tdep.c (score_push_dummy_call): Don't mix declarations and
2192         statements.
2193
2194 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
2195
2196         * alpha-mdebug-tdep.c (alpha_mdebug_frame_prev_register): Use
2197         frame_unwind_register to recurse.
2198         * alpha-tdep.c (alpha_sigtramp_frame_prev_register): Likewise.
2199         (alpha_heuristic_frame_prev_register): Likewise.
2200         * h8300-tdep.c (h8300_frame_prev_register): Likewise.
2201         * m32c-tdep.c (m32c_prev_register): Likewise.
2202         * frame.c (frame_register_unwind_location): Remove FIXME.
2203
2204 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
2205             Eli Zaretskii  <eliz@gnu.org>
2206
2207         * copyright.sh: New file.
2208
2209 2007-01-09  Daniel Jacobowitz  <dan@codesourcery.com>
2210
2211         * configure.ac: Check for XML_StopParser.
2212         * xml-support.c (gdb_xml_body_text): Check for an error.
2213         (gdb_xml_start_element_wrapper): Conditionalize call to XML_StopParser.
2214         (gdb_xml_end_element_wrapper): Likewise.
2215         * config.in, configure: Regenerated.
2216
2217 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
2218
2219         * varobj.c (install_new_value): Always update print_value.
2220         (value_get_print_value): Immediately return NULL for missing
2221         values.
2222
2223 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
2224
2225         * configure.ac: Tighten pattern for extracting value of
2226         DEPRECATED_TM_FILE from the target makefile fragment.
2227         * configure: Regenerated.
2228
2229 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
2230
2231         * linux-nat.c (struct simple_pid_list): Add status.
2232         (add_to_pid_list): Record the PID's status.
2233         (linux_record_stopped_pid): Likewise.  Make static.
2234         (pull_pid_from_list): Return the saved status.
2235         (linux_nat_handle_extended): Deleted.
2236         (linux_handle_extended_wait): Combine with linux_nat_handle_extended.
2237         Make static.  Handle non-SIGSTOP for a new thread's first signal.
2238         (flush_callback): Handle unexpected pending signals.
2239         (linux_nat_wait): Update calls to changed functions.
2240         * linux-nat.h (linux_record_stopped_pid, linux_handle_extended_wait):
2241         Remove prototypes for newly static functions.
2242
2243 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
2244
2245         * gdbarch.sh (value_from_register): New gdbarch function.
2246         * gdbarch.c, gdbarch.h: Regenerate.
2247         * findvar.c (default_value_from_register): New function.
2248         (value_from_register): Use gdbarch_value_from_register.
2249         * value.h (default_value_from_register): Declare.
2250         * spu-tdep.c (spu_convert_register_p, spu_register_to_value,
2251         spu_value_to_register): Remove.
2252         (spu_value_from_register): New function.
2253         (spu_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2254         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2255         Call set_gdbarch_value_from_register.
2256         * s390-tdep.c (s390_convert_register_p, s390_register_to_value,
2257         s390_value_to_register): Remove.
2258         (s390_value_from_register): New function.
2259         (s390_gdbarch_init): Do not call set_gdbarch_convert_register_p,
2260         set_gdbarch_register_to_value, set_gdbarch_value_to_register.
2261         Call set_gdbarch_value_from_register.
2262
2263 2007-01-08  Daniel Jacobowitz  <dan@codesourcery.com>
2264
2265         * NEWS: Add "set sysroot" and "show sysroot".
2266         * solib.c (solib_absolute_prefix): Delete.  Replace
2267         all uses with gdb_sysroot.
2268         (_initialize_solib): Add "set sysroot" and "show sysroot".
2269         Make "solib-absolute-prefix" an alias to it.
2270
2271 2007-01-08  Ulrich Weigand  <uweigand@de.ibm.com>
2272
2273         * frame.c (get_frame_register_bytes): New function.
2274         (put_frame_register_bytes): Likewise.
2275         * frame.h (get_frame_register_bytes): Declare.
2276         (put_frame_register_bytes): Likewise.
2277         * findvar.c (value_from_register): Always construct lval_register
2278         values.  Use get_frame_register_bytes.
2279         * valops.c (value_assign): Use get_frame_register_bytes and
2280         put_frame_register_bytes.
2281
2282 2007-01-08  Jim Blandy  <jimb@codesourcery.com>
2283
2284         * MAINTAINERS: Update Stan Shebs' email address.
2285
2286 2007-01-07  Joel Brobecker  <brobecker@adacore.com>
2287
2288         * ada-lang.c (is_known_support_routine): Improve the implementation.
2289
2290 2007-01-06  Joel Brobecker  <brobecker@adacore.com>
2291
2292         * ada-lang.c: Add include of source.h.
2293         (is_known_support_routine): Improve the check verifying that the file
2294         associated to this frame exists.
2295         * Makefile.in (ada-lang.o): Add dependency on source.h.
2296
2297 2007-01-07  Jim Blandy  <jimb@codesourcery.com>
2298
2299         * ax-general.c (ax_const_l): Select proper opcode for the given
2300         value.
2301
2302 2007-01-05  Vladimir Prus  <vladimir@codesourcery.com>
2303
2304         * varobj.c (c_value_of_root): Don't select frame if variable
2305         object is out of scope.
2306
2307 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
2308
2309         * varobj.c (struct varobj): New member print_value.
2310         (install_new_value): Compare last printed value with current one
2311         instead of contents.
2312         (new_variable): Initialize var->print_value to NULL.
2313         (free_variable): Free var->print_value.
2314         (value_get_print_value): New function derived from
2315         c_value_of_variable.
2316         (c_value_of_variable): Use value_get_print_value.
2317
2318 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
2319
2320         * i386-tdep.c (i386_analyze_stack_align): Add comment.
2321
2322 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
2323
2324         * NEWS: Add entries for new catch commands.
2325
2326 2007-01-05  Joel Brobecker  <brobecker@adacore.com>
2327
2328         * dwarf2read.c (partial_die_info): Add field has_byte_size.
2329         (add_partial_symbol): Correct identification of external references.
2330         (process_structure_scope): Likewise.
2331         (read_partial_die): Handle DW_AT_byte_size attribute.
2332
2333 2007-01-05  Daniel Jacobowitz  <dan@codesourcery.com>
2334
2335         * xml-support.c (gdb_xml_end_element): Remove wrong backslashes.
2336
2337 2007-01-05  Nick Roberts  <nickrob@snap.net.nz>
2338
2339         * varobj.c (get_type_deref): Fix variable objects for references to
2340         pointers.
2341
2342 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
2343
2344         * symtab.c (find_pc_sect_psymtab): Add comments.  Handle psymtabs
2345         with no symbols.
2346
2347 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
2348
2349         * memory-map.c (struct_memory_map_parsing_data): Remove most
2350         members.  Make property_name an array.
2351         (free_memory_map_parsing_data, memory_map_start_element)
2352         (memory_map_end_element, memory_map_character_data): Delete.
2353         (memory_map_start_memory, memory_map_end_memory)
2354         (memory_map_start_property, memory_map_end_property): New functions.
2355         (property_attributes, memory_children, memory_type_enum)
2356         (memory_attributes, memory_map_children, memory_map_elements): New.
2357         (parse_memory_map): Rewrite.
2358         * xml-support.c (debug_xml): New.
2359         (xml_get_required_attribute, xml_get_integer_attribute)
2360         (xml_get_enum_value, free_xml_parser, make_cleanup_free_xml_parser):
2361         Delete.
2362         (struct scope_level, struct gdb_xml_parser, gdb_xml_body_text)
2363         (gdb_xml_debug, gdb_xml_error, gdb_xml_values_cleanup)
2364         (gdb_xml_start_element, gdb_xml_start_element_wrapper)
2365         (gdb_xml_end_element, gdb_xml_end_element_wrapper, gdb_xml_cleanup)
2366         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse)
2367         (gdb_xml_parse_ulongest, gdb_xml_parse_attr_ulongest)
2368         (gdb_xml_parse_attr_enum, show_debug_xml, _initialize_xml_support):
2369         New.
2370         * xml-support.h (struct gdb_xml_value, gdb_xml_attribute_handler)
2371         (enum gdb_xml_attribute_flag, struct gdb_xml_attribute)
2372         (enum gdb_xml_element_flag, struct gdb_xml_element)
2373         (gdb_xml_element_start_handler, gdb_xml_element_end_handler)
2374         (struct gdb_xml_enum): New.
2375         (gdb_xml_create_parser_and_cleanup, gdb_xml_parse, gdb_xml_debug)
2376         (gdb_xml_error, gdb_xml_parse_attr_ulongest)
2377         (gdb_xml_parse_attr_enum, gdb_xml_parse_ulongest): New prototypes.
2378         (xml_get_required_attribute, xml_get_integer_attribute)
2379         (xml_get_enum_value, make_cleanup_free_xml_parser): Delete prototypes.
2380         * Makefile.in (xml_support_h, xml-support.o): Update.
2381
2382 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
2383
2384         * Makefile.in (eval.o): Update dependencies.
2385         * eval.c: Include "ui-out.h" and "exceptions.h".
2386         (evaluate_subexp_standard): Use TRY_CATCH around value_of_variable.
2387         Use value_zero if an error occurs when avoiding side effects.
2388         * varobj.c (c_value_of_root): Initialize new_val.
2389
2390 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
2391
2392         * varobj.c (varobj_list_children): Stop if the number of children is
2393         unknown.
2394         (c_number_of_children):
2395
2396 2007-01-04  Mark Kettenis  <kettenis@gnu.org>
2397
2398         * alpha-tdep.c (alpha_register_name): Use ARRAY_SIZE.
2399         (alpha_read_insn, alpha_skip_prologue, alpha_heuristic_proc_start)
2400         (alpha_heuristic_frame_unwind_cache, alpha_next_pc)
2401         (alpha_gdbarch_init): Use ALPHA_INSN_SIZE, ALPHA_REGISTER_SIZE and
2402         sizeof, instead of hardcoded constants.
2403
2404 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
2405
2406         * CONTRIBUTE: Use sourceware.org.
2407
2408 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
2409
2410         * buildsym.c (start_subfile): Handle producer.
2411         (record_producer): New function.
2412         * buildsym.h (struct subfile): Include producer.
2413         (record_producer): New prototype.
2414         * dwarf2-frame.c (struct dwarf2_cie): Add version and augmentation.
2415         (struct dwarf2_frame_state): Add armcc_cfa_offsets_sf and
2416         armcc_cfa_offsets_reversed.
2417         (execute_cfa_program): Handle armcc_cfa_offsets_sf.
2418         (dwarf2_frame_find_quirks): New function.
2419         (dwarf2_frame_cache): Call it.  Handle armcc_cfa_offsets_reversed.
2420         (decode_frame_entry_1): Record the CIE version.  Record the
2421         augmentation.  Skip armcc augmentations.
2422         * dwarf2read.c (read_file_scope): Save the producer.
2423         * symtab.h (struct symtab): Rename unused version member to
2424         producer.
2425
2426 2007-01-04  Daniel Jacobowitz  <dan@codesourcery.com>
2427
2428         * configure.ac (build_warnings): Use -Wall and
2429         -Wdeclaration-after-statement.
2430         * configure: Regenerated.
2431
2432 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
2433
2434         Simplify access to variours properties of child
2435         variable objects in C.
2436         * varobj.c (value_struct_element_index): New function.
2437         (c_describe_child): New function.
2438         (c_name_of_child, c_value_of_child)
2439         (c_type_of_child): Rewrite to use c_describe_child.
2440
2441 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
2442
2443         gdb/
2444         * varobj.c: Include "vec.h". 
2445         (varobj_p): New typedef, declare vector of those.
2446         (struct varobj): Use vector for the 'children' member.
2447         (child_exists): Remove.
2448         (save_child_in_parent): Remove.
2449         (remove_child_from_parent): Remove.
2450         (struct varobj_child): Remove.
2451         (struct vstack): Remove.
2452         (vpush, vpop): Remove.
2453         (varobj_list_children): Adjust to work work vector.
2454         (varobj_update): Likewise. Use vectors for
2455         working stack and result.
2456         (delete_variable_1): Likewise.
2457         * Makefile.in (varobj.o): Update dependencies.
2458
2459 2007-01-04  Vladimir Prus  <vladimir@codesourcery.com>
2460
2461         Port from Apple's version.
2462         gdb/
2463         * varobj.c (type_changeable): Rename to...
2464         (varobj_value_is_changeable_p): ...this. Adjust all callers.
2465         (is_root_p): New function. Use it everywhere.
2466
2467 2007-01-04  Jim Blandy  <jimb@codesourcery.com>
2468
2469         * glibc-tdep.c (glibc_skip_solib_resolver): Look for '_dl_fixup',
2470         then plain 'fixup'.
2471
2472 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
2473
2474         * hpread.c (hpread_start_psymtab): Remove unnecessary extern.
2475
2476 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
2477
2478         * hpread.c (hpread_type_lookup): Fix compilation failure.
2479
2480 2007-01-04  Qinwei  <qinwei@sunnorth.com.cn>
2481
2482         * NEWS: New port to S+core.
2483         * MAINTAINERS (Write After Approval, Responsible Maintainers):
2484         Add myself.
2485
2486         * Makefile.in: Add dependencies for S+core files.
2487         * configure.tgt (score*, score-*-*): Add S+core target.
2488         * config/score/embed.mt: New file.
2489         * score-tdep.c: New file.
2490         * score-tdep.h: New file.
2491
2492 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
2493
2494         * ada-lang.c (ada_evaluate_subexp) [OP_TYPE]: Return a value with
2495         the appropriate type rather than a bogus void type.
2496
2497 2007-01-04  Joel Brobecker  <brobecker@adacore.com>
2498
2499         * ada-lang.h (ada_find_printable_frame): Remove.
2500         (ada_exception_catchpoint_p, ada_decode_exception_location)
2501         (ada_decode_assert_location): Add declaration.
2502         * ada-lang.c: Add include of annotate.h and valprint.h.
2503         (exception_catchpoint_kind): New enum.
2504         (function_name_from_pc, is_known_support_routine)
2505         (ada_find_printable_frame, ada_unhandled_exception_name_addr)
2506         (ada_exception_name_addr_1, ada_exception_name_addr)
2507         (print_it_exception, print_one_exception, print_mention_exception)
2508         (print_it_catch_exception, print_one_catch_exception)
2509         (print_mention_catch_exception, catch_exception_breakpoint_ops)
2510         (print_it_catch_exception_unhandled)
2511         (print_one_catch_exception_unhandled)
2512         (print_mention_catch_exception_unhandled, print_it_catch_assert)
2513         (print_one_catch_assert, print_mention_catch_assert)
2514         (ada_exception_catchpoint_p, error_breakpoint_runtime_sym_not_found)
2515         (ada_get_next_arg, catch_ada_exception_command_split)
2516         (ada_exception_sym_name, ada_exception_sym_name)
2517         (ada_exception_breakption_ops, ada_exception_catchpoint_cond_string)
2518         (ada_parse_catchpoint_condition, ada_exception_sal)
2519         (ada_decode_exception_location)
2520         (ada_decode_assert_location): New function.
2521         (catch_exception_unhandled_breakpoint_ops): New global variable.
2522         (catch_assert_breakpoint_ops): New global variable.
2523         * breakpoint.c: Add include of ada-lang.h.
2524         (print_one_breakpoint): Do not print the condition for Ada
2525         exception catchpoints.
2526         (create_ada_exception_breakpoint): New function.
2527         (catch_ada_exception_command, catch_assert_command): New function.
2528         (catch_command_1): Add support for the new "catch exception" and
2529         "catch assert" commands.
2530         (_initialize_breakpoint): Add help description for the new catch
2531         commands.
2532         * Makefile.in (ada-lang.o): Add dependency on annotate.h and
2533         valprint.h.
2534         (breakpoint.o): Add dependency on ada-lang.h.
2535
2536 2007-01-03  Pedro Alves  <pedro_alves@portugalmail.pt>
2537
2538         * coffread.c (cs_to_section): If bfd_section is found, always
2539         return its section index.
2540         (coff_symtab_read): Determine the minimal_symbol_type using the
2541         bfd_section flags.
2542
2543 2007-01-03  Jan Kratochvil  <jan.kratochvil@redhat.com>
2544             Daniel Jacobowitz  <dan@codesourcery.com>
2545
2546         * Makefile.in (top.o): Update.
2547         * top.c (gdb_readline_wrapper_done, gdb_readline_wrapper_result)
2548         (saved_after_char_processing_hook, gdb_readline_wrapper_line)
2549         (struct gdb_readline_wrapper_cleanup, gdb_readline_wrapper_cleanup):
2550         New.
2551         (gdb_readline_wrapper): Rewrite to use asynchronous readline.
2552
2553 2007-01-03  Mark Kettenis  <kettenis@gnu.org>
2554
2555         * arm-linux-tdep.c (arm_linux_extract_return_value): Remove.
2556         (arm_linux_init_abi): Don't set deprecated_extract_return_value.
2557
2558 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
2559
2560         * ada-lang.c (find_struct_field): Initialize *byte_offset_p.
2561         * breakpoint.c (do_enable_breakpoint): Ignore both mem_cnt and i.
2562         * c-typeprint.c (c_type_print_varspec_suffix): Don't test length
2563         greater than or equal to zero.
2564         * m2-typeprint.c (m2_array): Likewise.
2565         * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2566         * gdbtypes.c (copy_type_recursive): Correct == typo.
2567         * i386-tdep.c (i386_skip_prologue): Remove stray semicolon.
2568         * linux-nat.c (linux_nat_info_proc_cmd): Don't compare a pointer
2569         greater than zero.
2570         * macroscope.c (sal_macro_scope): Don't name a local variable "main".
2571         (default_macro_scope): Remove unused variable.
2572         * prologue-value.h (pv_area_find_reg): Don't name an argument
2573         "register".
2574         * remote-fileio.c (remote_fio_func_map): Add missing braces.
2575         * remote.c (sigint_remote_twice_token, sigint_remote_token): Change
2576         type.
2577         (cleanup_sigint_signal_handler): Remove casts.
2578         * valprint.c (val_print): Use a volatile local for the modified
2579         argument.
2580         * varobj.c (languages): Remove extra array dimension.
2581         (varobj_create): Correct access to languages array.
2582         * mi/mi-cmd-break.c (mi_cmd_break_insert, mi_cmd_break_watch): Add
2583         missing braces.
2584         * mi/mi-cmd-disas.c (mi_cmd_disassemble): Likewise.
2585         * mi/mi-cmd-env.c (mi_cmd_env_path, mi_cmd_env_dir): Likewise.
2586         * mi/mi-getopt.c (mi_valid_noargs): Likewise.
2587         * mi/mi-main.c (mi_cmd_data_read_memory): Likewise.
2588         (mi_cmd_data_write_memory): Likewise.
2589         * signals/signals.c (target_signal_to_string): Cast to int before
2590         comparing.
2591         * tui/tui-layout.c (init_and_make_win): Take and return a void *.
2592         Update all callers.
2593
2594 2007-01-03  Daniel Jacobowitz  <dan@codesourcery.com>
2595
2596         * NEWS: Mention pointer to member improvements.
2597         * Makefile.in (gnu-v3-abi.o): Delete special rule.
2598         (eval.o, gnu-v3-abi.o, ia64-tdep.o): Update.
2599         * ada-valprint.c (ada_print_scalar): Update for new type codes.
2600         * c-typeprint.c (c_print_type): Update for new type codes.
2601         (c_type_print_varspec_prefix, c_type_print_varspec_suffix)
2602         (c_type_print_base): Likewise.
2603         (c_type_print_args): Rewrite.
2604         * c-valprint.c (c_val_print): Update for new type codes.  Remove
2605         support for references to members.  Treat methods like functions.
2606         * cp-abi.c (cplus_print_method_ptr, cplus_method_ptr_size)
2607         (cplus_make_method_ptr, cplus_method_ptr_to_value): New.
2608         * cp-abi.h (cplus_print_method_ptr, cplus_method_ptr_size)
2609         (cplus_make_method_ptr, cplus_method_ptr_to_value): New prototypes.
2610         (struct cp_abi_ops): Add corresponding members.
2611         * cp-valprint.c (cp_print_class_method): Delete.
2612         (cp_find_class_member): New function.
2613         (cp_print_class_member): Use it.  Simplify support for bogus
2614         member pointers.
2615         * dwarf2read.c (quirk_gcc_member_function_pointer): Use
2616         lookup_methodptr_type.
2617         (read_tag_ptr_to_member_type): Likewise, and lookup_memberptr_type.
2618         * eval.c (evaluate_subexp_standard): Implement EVAL_SKIP for
2619         OP_SCOPE.  Update call to value_aggregate_elt.  Rewrite member
2620         pointer support.
2621         (evaluate_subexp_for_address): Handle OP_SCOPE explicitly.  Handle
2622         references returned by user defined operators.
2623         * f-typeprint.c (f_print_type, f_type_print_varspec_prefix)
2624         (f_type_print_varspec_suffix): Remove support for member pointers.
2625         * gdbtypes.c (lookup_memberptr_type): Renamed from lookup_member_type
2626         and adjusted.
2627         (smash_to_memberptr_type): Likewise, from smash_to_member_type.
2628         (lookup_methodptr_type): New.
2629         (rank_one_type): Adjust for TYPE_CODE_MEMBERPTR.
2630         (recursive_dump_type): Update for new types.
2631         * gdbtypes.h (enum type_code): Replace TYPE_CODE_MEMBER with
2632         TYPE_CODE_MEMBERPTR and TYPE_CODE_METHODPTR.
2633         (lookup_memberptr_type, lookup_methodptr_type)
2634         (smash_to_memberptr_type): New prototypes.
2635         (smash_to_method_type): Formatting fix.
2636         (lookup_member_type, smash_to_member_type): Delete prototypes.
2637         * gnu-v3-abi.c (gnuv3_get_vtable, gnuv3_get_virtual_fn): New.
2638         Do not rely on debug information for the vptr or the method's
2639         enclosing type.  Handle function descriptors for IA64.
2640         (gnuv3_virtual_fn_field): Rewrite using the new functions.
2641         (gnuv3_find_method_in, gnuv3_print_method_ptr)
2642         (gnuv3_method_ptr_size, gnuv3_make_method_ptr)
2643         (gnuv3_method_ptr_to_value): New.
2644         (init_gnuv3_ops): Set new members of gnu_v3_abi_ops.
2645         * hpread.c (hpread_type_lookup): Update for new types.
2646         * infcall.c (value_arg_coerce): Likewise.
2647         * m2-typeprint.c (m2_print_type): Remove explicit support
2648         for member pointers.
2649         * m2-valprint.c (m2_val_print): Likewise.
2650         * p-typeprint.c (pascal_type_print_varspec_prefix)
2651         (pascal_type_print_varspec_suffix, pascal_type_print_base): Likewise.
2652         * p-valprint.c (pascal_val_print): Likewise.
2653         (pascal_object_print_class_method, pascal_object_print_class_member):
2654         Delete.
2655         * p-lang.h (pascal_object_print_class_method)
2656         (pascal_object_print_class_member): Delete prototypes.
2657         * stabsread.c (read_type): Update for new types.
2658         * typeprint.c (print_type_scalar): Likewise.
2659         * valops.c (value_struct_elt_for_reference, value_namespace_elt)
2660         (value_maybe_namespace_elt, value_aggregate_elt): Add want_address
2661         argument.  Construct a pointer to member if the address of a
2662         function or data member is requested.
2663         (value_cast_pointers): Don't modify the input value.
2664         (value_cast): Adjust pointer to member handling for new types.
2665         Allow null pointer to member constants.  Don't modify the input
2666         value.
2667         (value_ind): Remove pointer to member check.  Handle function
2668         descriptors for function pointers.
2669         (value_struct_elt, value_find_oload_method_list, check_field):
2670         Remove pointer to member checks.
2671         * value.c (unpack_long): Allow pointers to data members.
2672         (value_from_longest): Allow member pointers.
2673         * value.h (value_aggregate_elt): Add want_address.
2674         * varobj.c (c_variable_editable): Remove check for members.
2675         * gdbarch.sh: Add vtable_function_descriptors and vbit_in_delta.
2676         * ia64-tdep.c (ia64_convert_from_func_ptr_addr): Handle descriptors
2677         in virtual tables.
2678         (ia64_gdbarch_init): Call set_gdbarch_vtable_function_descriptors.
2679         * c-lang.h (cp_print_class_method): Delete prototype.
2680         * arm-tdep.c (arm_gdbarch_init): Call set_gdbarch_vbit_in_delta.
2681         * mips-tdep.c (mips_gdbarch_init): Likewise.
2682         * gdbarch.c, gdbarch.h: Regenerated.
2683
2684 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
2685
2686         * rs6000-tdep.c (rs6000_use_struct_convention)
2687         (rs6000_extract_return_value, rs6000_store_return_value)
2688         (rs6000_extract_struct_value_address): Remove.
2689         (rs6000_return_value): New function.
2690         (rs6000_gdbarch_init): Don't set deprecated_extract_return_value,
2691         store_return_value, deprecated_extract_struct_value_address and
2692         deprecated_use_struct_convention.  Use rs6000_return_value
2693         instead.
2694
2695 2007-01-02  Nick Roberts  <nickrob@snap.net.nz>
2696
2697         * mi/mi-cmds.c (mi_cmds): Remove entries for -display-delete,
2698         -display-disable, -display-enable, -display-insert and
2699         -display-list.
2700
2701 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
2702
2703         * breakpoint.c (remove_breakpoint): Remove dead code.
2704
2705 2007-01-01  Nick Roberts  <nickrob@snap.net.nz>
2706
2707         * varobj.c: Include block.h.
2708         (c_value_of_root): Check scope within nested statements.
2709
2710 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
2711
2712         * mi/mi-main.c (mi_cmd_data_write_register_values): Use
2713         regcache_cooked_write_signed instead of
2714         deprecated_write_register_bytes.
2715
2716 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
2717
2718         * config/djgpp/fnchange.lst: Add entry for ChangeLog-2006.
2719
2720 2007-01-01  Joel Brobecker  <brobecker@adacore.com>
2721
2722         Followed the Start of New Year Procedure:
2723         * ChangeLog-2006: New file, containing all the entries for 2006.
2724         * ChangeLog: Removed all 2006 entries, and changed the reference
2725         to the previous ChangeLog to point to ChangeLog 2006.
2726         * top.c (print_gdb_version): Update copyright year.
2727
2728 2007-01-01  Mark Kettenis  <kettenis@gnu.org>
2729
2730         * Makefile.in (remote-sds.o): Remove.
2731         * remote-sds.c: Delete.
2732
2733 For older changes see ChangeLog-2006.
2734 \f
2735 Local Variables:
2736 mode: change-log
2737 left-margin: 8
2738 fill-column: 74
2739 version-control: never
2740 End: