* MAINTAINERS: Update my info.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2008-01-29 Jim Blandy <jimb@red-bean.com>
2
3 * MAINTAINERS: Update my info.
4
5 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
6
7 Use multiple locations for hardware watchpoints.
8 This eliminates the need to traverse value chain, doing
9 various checks, in three different places.
10
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
18 directly insert it.
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
22 locations.
23 (remove_breakpoint): For hardware watchpoints, directly
24 remove location.
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
32 watchpoints.
33
34 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
35
36 Don't reset watchpoint block on solib load.
37
38 * breakpoint.c (insert_bp_location): For watchpoints,
39 recompute condition.
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.
44
45 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
46
47 * valarith.c (value_binop): Handle unsigned integer
48 division by zero.
49
50 2008-01-28 Kevin Buettner <kevinb@redhat.com>
51
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.
56
57 2008-01-28 Doug Evans <dje@google.com>
58
59 * dbxread.c (read_dbx_symtab): Fix indentation.
60 Reformat comments to 80 columns.
61 Move local var def closer to only use.
62
63 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
64
65 * fork-child.c (SHELL_FILE): Remove #ifndef.
66 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
67
68 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
69
70 * i386-tdep.c (i386_skip_noop): New function.
71 (i386_analyze_prologue): Call i386_skip_noop function.
72
73 2008-01-24 Michael Snyder <msnyder@specifix.com>
74
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.
78
79 2008-01-24 Pedro Alves <pedro@codesourcery.com>
80
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.
83
84 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
85
86 * remote.c (remote_wait): Handle SIGINT between packets.
87 (remote_async_wait): Likewise.
88
89 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
90 Chris Demetriou <cgd@google.com>
91
92 * thread.c (add_thread_silent): Renamed
93 from add_thread.
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.
118
119 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
120
121 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
122
123 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
124
125 * breakpoint.c (break_command_really): New parameter
126 ignore_count.
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.
131
132 2008-01-21 Kevin Buettner <kevinb@redhat.com>
133
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'.
137
138 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
139
140 * infrun.c (handle_inferior_event): If
141 we failed to remove breakpoints, error,
142 don't try to increment PC by hand.
143
144 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
145
146 Add NetBSD/hppa target and host support.
147
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
156 move to ...
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.
170
171 2008-01-18 Markus Deuling <deuling@de.ibm.com>
172
173 * gdbarch.sh (function_list): Add new property bits_big_endian to
174 gdbarch structure.
175 * gdbarch.{c,h}: Regenerate.
176
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.
188
189 * defs.h (BITS_BIG_ENDIAN): Remove.
190
191 2008-01-18 Markus Deuling <deuling@de.ibm.com>
192
193 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
194 function calls.
195 * m2-exp.y (yylex): Likewise.
196 * objc-exp.y (yylex): Likewise.
197
198 * defs.h (DEPRECATED_STREQN): Remove.
199
200 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
201
202 * MAINTAINERS: Update my email address.
203
204 2008-01-17 Jim Blandy <jimb@codesourcery.com>
205
206 * README: Mention gdbserver/README.
207
208 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
209
210 * valarith.c (value_binop): Handle BINOP_INTDIV
211 for unsigned and signed integers.
212
213 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
214
215 * s390-tdep.c (s390_gdbarch_init): Set default long double
216 type to 128-bit IEEE quad.
217
218 2008-01-17 Joel Brobecker <brobecker@adacore.com>
219
220 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
221
222 2008-01-16 Mark Kettenis <kettenis@gnu.org>
223
224 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
225
226 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
227 * value.c: All callers changed.
228
229 2008-01-16 Markus Deuling <deuling@de.ibm.com>
230
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.
239
240 * defs.h (DEPRECATED_STREQ): Remove.
241
242 2008-01-16 Markus Deuling <deuling@de.ibm.com>
243
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
247 call.
248 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
249 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
250 architecture.
251 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
252
253 2008-01-16 Markus Deuling <deuling@de.ibm.com>
254
255 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
256 parameter.
257 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
258
259 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
260 current_gdbarch by gdbarch. Update caller.
261
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.
268
269 2008-01-16 Markus Deuling <deuling@de.ibm.com>
270
271 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
272 Replace current_gdbarch by gdbarch. Update caller.
273
274 2008-01-16 Markus Deuling <deuling@de.ibm.com>
275
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.
281
282 2008-01-15 Michael Snyder <msnyder@specifix.com>
283
284 * corelow.c (core_xfer_partial): Comment, cut/paste error.
285
286 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
287
288 * win32-nat.c (win32_create_inferior): Restore code calling
289 CloseHandle on ProcessInformation structure.
290
291 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
292
293 * configure.ac: Check for void * as 3 argument of ptrace.
294 * configure: regenerate.
295
296 2008-01-11 Markus Deuling <deuling@de.ibm.com>
297
298 * alpha-tdep.c (alpha_heuristic_proc_start)
299 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
300 current_gdbarch by gdbarch.
301
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
304 call.
305
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.
309
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.
316
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.
321
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.
326
327 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
328 update caller. Replace current_gdbarch by gdbarch.
329
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
335 it. Update caller.
336 (M6811_TDEP): Remove.
337 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
338 architecture.
339 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
340 current_gdbarch by gdbarch. Update caller.
341
342 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
343 update caller.
344 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
345 by gdbarch.
346
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
351 parameter.
352 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
353 altivec_register_p and spe_register_p.
354
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
358 architecture.
359
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
364 architecture.
365 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
366 sparc_analyze_prologue.
367
368 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
369 parameter.
370
371 2008-01-11 Markus Deuling <deuling@de.ibm.com>
372
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.
378
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.
400
401 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
402
403 2008-01-11 Markus Deuling <deuling@de.ibm.com>
404
405 * gdbarch.sh (skip_prologue): Add gdbarch
406 as parameter.
407 * gdbarch.{c,h}: Regenerate.
408
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.
438
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.
443
444 2008-01-10 Doug Evans <dje@google.com>
445
446 * defs.h (struct continuation_arg): Fix typo in comment.
447 * target.c (target_translate_tls_address): Fix comment spelling error.
448
449 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
450
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.
459
460 2008-01-09 Joel Brobecker <brobecker@adacore.com>
461
462 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
463 (check_typedef): Likewise.
464
465 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
466
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
469 modifiers.
470
471 2008-01-08 Joel Brobecker <brobecker@adacore.com>
472
473 * dwarf2read.c (read_enumeration_type): Add comment.
474
475 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
476
477 * config.in: Regenerate.
478
479 2008-01-08 Joel Brobecker <brobecker@adacore.com>
480
481 * ada-lang.c (ada_convert_actual): Renames convert_actual.
482 Make non-static.
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.
490
491 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
492
493 * ada-lang.c (ensure_lval): Fix value lval kind.
494 (convert_actual): Add handling for arguments passed by reference.
495
496 2008-01-08 Doug Evans <dje@google.com>
497
498 * dbxread.c (read_dbx_symtab): Fix indentation.
499
500 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
501
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.
543
544 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
545
546 Ignore change in name of dynamic linker during
547 execution on Solaris. This also unbreaks pending breakpoints.
548
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.
553
554 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
555
556 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
557 when using MS-DOS paths.
558
559 2008-01-05 Pedro Alves <pedro@codesourcery.com>
560
561 * NEWS: Mention --pid and --core command line behaviour changes.
562
563 2008-01-05 Pedro Alves <pedro@codesourcery.com>
564
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
570 arguments.
571
572 2008-01-05 Joel Brobecker <brobecker@adacore.com>
573
574 * ada-lang.c (ada_which_variant_applies): Correctly compute
575 the value of the discriminant when the variant record is packed.
576
577 2008-01-04 Joel Brobecker <brobecker@adacore.com>
578
579 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
580 that are used to differentiate homonyms.
581
582 2008-01-04 Jerome Guitton <guitton@adacore.com>
583
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
588 to packed arrays.
589
590 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
591
592 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
593
594 2008-01-04 Joel Brobecker <brobecker@adacore.com>
595
596 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
597 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
598
599 2008-01-04 Joel Brobecker <brobecker@adacore.com>
600
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"
605 expressions.
606
607 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
608
609 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
610 of SYMBOL_VALUE when working with function symbols.
611
612 2008-01-03 Joel Brobecker <brobecker@adacore.com>
613
614 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
615 expressions. These expressions do not need to be rewriten.
616
617 2008-01-03 Joel Brobecker <brobecker@adacore.com>
618
619 * dwarf2read.c (read_enumeration_type): Flag type as stub if
620 the given die is a declaration.
621
622 2008-01-03 Joel Brobecker <brobecker@adacore.com>
623
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.
629
630 2008-01-03 Joel Brobecker <brobecker@adacore.com>
631
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.
639
640 2008-01-03 Jerome Guitton <guitton@adacore.com>
641
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
646 for the tag.
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.
652
653 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
654
655 * doublest.c (convert_floatformat_to_doublest): Call
656 floatformat_to_doublest instead of floatformat_to_double and use
657 DOUBLEST variables.
658 (convert_doublest_to_floatformat): Call floatformat_from_doublest
659 instead of floatformat_from_double and use DOUBLEST variables.
660
661 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
662
663 * MAINTAINERS (Write After Approval): Add self.
664
665 2008-01-03 Joel Brobecker <brobecker@adacore.com>
666
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.
672
673 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
674
675 * eval.c (evaluate_subexp_for_address): Provide frame address to
676 locate_var_value only if it will be needed.
677
678 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
679
680 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
681
682 2008-01-02 Joel Brobecker <brobecker@adacore.com>
683
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.
689
690 2008-01-02 Joel Brobecker <brobecker@adacore.com>
691
692 * ada-lang.c (ada_value_equal): Dereference reference types when
693 comparing arrays.
694
695 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
696
697 Updated copyright notices for most files.
698
699 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
700
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
705 appropriate.
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
708 !__CYGWIN__.
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
711 here.
712
713 2008-01-01 Joel Brobecker <brobecker@adacore.com>
714
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
719 description.
720
721 2008-01-01 Joel Brobecker <brobecker@adacore.com>
722
723 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
724 and always print the dereferenced value.
725
726 2008-01-01 Joel Brobecker <brobecker@adacore.com>
727
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.
731
732 2008-01-01 Joel Brobecker <brobecker@adacore.com>
733
734 Implement support for Ada interface types.
735
736 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
737 (ada_is_ignored_field): Ignore fields that are a dispatch table
738 of a tagged type.
739
740 2008-01-01 Joel Brobecker <brobecker@adacore.com>
741
742 * top.c (print_gdb_version): Update copyright year.
743
744 2008-01-01 Joel Brobecker <brobecker@adacore.com>
745
746 * ChangeLog-2007: New ChangeLog rotation.
747 * ChangeLog: Reset for 2008.
748 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
749 ChangeLog-2007.
750
751 For older changes see ChangeLog-2007.
752 \f
753 Local Variables:
754 mode: change-log
755 left-margin: 8
756 fill-column: 74
757 version-control: never
758 coding: utf-8
759 End:
This page took 0.044273 seconds and 5 git commands to generate.