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