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