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