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