1 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
3 * varobj (adjust_value_for_child_access): Added checking for
4 returned value from gdb_value_ind.
5 (c_describe_child): Likewise.
6 (cplus_describe_child): Fixed a typo.
8 2008-01-29 Jim Blandy <jimb@red-bean.com>
10 * MAINTAINERS: Update my info.
12 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
14 Use multiple locations for hardware watchpoints.
15 This eliminates the need to traverse value chain, doing
16 various checks, in three different places.
18 * breakpoint.h (struct bp_location): New fields
19 lengths and watchpoint_type.
20 (struct breakpoint): Remove the val_chain field.
21 * breakpoint.c (is_hardware_watchpoint): New.
22 (free_valchain): Remove.
23 (update_watchpoint): New.
24 (insert_bp_location): For hardware watchpoint, just
26 (insert_breakpoints): Call update_watchpoint_locations
27 on all watchpoints. If we have failed to insert
28 any location of a hardware watchpoint, remove all inserted
30 (remove_breakpoint): For hardware watchpoints, directly
32 (watchpoints_triggered): Iterate over locations.
33 (bpstat_stop_status): Use only first location of
34 a resource watchpoint.
35 (delete_breakpoint): Don't call free_valchain.
36 (print_one_breakpoint): Don't print all
37 locations for watchpoints.
38 (breakpoint_re_set_one): Use update_watchpoint for
41 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
43 Don't reset watchpoint block on solib load.
45 * breakpoint.c (insert_bp_location): For watchpoints,
47 (breakpoint_re_set_one): Instead of recomputing value
48 and condition for watchpoints, just reset value and
49 let insert_breakpoints/insert_bp_location recompute it.
50 Don't do anything about disabled watchpoint.
52 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
54 * valarith.c (value_binop): Handle unsigned integer
57 2008-01-28 Kevin Buettner <kevinb@redhat.com>
59 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
60 instruction pattern that appears frequently in position
61 independent code. Fix bug in code which looks for "fmov" and
62 backtracks if no "fmov" is found.
64 2008-01-28 Doug Evans <dje@google.com>
66 * dbxread.c (read_dbx_symtab): Fix indentation.
67 Reformat comments to 80 columns.
68 Move local var def closer to only use.
70 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
72 * fork-child.c (SHELL_FILE): Remove #ifndef.
73 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
75 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
77 * i386-tdep.c (i386_skip_noop): New function.
78 (i386_analyze_prologue): Call i386_skip_noop function.
80 2008-01-24 Michael Snyder <msnyder@specifix.com>
82 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
83 * win32-nat.c (win32_xfer_partial): Ditto.
84 * target.c (default_xfer_partial): Minor whitespace adjustment.
86 2008-01-24 Pedro Alves <pedro@codesourcery.com>
88 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
89 strip bit 1 even if pc doesn't point to thumb code.
91 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
93 * remote.c (remote_wait): Handle SIGINT between packets.
94 (remote_async_wait): Likewise.
96 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
97 Chris Demetriou <cgd@google.com>
99 * thread.c (add_thread_silent): Renamed
101 (print_thread_events): New variable definition.
102 (show_print_thread_events): New function.
103 (_initialize_thread): Add "set print thread-events" and
104 "show print thread-events" commands.
105 (add_thread): Announce new thread.
106 * gdbthread.h (add_thread_silent): Declare.
107 (print_thread_events): New variable declaration.
108 * inf-ttrace.c (inf_ttrace_wait): Don't
109 inform about new thread, as add_thread is always
110 called too, and will take care of that.
111 * infrun.c (handle_inferior_event): Likewise.
112 * procfs.c (procfs_wait): Likewise.
113 * remote.c (remote_currthread): Likewise.
114 * sol-thread.c (sol_thread_wait): Likewise.
115 * win32-nat.c (get_win32_debug_event): Likewise.
116 * linux-thread-db.c (attach_thread): Likewise.
117 Remove the verbose parameter.
118 (check_event): Make detach_thread be verbose
119 only if print_thread_events is set.
120 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
121 about new thread. This is called only from
122 linux-thread-db.c:attach_thread, which will take care.
123 Remove the verbose parameter.
124 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
126 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
128 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
130 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
132 * breakpoint.c (break_command_really): New parameter
134 (break_command_1): Pass 0 as
135 ignore_count to break_command_really.
136 (gdb_breakpoint): Pass ignore_count to
137 break_command_really.
139 2008-01-21 Kevin Buettner <kevinb@redhat.com>
141 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
142 sigcontext struct via pointer.
143 (struct sigframe comment): Update to show new field `psc'.
145 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
147 * infrun.c (handle_inferior_event): If
148 we failed to remove breakpoints, error,
149 don't try to increment PC by hand.
151 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
153 Add NetBSD/hppa target and host support.
155 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
156 (hppabsd_gregset): Move to ...
157 (hppabsd_regset_from_core_section): Rename
158 hppaobsd_regset_from_core_section and move to ...
159 (hppabsd_find_global_pointer): Update comment.
160 (hppabsd_init_abi): Make global. Do not register
161 hppabsd_regset_from_core_section.
162 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
164 (_initialize_hppabsd_tdep): Move to ...
165 * hppaobsd-tdep.c: ... here. New file.
166 * hppnbsd-tdep.c: New file.
167 * hppnbsd-nat.c: New file.
168 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
169 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
170 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
171 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
172 * configure.host (hppa*-*-netbsd*): New entry.
173 * configure.tgt (hppa*-*-netbsd*): New entry.
174 (hppa*-*-openbsd*): Update.
175 * NEWS (New native configuration): Mention NetBSD/hppa.
176 (New targets): Mention NetBSD/hppa.
178 2008-01-18 Markus Deuling <deuling@de.ibm.com>
180 * gdbarch.sh (function_list): Add new property bits_big_endian to
182 * gdbarch.{c,h}: Regenerate.
184 * value.c (struct value): Replace BITS_BIG_ENDIAN by
185 gdbarch_bits_big_endian (comment).
186 (unpack_field_as_long, modify_field): Likewise.
187 * value.h: Likewise (comment).
188 * valops.c (value_slice): Likewise.
189 * valarith.c (value_subscript, value_bit_index): Likewise.
190 * gdbtypes.h (field): Likewise (comment).
191 * eval.c (evaluate_subexp_standard): Likewise.
192 * dwarf2read.c (dwarf2_add_field): Likewise.
193 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
194 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
196 * defs.h (BITS_BIG_ENDIAN): Remove.
198 2008-01-18 Markus Deuling <deuling@de.ibm.com>
200 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
202 * m2-exp.y (yylex): Likewise.
203 * objc-exp.y (yylex): Likewise.
205 * defs.h (DEPRECATED_STREQN): Remove.
207 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
209 * MAINTAINERS: Update my email address.
211 2008-01-17 Jim Blandy <jimb@codesourcery.com>
213 * README: Mention gdbserver/README.
215 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
217 * valarith.c (value_binop): Handle BINOP_INTDIV
218 for unsigned and signed integers.
220 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
222 * s390-tdep.c (s390_gdbarch_init): Set default long double
223 type to 128-bit IEEE quad.
225 2008-01-17 Joel Brobecker <brobecker@adacore.com>
227 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
229 2008-01-16 Mark Kettenis <kettenis@gnu.org>
231 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
233 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
234 * value.c: All callers changed.
236 2008-01-16 Markus Deuling <deuling@de.ibm.com>
238 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
239 DEPRECATED_STREQ by its expression.
240 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
241 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
242 (scan_xcoff_symtab): Likewise.
243 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
244 * f-lang.c (find_common_for_function): Likewise.
245 * objc-exp.y (parse_number): Likewise.
247 * defs.h (DEPRECATED_STREQ): Remove.
249 2008-01-16 Markus Deuling <deuling@de.ibm.com>
251 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
252 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
253 get_frame_arch to get at the current_architecture. Update AM33_MODE
255 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
256 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
258 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
260 2008-01-16 Markus Deuling <deuling@de.ibm.com>
262 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
264 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
266 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
267 current_gdbarch by gdbarch. Update caller.
269 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
270 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
271 the current architecture. Update calls of
272 amd64_native_gregset_supplies_p.
273 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
274 (amd64bsd_store_inferior_registers): Likewise.
276 2008-01-16 Markus Deuling <deuling@de.ibm.com>
278 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
279 Replace current_gdbarch by gdbarch. Update caller.
281 2008-01-16 Markus Deuling <deuling@de.ibm.com>
283 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
284 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
285 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
286 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
287 (stabsect_build_psymtabs): Fix indentation.
289 2008-01-15 Michael Snyder <msnyder@specifix.com>
291 * corelow.c (core_xfer_partial): Comment, cut/paste error.
293 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
295 * win32-nat.c (win32_create_inferior): Restore code calling
296 CloseHandle on ProcessInformation structure.
298 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
300 * configure.ac: Check for void * as 3 argument of ptrace.
301 * configure: regenerate.
303 2008-01-11 Markus Deuling <deuling@de.ibm.com>
305 * alpha-tdep.c (alpha_heuristic_proc_start)
306 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
307 current_gdbarch by gdbarch.
309 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
310 current architecture by frame_info. Update alpha_heuristic_proc_start
313 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
314 get_frame_arch to get at the current architecture by frame_info. Update
315 alpha_sigtramp_register_address call.
317 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
318 current_gdbarch by gdbarch. Update caller.
319 (convert_to_extended, convert_from_extended): Add endianess parameter
320 for comparison. Update caller.
321 (arm_extract_return_value, arm_store_return_value): Use
322 get_regcache_arch to get at the current architecture.
324 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
325 current_gdbarch by gdbarch. Update caller.
326 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
327 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
329 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
330 gdbarch as parameter. Update caller.
331 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
332 current_gdbarch by gdbarch. Update caller.
334 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
335 update caller. Replace current_gdbarch by gdbarch.
337 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
338 the current architecture. Replace current_gdbarch by gdbarch.
339 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
340 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
341 expression. Add gdbarch as parameter and replace current_gdbarch with
343 (M6811_TDEP): Remove.
344 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
346 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
347 current_gdbarch by gdbarch. Update caller.
349 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
351 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
354 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
355 caller. Relace current_gdbarch by gdbarch.
356 (altivec_register_p, spe_register_p): Likewise.
357 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
359 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
360 altivec_register_p and spe_register_p.
362 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
363 caller. Replace current_gdbarch by gdbarch.
364 (score_analyze_prologue): use get_frame_arch to get at the current
367 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
368 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
369 current_gdbarch by gdbarch. Update caller.
370 (sparc_frame_cache): Use get_frame_arch to get at the current
372 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
373 sparc_analyze_prologue.
375 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
378 2008-01-11 Markus Deuling <deuling@de.ibm.com>
380 * exec.c: #include "arch-utils.h"
381 (print_section_info): Use gdbarch_from_bfd to get at the
382 current architecture. Replace current_gdbarch. Fix indention. Replace
383 deprecated_print_address_numeric by paddress.
384 * Makefile.in (exec.o) Add dependency to arch-utils.h.
386 * valprint.c (val_print_string): Replace
387 deprecated_print_address_numeric.
388 * tracepoint.c (trace_mention, scope_info): Likewise.
389 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
390 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
391 (maintenance_check_symtabs): Likewise.
392 * symfile.c (list_overlays_command): Likewise.
393 * stack.c (frame_info, print_block_frame_labels): Likewise.
394 * printcmd.c (print_address, print_address_demangle)
395 (address_info): Likewise.
396 * corefile.c (memory_error): Likewise.
397 * infcmd.c (jump_command): Likewise.
398 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
399 (mention, delete_breakpoint): Likewise.
400 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
401 * dwarf2read.c (dump_die): Likewise.
402 * ada-valprint.c (ada_val_print_1): Likewise.
403 * f-valprint.c (f_val_print): Likewise.
404 * linux-fork.c (info_forks_command): Likewise.
405 * m32r-com.c (m32r_load_section, m32r_load)
406 (m32r_upload_command): Likewise.
408 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
410 2008-01-11 Markus Deuling <deuling@de.ibm.com>
412 * gdbarch.sh (skip_prologue): Add gdbarch
414 * gdbarch.{c,h}: Regenerate.
416 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
417 * amd64-tdep.c (amd64_skip_prologue): Likewise.
418 * avr-tdep.c (avr_skip_prologue): Likewise.
419 * cris-tdep.c (cris_skip_prologue): Likewise.
420 * frv-tdep.c (frv_skip_prologue): Likewise.
421 * h8300-tdep.c (h8300_skip_prologue): Likewise.
422 * hppa-tdep.c (hppa_skip_prologue): Likewise.
423 * i386-tdep.c (i386_skip_prologue): Likewise.
424 * ia64-tdep.c (ia64_skip_prologue): Likewise.
425 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
426 * m32r-tdep.c (m32r_skip_prologue): Likewise.
427 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
428 * m68k-tdep.c (m68k_skip_prologue): Likewise.
429 * m88k-tdep.c (m88k_skip_prologue): Likewise.
430 * mep-tdep.c (mep_skip_prologue): Likewise.
431 * mips-tdep.c (mips_skip_prologue): Likewise.
432 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
433 * mt-tdep.c (mt_skip_prologue): Likewise.
434 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
435 * score-tdep.c (score_skip_prologue): Likewise.
436 * sh64-tdep.c (sh64_skip_prologue): Likewise.
437 * sh-tdep.c (sh_skip_prologue): Likewise.
438 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
439 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
440 * spu-tdep.c (spu_skip_prologue): Likewise.
441 * v850-tdep.c (v850_skip_prologue): Likewise.
442 * vax-tdep.c (vax_skip_prologue): Likewise.
443 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
444 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
446 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
447 current_gdbarch by gdbarch.
448 * m32c-tdep.c (m32c_skip_prologue): Likewise.
449 * s390-tdep.c (s390_skip_prologue): Likewise.
451 2008-01-10 Doug Evans <dje@google.com>
453 * defs.h (struct continuation_arg): Fix typo in comment.
454 * target.c (target_translate_tls_address): Fix comment spelling error.
456 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
458 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
459 (DOUBLEST_SCAN_FORMAT): Likewise.
460 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
461 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
462 * c-exp.y (parse_number): Likewise.
463 * jv-exp.y (parse_number): Likewise.
464 * objc-exp.y (parse_number): Likewise.
465 * p-exp.y (parse_number): Likewise.
467 2008-01-09 Joel Brobecker <brobecker@adacore.com>
469 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
470 (check_typedef): Likewise.
472 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
474 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
475 seen_double_big_d, treat the new H, D, and DD modifiers as length
478 2008-01-08 Joel Brobecker <brobecker@adacore.com>
480 * dwarf2read.c (read_enumeration_type): Add comment.
482 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
484 * config.in: Regenerate.
486 2008-01-08 Joel Brobecker <brobecker@adacore.com>
488 * ada-lang.c (ada_convert_actual): Renames convert_actual.
490 (ada_convert_actuals): Delete.
491 * ada-lang.h (ada_convert_actual): Add declaration.
492 (ada_convert_actuals): Remove declaration.
493 * infcall.c: #include "ada-lang.h".
494 (value_arg_coerce): Add new parameter sp. Update function
495 documetnation. Add handling of Ada function call parameters.
496 * Makefile.in (infcall.o): Update dependencies.
498 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
500 * ada-lang.c (ensure_lval): Fix value lval kind.
501 (convert_actual): Add handling for arguments passed by reference.
503 2008-01-08 Doug Evans <dje@google.com>
505 * dbxread.c (read_dbx_symtab): Fix indentation.
507 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
509 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
510 (valarith.o): Depend on dfp.h.
511 (valops.o): Likewise.
512 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
513 (set_decnumber_context): New function.
514 (decimal_check_errors): Likewise.
515 (decimal_from_number): Likewise.
516 (decimal_to_number): Likewise.
517 (decimal_from_string): Use set_decnumber_context and
518 decimal_check_errors.
519 (decimal_from_integral): New function.
520 (decimal_from_floating): Likewise.
521 (decimal_to_double): Likewise.
522 (promote_decimal): Likewise.
523 (decimal_binop): Likewise.
524 (decimal_is_zero): Likewise.
525 (decimal_compare): Likewise.
526 (decimal_convert): Likewise.
527 * dfp.h (decimal_from_integral): New prototype.
528 (decimal_from_floating): Likewise.
529 (decimal_to_double): Likewise.
530 (decimal_binop): Likewise.
531 (decimal_is_zero): Likewise.
532 (decimal_compare): Likewise.
533 (decimal_convert): Likewise.
534 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
535 call to value_from_decfloat.
536 * valarith.c: Include dfp.h.
537 (value_args_as_decimal): New function.
538 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
539 (value_logical_not): Likewise.
540 (value_equal): Likewise.
541 (value_less): Likewise.
542 (value_pos): Likewise.
543 (value_neg): Formatting fix.
544 * valops.c: Include dfp.h.
545 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
546 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
547 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
548 (value_from_decfloat): Remove expect_type argument.
549 * value.h (value_from_decfloat): Update prototype.
551 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
553 Ignore change in name of dynamic linker during
554 execution on Solaris. This also unbreaks pending breakpoints.
556 * solist.h (struct target_so_ops): New field same.
557 * solib-svr4.c (svr4_same): New.
558 (_initialize_svr4_solib): Register svr4_same.
559 * solib.c (update_solib_list): Use ops->same, if available.
561 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
563 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
564 when using MS-DOS paths.
566 2008-01-05 Pedro Alves <pedro@codesourcery.com>
568 * NEWS: Mention --pid and --core command line behaviour changes.
570 2008-01-05 Pedro Alves <pedro@codesourcery.com>
572 * main.c (captured_main): Remove 'count' varible and the
573 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
574 --pid options were issued simultaneously. If an explicit pid
575 option was passed, don't fallback to core file. Detect extra
576 arguments better in the presence of explicit pid or core
579 2008-01-05 Joel Brobecker <brobecker@adacore.com>
581 * ada-lang.c (ada_which_variant_applies): Correctly compute
582 the value of the discriminant when the variant record is packed.
584 2008-01-04 Joel Brobecker <brobecker@adacore.com>
586 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
587 that are used to differentiate homonyms.
589 2008-01-04 Jerome Guitton <guitton@adacore.com>
591 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
592 when the type is an anonymous pointer type.
593 (ada_check_typedef): Avoid a seg fault when the type is null.
594 * ada-typeprint.c (print_array_type): Add support for pointer
597 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
599 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
601 2008-01-04 Joel Brobecker <brobecker@adacore.com>
603 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
604 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
606 2008-01-04 Joel Brobecker <brobecker@adacore.com>
608 * ada-exp.y (chop_separator): New function.
609 (write_selectors): Rewrite to re-use chop_separator.
610 (ada_nget_field_index, get_symbol_field_type): New functions.
611 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
614 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
616 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
617 of SYMBOL_VALUE when working with function symbols.
619 2008-01-03 Joel Brobecker <brobecker@adacore.com>
621 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
622 expressions. These expressions do not need to be rewriten.
624 2008-01-03 Joel Brobecker <brobecker@adacore.com>
626 * dwarf2read.c (read_enumeration_type): Flag type as stub if
627 the given die is a declaration.
629 2008-01-03 Joel Brobecker <brobecker@adacore.com>
631 * ada-lang.c (ada_array_bound_from_type): Make non-static.
632 Handle properly the case when the index type is an enumerated type.
633 Do not return the subtype of the bounds type, just return the
634 bounds type directly - this is not needed and is more consistent
635 with what we do for arrays when no XA parallel type exists.
637 2008-01-03 Joel Brobecker <brobecker@adacore.com>
639 * ada-lang.c (static_unwrap_type): Add forward declaration.
640 (template_to_static_fixed_type): Fields of dynamic types sometimes
641 also need to be unwrapped. Take this into account.
642 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
643 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
644 * ada-typeprint.c (ada_print_type): Get the typename from
645 the original type, not the base type.
647 2008-01-03 Jerome Guitton <guitton@adacore.com>
649 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
650 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
651 Update calls to ada_to_fixed_type.
652 (ada_template_to_fixed_record_type_1): Ditto, but without looking
654 (ada_to_fixed_type): Add check_tag parameter; do not look for
655 tag if null. When looking for a tag, use a fixed record type.
656 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
657 * ada-valprint.c (printable_val_type, ada_value_print): Update
658 calls to ada_to_fixed_type.
660 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
662 * doublest.c (convert_floatformat_to_doublest): Call
663 floatformat_to_doublest instead of floatformat_to_double and use
665 (convert_doublest_to_floatformat): Call floatformat_from_doublest
666 instead of floatformat_from_double and use DOUBLEST variables.
668 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
670 * MAINTAINERS (Write After Approval): Add self.
672 2008-01-03 Joel Brobecker <brobecker@adacore.com>
674 * symfile.c (set_initial_language): Make non-static.
675 * symfile.h (set_initial_language): Add declaration.
676 * language.c: #include "symfile.h".
677 (set_language): Call set_initial_language if the frame language
678 could not be determined.
680 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
682 * eval.c (evaluate_subexp_for_address): Provide frame address to
683 locate_var_value only if it will be needed.
685 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
687 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
689 2008-01-02 Joel Brobecker <brobecker@adacore.com>
691 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
692 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
693 This is needed to make sure that any other treatment applied
694 to the resulting value does not fail for spurious reason,
695 such as trying to take the address of this value.
697 2008-01-02 Joel Brobecker <brobecker@adacore.com>
699 * ada-lang.c (ada_value_equal): Dereference reference types when
702 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
704 Updated copyright notices for most files.
706 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
708 * win32-nat.c (psapi_module_handle): Remove static.
709 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
710 return first module found if base_address is zero. Don't initialize
711 psapi function pointers here. Convert to cygwin paths when
713 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
714 executable name. Use get_module_name when that fails or when
716 (_initialize_psapi): New function. Initialize psapi stuff before it is
717 needed or issue a warning if it is not found. Move psapi_module_handle
720 2008-01-01 Joel Brobecker <brobecker@adacore.com>
722 * ada-lang.c (ada_remove_trailing_digits): New function.
723 (ada_remove_po_subprogram_suffix): New function.
724 (ada_decode): Improve. Move the description of the algorithm
725 directly inside the code, instead of in the function global
728 2008-01-01 Joel Brobecker <brobecker@adacore.com>
730 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
731 and always print the dereferenced value.
733 2008-01-01 Joel Brobecker <brobecker@adacore.com>
735 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
736 of the case where the first argument is a reference.
737 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
739 2008-01-01 Joel Brobecker <brobecker@adacore.com>
741 Implement support for Ada interface types.
743 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
744 (ada_is_ignored_field): Ignore fields that are a dispatch table
747 2008-01-01 Joel Brobecker <brobecker@adacore.com>
749 * top.c (print_gdb_version): Update copyright year.
751 2008-01-01 Joel Brobecker <brobecker@adacore.com>
753 * ChangeLog-2007: New ChangeLog rotation.
754 * ChangeLog: Reset for 2008.
755 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
758 For older changes see ChangeLog-2007.
764 version-control: never