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