]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blob - gdb/ChangeLog
* symtab.c (symbol_set_names): Do not add an entry in the demangling
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
1 2008-02-01 Joel Brobecker <brobecker@adacore.com>
2
3 * symtab.c (symbol_set_names): Do not add an entry in the demangling
4 hash table for Ada symbols. Just store the linkage name as is,
5 and leave the demangled_name as NULL.
6
7 2007-02-01 Joel Brobecker <brobecker@adacore.com>
8
9 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
10 in the global scope.
11 (new_symbol): Likewise.
12
13 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
14
15 * breakpoint.c (break_command_1): Return void.
16 (break_command_really): Return void. Rethrow
17 exceptions instead of returning.
18 (gdb_breakpoint): Remove the error_message parameter.
19 Return void. Rename to set_breakpoint.
20 * gdb.h (gdb_breakpoint): Rename and move to...
21 * breakpoint.h (set_breakpoint): ...here.
22 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
23 event hooks even if exception is thrown. Adjust to
24 gdb_breakpoint interface changes.
25
26
27 2008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
28
29 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
30 float in both first and second word in the doubleword, to support
31 old and new ABIs.
32
33 2008-02-01 Vladimir Prus <vladimir@codesourcery.com>
34
35 Properly rethrow exception. This fixes errors
36 about non-existent functions for -break-insert.
37 * breakpoint.c (break_command_really): Use throw_exception
38 for rethrowing. If rethrowing, don't print the exception.
39
40 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
41
42 * NEWS: Mention Decimal Floating Point support.
43
44 2008-01-31 Joel Brobecker <brobecker@adacore.com>
45
46 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
47 value type to builtin_type_void_func_ptr.
48
49 2008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
50
51 * s390-tdep.c (is_float_singleton, is_float_like,
52 alignment_of, s390_return_value): Make checks for
53 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
54
55 2008-01-31 Luis Machado <luisgpm@br.ibm.com>
56 Thiago Jung Bauermann <bauerman@br.ibm.com>
57
58 * infcmd.c (default_print_registers_info): Also print hex
59 raw contents for TYPE_CODE_DECFLOAT registers.
60 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
61 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
62 (rs6000_register_name): Add support for DFP pseudo-registers.
63 (rs6000_pseudo_register_type): Likewise.
64 rs6000_pseudo_register_reggroup_p): Likewise.
65 (ppc_pseudo_register_read): New function.
66 (ppc_pseudo_register_write): Likewise.
67 (rs6000_pseudo_register_read): Likewise.
68 (rs6000_pseudo_register_write): Likewise.
69 (e500_pseudo_register_read): Move checks to
70 rs6000_pseudo_register_read.
71 (e500_pseudo_register_write): Move checks to
72 rs6000_pseudo_register_write.
73 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
74 rs6000_pseudo_register_read and rs6000_pseudo_register_write
75 in gdbarch if SPE or DFP is available. Adjust gdbarch's
76 num_pseudo_regs to account for DFP pseudo regs.
77
78 2008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
79
80 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
81 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
82 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
83 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
84 e500_pseudo_register_read, e500_pseudo_register_write): Use
85 IS_SPE_PSEUDOREG macro.
86 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
87 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
88 Remove initialization of tdep->ppc_ev31_regnum.
89
90 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
91
92 * printcmd.c (print_formatted): Handle references as for unformatted
93 prints.
94
95 2008-01-30 Joel Brobecker <brobecker@adacore.com>
96
97 * eval.c (evaluate_subexp_standard): Add handling of user
98 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
99
100 2008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
101
102 * eval.c (evaluate_subexp_standard): Support
103 BINOP_INTDIV opcode.
104
105 2008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
106
107 * valarith.c (value_binop): Add floating-point BINOP_MIN and
108 BINOP_MAX cases.
109 For BINOP_EXP, use length and signedness of left operand only for
110 result, as for shifts.
111 For integral operands to BINOP_EXP, use new integer_pow and
112 uinteger_pow functions so as to get full range of results.
113 (integer_pow): New function.
114 (uinteger_pow): New function.
115
116 2008-01-30 Vladimir Prus <vladimir@codesourcery.com>
117
118 Use vector for varobj_list_children interface.
119 * gdb/varobj.c (varobj_list_children): Return vector
120 of varobjs.
121 * gdb/varobj.h (varobj_list_children): Adjust
122 prototype.
123 (varobj_p): Declare. Declare vector thereof.
124 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
125 for varobj_list_children change.
126 * Makefile.in (varobj_h): Update dependencies.
127
128 2008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
129
130 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
131 TYPE_CODE_DECFLOAT arguments.
132 (ppc64_sysv_abi_push_dummy_call) Likewise.
133 (get_decimal_float_return_value): New function.
134 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
135 values by calling get_decimal_float_return_value.
136 (ppc64_sysv_abi_return_value): Likewise.
137
138 2008-01-30 Nick Roberts <nickrob@snap.net.nz>
139
140 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
141 for preprocessor macro information. Formatting changes.
142
143 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
144
145 * remote.c (struct remote_state): Add cached_wait_status.
146 (remote_exec_file): New variable.
147 (PACKET_vAttach, PACKET_vRun): New constants.
148 (extended_remote_restart): Do not query for status.
149 (struct start_remote_args): New.
150 (remote_start_remote): Take it as a second argument. Check
151 whether the target is running. Issue an error for non-running
152 non-extended targets. Cache the wait status. Set inferior_ptid
153 here.
154 (remote_open_1): Prompt to disconnect non-running targets. Make
155 sure the target is marked running. Do not set inferior_ptid here.
156 Update call to remote_start_remote. Do not call remote_check_symbols
157 if the target is not running.
158 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
159 argument. Handle a non-running target.
160 (remote_detach): Use it.
161 (extended_remote_detach): New.
162 (remote_disconnect): Fix typo. Use remoute_mourn_1.
163 (extended_remote_attach_1, extended_remote_attach)
164 (extended_async_remote_attach): New.
165 (remote_vcont_resume): Remove unused variable.
166 (remote_wait, remote_async_wait): Use any cached wait status.
167 (putpkt_binary, getpkt): Clear any cached wait status.
168 (extended_remoute_mourn_1): New.
169 (extended_remote_mourn): Use it.
170 (extended_async_remote_mourn, extended_remote_run): New.
171 (extended_remote_create_inferior_1): New.
172 (extended_remote_create_inferior): Use it.
173 (extended_remote_async_create_inferior): Likewise.
174 (remote_xfer_partial): Skip for non-executing targets.
175 (init_extended_remote_ops): Set to_detach and to_attach.
176 (init_extended_async_remote_ops): Likewise. Use
177 extended_async_remote_mourn.
178 (_initialize_remote): Register vAttach, vRun, and
179 set remote exec-file.
180 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
181
182 2008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
183
184 * Makefile.in (symfile.o): Update.
185 * NEWS: Mention exec tracing support.
186 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
187 exec events.
188 * infcmd.c (kill_if_already_running, detach_command)
189 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
190 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
191 (follow_exec): Do not check may_follow_exec. Do not mourn and push
192 targets. Apply the sysroot path to the loaded executable. Use
193 no_shared_libraries.
194 * linux-nat.c (linux_child_follow_fork): Print fork following
195 messages if verbose.
196 (kill_wait_callback): Kill again before waiting a second time.
197 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
198 no_shared_libraries.
199
200 2008-01-29 Joel Brobecker <brobecker@adacore.com>
201
202 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
203
204 2008-01-29 Joel Brobecker <brobecker@adacore.com>
205
206 * nto-tdep.h: Remove #include "defs.h".
207 * nto-tdep.c: Add #include "defs.h".
208 * Makefile.in (nto_tdep_h): Update dependencies.
209 (nto-tdep.o): Likewise.
210
211 2008-01-29 Joel Brobecker <brobecker@adacore.com>
212
213 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
214 and use it.
215 (proceed, start_remote): Update call to wait_for_inferior.
216 * inferior.h (wait_for_inferior): Update declaration.
217 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
218 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
219 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
220 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
221
222 2008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
223
224 * varobj (adjust_value_for_child_access): Added checking for
225 returned value from gdb_value_ind.
226 (c_describe_child): Likewise.
227 (cplus_describe_child): Fixed a typo.
228
229 2008-01-29 Jim Blandy <jimb@red-bean.com>
230
231 * MAINTAINERS: Update my info.
232
233 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
234
235 Use multiple locations for hardware watchpoints.
236 This eliminates the need to traverse value chain, doing
237 various checks, in three different places.
238
239 * breakpoint.h (struct bp_location): New fields
240 lengths and watchpoint_type.
241 (struct breakpoint): Remove the val_chain field.
242 * breakpoint.c (is_hardware_watchpoint): New.
243 (free_valchain): Remove.
244 (update_watchpoint): New.
245 (insert_bp_location): For hardware watchpoint, just
246 directly insert it.
247 (insert_breakpoints): Call update_watchpoint_locations
248 on all watchpoints. If we have failed to insert
249 any location of a hardware watchpoint, remove all inserted
250 locations.
251 (remove_breakpoint): For hardware watchpoints, directly
252 remove location.
253 (watchpoints_triggered): Iterate over locations.
254 (bpstat_stop_status): Use only first location of
255 a resource watchpoint.
256 (delete_breakpoint): Don't call free_valchain.
257 (print_one_breakpoint): Don't print all
258 locations for watchpoints.
259 (breakpoint_re_set_one): Use update_watchpoint for
260 watchpoints.
261
262 2008-01-29 Vladimir Prus <vladimir@codesourcery.com>
263
264 Don't reset watchpoint block on solib load.
265
266 * breakpoint.c (insert_bp_location): For watchpoints,
267 recompute condition.
268 (breakpoint_re_set_one): Instead of recomputing value
269 and condition for watchpoints, just reset value and
270 let insert_breakpoints/insert_bp_location recompute it.
271 Don't do anything about disabled watchpoint.
272
273 2008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
274
275 * valarith.c (value_binop): Handle unsigned integer
276 division by zero.
277
278 2008-01-28 Kevin Buettner <kevinb@redhat.com>
279
280 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
281 instruction pattern that appears frequently in position
282 independent code. Fix bug in code which looks for "fmov" and
283 backtracks if no "fmov" is found.
284
285 2008-01-28 Doug Evans <dje@google.com>
286
287 * dbxread.c (read_dbx_symtab): Fix indentation.
288 Reformat comments to 80 columns.
289 Move local var def closer to only use.
290
291 2008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
292
293 * fork-child.c (SHELL_FILE): Remove #ifndef.
294 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
295
296 2008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
297
298 * i386-tdep.c (i386_skip_noop): New function.
299 (i386_analyze_prologue): Call i386_skip_noop function.
300
301 2008-01-24 Michael Snyder <msnyder@specifix.com>
302
303 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
304 * win32-nat.c (win32_xfer_partial): Ditto.
305 * target.c (default_xfer_partial): Minor whitespace adjustment.
306
307 2008-01-24 Pedro Alves <pedro@codesourcery.com>
308
309 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
310 strip bit 1 even if pc doesn't point to thumb code.
311
312 2008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
313
314 * remote.c (remote_wait): Handle SIGINT between packets.
315 (remote_async_wait): Likewise.
316
317 2008-01-23 Vladimir Prus <vladimir@codesourcery.com>
318 Chris Demetriou <cgd@google.com>
319
320 * thread.c (add_thread_silent): Renamed
321 from add_thread.
322 (print_thread_events): New variable definition.
323 (show_print_thread_events): New function.
324 (_initialize_thread): Add "set print thread-events" and
325 "show print thread-events" commands.
326 (add_thread): Announce new thread.
327 * gdbthread.h (add_thread_silent): Declare.
328 (print_thread_events): New variable declaration.
329 * inf-ttrace.c (inf_ttrace_wait): Don't
330 inform about new thread, as add_thread is always
331 called too, and will take care of that.
332 * infrun.c (handle_inferior_event): Likewise.
333 * procfs.c (procfs_wait): Likewise.
334 * remote.c (remote_currthread): Likewise.
335 * sol-thread.c (sol_thread_wait): Likewise.
336 * win32-nat.c (get_win32_debug_event): Likewise.
337 * linux-thread-db.c (attach_thread): Likewise.
338 Remove the verbose parameter.
339 (check_event): Make detach_thread be verbose
340 only if print_thread_events is set.
341 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
342 about new thread. This is called only from
343 linux-thread-db.c:attach_thread, which will take care.
344 Remove the verbose parameter.
345 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
346
347 2008-01-23 Nick Roberts <nickrob@snap.net.nz>
348
349 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
350
351 2008-01-22 Vladimir Prus <vladimir@codesourcery.com>
352
353 * breakpoint.c (break_command_really): New parameter
354 ignore_count.
355 (break_command_1): Pass 0 as
356 ignore_count to break_command_really.
357 (gdb_breakpoint): Pass ignore_count to
358 break_command_really.
359
360 2008-01-21 Kevin Buettner <kevinb@redhat.com>
361
362 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
363 sigcontext struct via pointer.
364 (struct sigframe comment): Update to show new field `psc'.
365
366 2008-01-21 Vladimir Prus <vladimir@codesourcery.com>
367
368 * infrun.c (handle_inferior_event): If
369 we failed to remove breakpoints, error,
370 don't try to increment PC by hand.
371
372 2008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
373
374 Add NetBSD/hppa target and host support.
375
376 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
377 (hppabsd_gregset): Move to ...
378 (hppabsd_regset_from_core_section): Rename
379 hppaobsd_regset_from_core_section and move to ...
380 (hppabsd_find_global_pointer): Update comment.
381 (hppabsd_init_abi): Make global. Do not register
382 hppabsd_regset_from_core_section.
383 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
384 move to ...
385 (_initialize_hppabsd_tdep): Move to ...
386 * hppaobsd-tdep.c: ... here. New file.
387 * hppnbsd-tdep.c: New file.
388 * hppnbsd-nat.c: New file.
389 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
390 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
391 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
392 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
393 * configure.host (hppa*-*-netbsd*): New entry.
394 * configure.tgt (hppa*-*-netbsd*): New entry.
395 (hppa*-*-openbsd*): Update.
396 * NEWS (New native configuration): Mention NetBSD/hppa.
397 (New targets): Mention NetBSD/hppa.
398
399 2008-01-18 Markus Deuling <deuling@de.ibm.com>
400
401 * gdbarch.sh (function_list): Add new property bits_big_endian to
402 gdbarch structure.
403 * gdbarch.{c,h}: Regenerate.
404
405 * value.c (struct value): Replace BITS_BIG_ENDIAN by
406 gdbarch_bits_big_endian (comment).
407 (unpack_field_as_long, modify_field): Likewise.
408 * value.h: Likewise (comment).
409 * valops.c (value_slice): Likewise.
410 * valarith.c (value_subscript, value_bit_index): Likewise.
411 * gdbtypes.h (field): Likewise (comment).
412 * eval.c (evaluate_subexp_standard): Likewise.
413 * dwarf2read.c (dwarf2_add_field): Likewise.
414 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
415 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
416
417 * defs.h (BITS_BIG_ENDIAN): Remove.
418
419 2008-01-18 Markus Deuling <deuling@de.ibm.com>
420
421 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
422 function calls.
423 * m2-exp.y (yylex): Likewise.
424 * objc-exp.y (yylex): Likewise.
425
426 * defs.h (DEPRECATED_STREQN): Remove.
427
428 2008-01-17 H.J. Lu <hjl.tools@gmail.com>
429
430 * MAINTAINERS: Update my email address.
431
432 2008-01-17 Jim Blandy <jimb@codesourcery.com>
433
434 * README: Mention gdbserver/README.
435
436 2008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
437
438 * valarith.c (value_binop): Handle BINOP_INTDIV
439 for unsigned and signed integers.
440
441 2008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
442
443 * s390-tdep.c (s390_gdbarch_init): Set default long double
444 type to 128-bit IEEE quad.
445
446 2008-01-17 Joel Brobecker <brobecker@adacore.com>
447
448 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
449
450 2008-01-16 Mark Kettenis <kettenis@gnu.org>
451
452 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
453
454 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
455 * value.c: All callers changed.
456
457 2008-01-16 Markus Deuling <deuling@de.ibm.com>
458
459 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
460 DEPRECATED_STREQ by its expression.
461 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
462 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
463 (scan_xcoff_symtab): Likewise.
464 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
465 * f-lang.c (find_common_for_function): Likewise.
466 * objc-exp.y (parse_number): Likewise.
467
468 * defs.h (DEPRECATED_STREQ): Remove.
469
470 2008-01-16 Markus Deuling <deuling@de.ibm.com>
471
472 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
473 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
474 get_frame_arch to get at the current_architecture. Update AM33_MODE
475 call.
476 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
477 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
478 architecture.
479 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
480
481 2008-01-16 Markus Deuling <deuling@de.ibm.com>
482
483 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
484 parameter.
485 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
486
487 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
488 current_gdbarch by gdbarch. Update caller.
489
490 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
491 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
492 the current architecture. Update calls of
493 amd64_native_gregset_supplies_p.
494 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
495 (amd64bsd_store_inferior_registers): Likewise.
496
497 2008-01-16 Markus Deuling <deuling@de.ibm.com>
498
499 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
500 Replace current_gdbarch by gdbarch. Update caller.
501
502 2008-01-16 Markus Deuling <deuling@de.ibm.com>
503
504 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
505 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
506 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
507 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
508 (stabsect_build_psymtabs): Fix indentation.
509
510 2008-01-15 Michael Snyder <msnyder@specifix.com>
511
512 * corelow.c (core_xfer_partial): Comment, cut/paste error.
513
514 2008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
515
516 * win32-nat.c (win32_create_inferior): Restore code calling
517 CloseHandle on ProcessInformation structure.
518
519 2008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
520
521 * configure.ac: Check for void * as 3 argument of ptrace.
522 * configure: regenerate.
523
524 2008-01-11 Markus Deuling <deuling@de.ibm.com>
525
526 * alpha-tdep.c (alpha_heuristic_proc_start)
527 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
528 current_gdbarch by gdbarch.
529
530 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
531 current architecture by frame_info. Update alpha_heuristic_proc_start
532 call.
533
534 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
535 get_frame_arch to get at the current architecture by frame_info. Update
536 alpha_sigtramp_register_address call.
537
538 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
539 current_gdbarch by gdbarch. Update caller.
540 (convert_to_extended, convert_from_extended): Add endianess parameter
541 for comparison. Update caller.
542 (arm_extract_return_value, arm_store_return_value): Use
543 get_regcache_arch to get at the current architecture.
544
545 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
546 current_gdbarch by gdbarch. Update caller.
547 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
548 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
549
550 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
551 gdbarch as parameter. Update caller.
552 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
553 current_gdbarch by gdbarch. Update caller.
554
555 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
556 update caller. Replace current_gdbarch by gdbarch.
557
558 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
559 the current architecture. Replace current_gdbarch by gdbarch.
560 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
561 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
562 expression. Add gdbarch as parameter and replace current_gdbarch with
563 it. Update caller.
564 (M6811_TDEP): Remove.
565 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
566 architecture.
567 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
568 current_gdbarch by gdbarch. Update caller.
569
570 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
571 update caller.
572 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
573 by gdbarch.
574
575 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
576 caller. Relace current_gdbarch by gdbarch.
577 (altivec_register_p, spe_register_p): Likewise.
578 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
579 parameter.
580 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
581 altivec_register_p and spe_register_p.
582
583 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
584 caller. Replace current_gdbarch by gdbarch.
585 (score_analyze_prologue): use get_frame_arch to get at the current
586 architecture.
587
588 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
589 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
590 current_gdbarch by gdbarch. Update caller.
591 (sparc_frame_cache): Use get_frame_arch to get at the current
592 architecture.
593 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
594 sparc_analyze_prologue.
595
596 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
597 parameter.
598
599 2008-01-11 Markus Deuling <deuling@de.ibm.com>
600
601 * exec.c: #include "arch-utils.h"
602 (print_section_info): Use gdbarch_from_bfd to get at the
603 current architecture. Replace current_gdbarch. Fix indention. Replace
604 deprecated_print_address_numeric by paddress.
605 * Makefile.in (exec.o) Add dependency to arch-utils.h.
606
607 * valprint.c (val_print_string): Replace
608 deprecated_print_address_numeric.
609 * tracepoint.c (trace_mention, scope_info): Likewise.
610 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
611 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
612 (maintenance_check_symtabs): Likewise.
613 * symfile.c (list_overlays_command): Likewise.
614 * stack.c (frame_info, print_block_frame_labels): Likewise.
615 * printcmd.c (print_address, print_address_demangle)
616 (address_info): Likewise.
617 * corefile.c (memory_error): Likewise.
618 * infcmd.c (jump_command): Likewise.
619 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
620 (mention, delete_breakpoint): Likewise.
621 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
622 * dwarf2read.c (dump_die): Likewise.
623 * ada-valprint.c (ada_val_print_1): Likewise.
624 * f-valprint.c (f_val_print): Likewise.
625 * linux-fork.c (info_forks_command): Likewise.
626 * m32r-com.c (m32r_load_section, m32r_load)
627 (m32r_upload_command): Likewise.
628
629 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
630
631 2008-01-11 Markus Deuling <deuling@de.ibm.com>
632
633 * gdbarch.sh (skip_prologue): Add gdbarch
634 as parameter.
635 * gdbarch.{c,h}: Regenerate.
636
637 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
638 * amd64-tdep.c (amd64_skip_prologue): Likewise.
639 * avr-tdep.c (avr_skip_prologue): Likewise.
640 * cris-tdep.c (cris_skip_prologue): Likewise.
641 * frv-tdep.c (frv_skip_prologue): Likewise.
642 * h8300-tdep.c (h8300_skip_prologue): Likewise.
643 * hppa-tdep.c (hppa_skip_prologue): Likewise.
644 * i386-tdep.c (i386_skip_prologue): Likewise.
645 * ia64-tdep.c (ia64_skip_prologue): Likewise.
646 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
647 * m32r-tdep.c (m32r_skip_prologue): Likewise.
648 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
649 * m68k-tdep.c (m68k_skip_prologue): Likewise.
650 * m88k-tdep.c (m88k_skip_prologue): Likewise.
651 * mep-tdep.c (mep_skip_prologue): Likewise.
652 * mips-tdep.c (mips_skip_prologue): Likewise.
653 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
654 * mt-tdep.c (mt_skip_prologue): Likewise.
655 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
656 * score-tdep.c (score_skip_prologue): Likewise.
657 * sh64-tdep.c (sh64_skip_prologue): Likewise.
658 * sh-tdep.c (sh_skip_prologue): Likewise.
659 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
660 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
661 * spu-tdep.c (spu_skip_prologue): Likewise.
662 * v850-tdep.c (v850_skip_prologue): Likewise.
663 * vax-tdep.c (vax_skip_prologue): Likewise.
664 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
665 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
666
667 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
668 current_gdbarch by gdbarch.
669 * m32c-tdep.c (m32c_skip_prologue): Likewise.
670 * s390-tdep.c (s390_skip_prologue): Likewise.
671
672 2008-01-10 Doug Evans <dje@google.com>
673
674 * defs.h (struct continuation_arg): Fix typo in comment.
675 * target.c (target_translate_tls_address): Fix comment spelling error.
676
677 2008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
678
679 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
680 (DOUBLEST_SCAN_FORMAT): Likewise.
681 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
682 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
683 * c-exp.y (parse_number): Likewise.
684 * jv-exp.y (parse_number): Likewise.
685 * objc-exp.y (parse_number): Likewise.
686 * p-exp.y (parse_number): Likewise.
687
688 2008-01-09 Joel Brobecker <brobecker@adacore.com>
689
690 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
691 (check_typedef): Likewise.
692
693 2008-01-09 Luis Machado <luisgpm@br.ibm.com>
694
695 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
696 seen_double_big_d, treat the new H, D, and DD modifiers as length
697 modifiers.
698
699 2008-01-08 Joel Brobecker <brobecker@adacore.com>
700
701 * dwarf2read.c (read_enumeration_type): Add comment.
702
703 2008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
704
705 * config.in: Regenerate.
706
707 2008-01-08 Joel Brobecker <brobecker@adacore.com>
708
709 * ada-lang.c (ada_convert_actual): Renames convert_actual.
710 Make non-static.
711 (ada_convert_actuals): Delete.
712 * ada-lang.h (ada_convert_actual): Add declaration.
713 (ada_convert_actuals): Remove declaration.
714 * infcall.c: #include "ada-lang.h".
715 (value_arg_coerce): Add new parameter sp. Update function
716 documetnation. Add handling of Ada function call parameters.
717 * Makefile.in (infcall.o): Update dependencies.
718
719 2008-01-08 Paul Hilfinger <hilfinger@adacore.com>
720
721 * ada-lang.c (ensure_lval): Fix value lval kind.
722 (convert_actual): Add handling for arguments passed by reference.
723
724 2008-01-08 Doug Evans <dje@google.com>
725
726 * dbxread.c (read_dbx_symtab): Fix indentation.
727
728 2008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
729
730 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
731 (valarith.o): Depend on dfp.h.
732 (valops.o): Likewise.
733 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
734 (set_decnumber_context): New function.
735 (decimal_check_errors): Likewise.
736 (decimal_from_number): Likewise.
737 (decimal_to_number): Likewise.
738 (decimal_from_string): Use set_decnumber_context and
739 decimal_check_errors.
740 (decimal_from_integral): New function.
741 (decimal_from_floating): Likewise.
742 (decimal_to_double): Likewise.
743 (promote_decimal): Likewise.
744 (decimal_binop): Likewise.
745 (decimal_is_zero): Likewise.
746 (decimal_compare): Likewise.
747 (decimal_convert): Likewise.
748 * dfp.h (decimal_from_integral): New prototype.
749 (decimal_from_floating): Likewise.
750 (decimal_to_double): Likewise.
751 (decimal_binop): Likewise.
752 (decimal_is_zero): Likewise.
753 (decimal_compare): Likewise.
754 (decimal_convert): Likewise.
755 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
756 call to value_from_decfloat.
757 * valarith.c: Include dfp.h.
758 (value_args_as_decimal): New function.
759 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
760 (value_logical_not): Likewise.
761 (value_equal): Likewise.
762 (value_less): Likewise.
763 (value_pos): Likewise.
764 (value_neg): Formatting fix.
765 * valops.c: Include dfp.h.
766 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
767 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
768 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
769 (value_from_decfloat): Remove expect_type argument.
770 * value.h (value_from_decfloat): Update prototype.
771
772 2008-01-07 Vladimir Prus <vladimir@codesourcery.com>
773
774 Ignore change in name of dynamic linker during
775 execution on Solaris. This also unbreaks pending breakpoints.
776
777 * solist.h (struct target_so_ops): New field same.
778 * solib-svr4.c (svr4_same): New.
779 (_initialize_svr4_solib): Register svr4_same.
780 * solib.c (update_solib_list): Use ops->same, if available.
781
782 2008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
783
784 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
785 when using MS-DOS paths.
786
787 2008-01-05 Pedro Alves <pedro@codesourcery.com>
788
789 * NEWS: Mention --pid and --core command line behaviour changes.
790
791 2008-01-05 Pedro Alves <pedro@codesourcery.com>
792
793 * main.c (captured_main): Remove 'count' varible and the
794 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
795 --pid options were issued simultaneously. If an explicit pid
796 option was passed, don't fallback to core file. Detect extra
797 arguments better in the presence of explicit pid or core
798 arguments.
799
800 2008-01-05 Joel Brobecker <brobecker@adacore.com>
801
802 * ada-lang.c (ada_which_variant_applies): Correctly compute
803 the value of the discriminant when the variant record is packed.
804
805 2008-01-04 Joel Brobecker <brobecker@adacore.com>
806
807 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
808 that are used to differentiate homonyms.
809
810 2008-01-04 Jerome Guitton <guitton@adacore.com>
811
812 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
813 when the type is an anonymous pointer type.
814 (ada_check_typedef): Avoid a seg fault when the type is null.
815 * ada-typeprint.c (print_array_type): Add support for pointer
816 to packed arrays.
817
818 2008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
819
820 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
821
822 2008-01-04 Joel Brobecker <brobecker@adacore.com>
823
824 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
825 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
826
827 2008-01-04 Joel Brobecker <brobecker@adacore.com>
828
829 * ada-exp.y (chop_separator): New function.
830 (write_selectors): Rewrite to re-use chop_separator.
831 (ada_nget_field_index, get_symbol_field_type): New functions.
832 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
833 expressions.
834
835 2008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
836
837 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
838 of SYMBOL_VALUE when working with function symbols.
839
840 2008-01-03 Joel Brobecker <brobecker@adacore.com>
841
842 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
843 expressions. These expressions do not need to be rewriten.
844
845 2008-01-03 Joel Brobecker <brobecker@adacore.com>
846
847 * dwarf2read.c (read_enumeration_type): Flag type as stub if
848 the given die is a declaration.
849
850 2008-01-03 Joel Brobecker <brobecker@adacore.com>
851
852 * ada-lang.c (ada_array_bound_from_type): Make non-static.
853 Handle properly the case when the index type is an enumerated type.
854 Do not return the subtype of the bounds type, just return the
855 bounds type directly - this is not needed and is more consistent
856 with what we do for arrays when no XA parallel type exists.
857
858 2008-01-03 Joel Brobecker <brobecker@adacore.com>
859
860 * ada-lang.c (static_unwrap_type): Add forward declaration.
861 (template_to_static_fixed_type): Fields of dynamic types sometimes
862 also need to be unwrapped. Take this into account.
863 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
864 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
865 * ada-typeprint.c (ada_print_type): Get the typename from
866 the original type, not the base type.
867
868 2008-01-03 Jerome Guitton <guitton@adacore.com>
869
870 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
871 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
872 Update calls to ada_to_fixed_type.
873 (ada_template_to_fixed_record_type_1): Ditto, but without looking
874 for the tag.
875 (ada_to_fixed_type): Add check_tag parameter; do not look for
876 tag if null. When looking for a tag, use a fixed record type.
877 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
878 * ada-valprint.c (printable_val_type, ada_value_print): Update
879 calls to ada_to_fixed_type.
880
881 2008-01-03 Luis Machado <luisgpm@br.ibm.com>
882
883 * doublest.c (convert_floatformat_to_doublest): Call
884 floatformat_to_doublest instead of floatformat_to_double and use
885 DOUBLEST variables.
886 (convert_doublest_to_floatformat): Call floatformat_from_doublest
887 instead of floatformat_from_double and use DOUBLEST variables.
888
889 2008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
890
891 * MAINTAINERS (Write After Approval): Add self.
892
893 2008-01-03 Joel Brobecker <brobecker@adacore.com>
894
895 * symfile.c (set_initial_language): Make non-static.
896 * symfile.h (set_initial_language): Add declaration.
897 * language.c: #include "symfile.h".
898 (set_language): Call set_initial_language if the frame language
899 could not be determined.
900
901 2008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
902
903 * eval.c (evaluate_subexp_for_address): Provide frame address to
904 locate_var_value only if it will be needed.
905
906 2008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
907
908 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
909
910 2008-01-02 Joel Brobecker <brobecker@adacore.com>
911
912 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
913 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
914 This is needed to make sure that any other treatment applied
915 to the resulting value does not fail for spurious reason,
916 such as trying to take the address of this value.
917
918 2008-01-02 Joel Brobecker <brobecker@adacore.com>
919
920 * ada-lang.c (ada_value_equal): Dereference reference types when
921 comparing arrays.
922
923 2008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
924
925 Updated copyright notices for most files.
926
927 2008-01-01 Christopher Faylor <me+gdb@cgf.cx>
928
929 * win32-nat.c (psapi_module_handle): Remove static.
930 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
931 return first module found if base_address is zero. Don't initialize
932 psapi function pointers here. Convert to cygwin paths when
933 appropriate.
934 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
935 executable name. Use get_module_name when that fails or when
936 !__CYGWIN__.
937 (_initialize_psapi): New function. Initialize psapi stuff before it is
938 needed or issue a warning if it is not found. Move psapi_module_handle
939 here.
940
941 2008-01-01 Joel Brobecker <brobecker@adacore.com>
942
943 * ada-lang.c (ada_remove_trailing_digits): New function.
944 (ada_remove_po_subprogram_suffix): New function.
945 (ada_decode): Improve. Move the description of the algorithm
946 directly inside the code, instead of in the function global
947 description.
948
949 2008-01-01 Joel Brobecker <brobecker@adacore.com>
950
951 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
952 and always print the dereferenced value.
953
954 2008-01-01 Joel Brobecker <brobecker@adacore.com>
955
956 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
957 of the case where the first argument is a reference.
958 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
959
960 2008-01-01 Joel Brobecker <brobecker@adacore.com>
961
962 Implement support for Ada interface types.
963
964 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
965 (ada_is_ignored_field): Ignore fields that are a dispatch table
966 of a tagged type.
967
968 2008-01-01 Joel Brobecker <brobecker@adacore.com>
969
970 * top.c (print_gdb_version): Update copyright year.
971
972 2008-01-01 Joel Brobecker <brobecker@adacore.com>
973
974 * ChangeLog-2007: New ChangeLog rotation.
975 * ChangeLog: Reset for 2008.
976 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
977 ChangeLog-2007.
978
979 For older changes see ChangeLog-2007.
980 \f
981 Local Variables:
982 mode: change-log
983 left-margin: 8
984 fill-column: 74
985 version-control: never
986 coding: utf-8
987 End: