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