Update m68k port for unwinder changes.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f36bf22c
AS
12008-05-05 Andreas Schwab <schwab@suse.de>
2
3 Update m68k port for unwinder changes.
4 * m68k-tdep.c (m68k_frame_cache): Expect this_frame.
5 (m68k_frame_this_id, m68k_frame_prev_register): Update signature.
6 (m68k_frame_unwind): Use default_frame_sniffer.
7 (m68k_frame_sniffer): Remove.
8 (m68k_frame_base_address): Expect this_frame.
9 (m68k_dummy_id): Renamed from m68k_unwind_dummy_id. Expect
10 this_frame.
11 (m68k_gdbarch_init): Use set_gdbarch_dummy_id,
12 dwarf2_append_unwinders, and frame_unwind_append_unwinder.
13 * m68klinux-tdep.c (m68k_linux_pc_in_sigtramp): Expect frame_info
14 parameter instead of pc value.
15 (m68k_linux_get_sigtramp_info, m68k_linux_sigtramp_frame_cache):
16 Expect this_frame.
17 (m68k_linux_sigtramp_frame_this_id)
18 (m68k_linux_sigtramp_frame_prev_register)
19 (m68k_linux_sigtramp_frame_sniffer): Update signature.
20 (m68k_linux_sigtramp_frame_unwind): Use
21 m68k_linux_sigtramp_frame_sniffer.
22 (m68k_linux_init_abi): Use frame_unwind_append_unwinder.
23
24 * m68klinux-nat.c (store_register): Fix typo.
25
b3dc826b
PA
262008-05-05 Pedro Alves <pedro@codesourcery.com>
27
28 * infcmd.c (step_1): Put thread id on the stack to avoid possible
29 NULL dereferencing.
30
6528a9ea
LM
312008-05-05 Luis Machado <luisgpm@br.ibm.com>
32
33 * symfile.c (reread_symbols): Update objfile's entry point.
34
5eeb2539
AR
352008-05-05 Aleksandar Ristovski <aristovski@qnx.com>
36 Joel Brobecker <brobecker@adacore.com>
1f906a60 37
5eeb2539
AR
38 * ada-lang.c: Update throughout to use symbol_matches_domain
39 instead of matching the symbol domain explictly.
40 * dwarf2read.c (add_partial_symbol): Do not add new psym for
f36bf22c 41 STRUCT_DOMAIN. Make sure you recognize c++ struct and java and ada
5eeb2539 42 class as typedefs. See lookup_partial_symbol function.
f36bf22c 43 (new_symbol): Similar to add_partial_symbol, do not create
5eeb2539
AR
44 symbol for the typedef. See lookup_block_symbol.
45 * symtab.c (symbol_matches_domain): New function, takes care
46 of dual meaning of STRUCT_DOMAIN symbol for c++, ada and java.
47 (lookup_partial_symbol): Use symbol_matches_domain to see if the
48 found psym domain matches the given domain.
49 (lookup_block_symbol): Likewise.
50
e2b7ddea
VP
512008-05-05 Vladimir Prus <vladimir@codesourcery.com>
52
53 * top.c (command_line_handler_continuation): Remove.
54 (execute_command): Do not install the above.
55
fcfb8b02
VP
562008-05-05 Vladimir Prus <vladimir@codesourcery.com>
57
58 * inf-loop.c (inferior_event_handler): Call bpstat_do_action,
59 and catch all exceptions from it.
60 * top.c (command_line_handler_continuation): Don't
61 call bpstat_do_action here.
62
f792889a
DJ
632008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
64
65 * dwarf2read.c (struct dwarf2_cu): Add type_hash.
66 (struct die_info): Remove type.
67 (read_type_die, read_typedef, read_base_type, read_subrange_type)
68 (read_structure_type, read_enumeration_type, read_array_type)
69 (read_tag_pointer_type, read_tag_ptr_to_member_type)
70 (read_tag_reference_type, read_tag_const_type, read_tag_volatile_type)
71 (read_tag_string_type, read_subroutine_type, read_set_type)
72 (read_unspecified_type): Delete prototypes. Remove check for
73 already-loaded type. Return the new type.
74 (set_die_type): Return the new type.
75 (reset_die_and_siblings_types): Delete.
76 (load_comp_unit, load_full_comp_unit): Set type_hash.
77 (process_queue): Remove call to reset_die_and_siblings_types.
78 (process_die): Do not read most types here. Use read_type_die
79 for others.
80 (read_func_scope, dwarf2_add_member_fn): Use read_type_die.
81 (quirk_gcc_member_function_pointer): Return the new type.
82 (process_structure_scope, process_enumeration_scope): Use
83 get_die_type and read the DIE's type.
84 (read_full_die): Do not initialize die->type.
85 (tag_type_to_type): Use read_type_die.
86 (read_type_die): Check for already defined types. Return the
87 type.
88 (determine_prefix): Use get_die_type.
89 (set_die_type): Return the type.
90 (get_die_type): Take a CU argument. Check for no type_hash.
91
e7030f15
DJ
922008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
93
94 * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
95 locals.
96
611c83ae
PA
972008-05-04 Pedro Alves <pedro@codesourcery.com>
98
99 * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
100 and bp_longjmp_resume breakpoints.
101 (breakpoint_address_is_meaningful): Claim bp_longjmp_resume as
102 meaningful.
103 (create_longjmp_breakpoint): Don't create bp_longjmp_resume
104 breakpoints. Create bp_longjmp breakpoints as momentary
105 breakpoints.
106 (enable_longjmp_breakpoint): Delete.
107 (set_longjmp_breakpoint): New.
108 (disable_longjmp_breakpoint): Delete.
109 (delete_longjmp_breakpoint): New.
110 (set_longjmp_resume_breakpoint): Delete.
111 (set_momentary_breakpoint_at_pc): New.
112 (breakpoint_re_set_one): Don't delete bp_longjmp and
113 bp_longjmp_resume breakpoints.
114 (breakpoint_re_set): Don't create longjmp and longjmp-resume
115 breakpoints.
116
117 * infrun.c (step_resume_breakpoint): Add comment.
118 (struct execution_control_state): Delete handling_longjmp member.
119 (init_execution_control_state). Don't clear handling_longjmp.
120 (context_switch): Don't context switch handling_longjmp.
121 (handle_inferior_event): If handling a bp_longjmp breakpoint,
122 create a bp_longjmp_resume breakpoint, and set it as current
123 step_resume_breakpoint, then step over the longjmp breakpoint. If
124 handling a bp_longjmp_resume breakpoint, don't delete the longjmp
125 breakpoint, delete the longjmp-resume breakpoint, and stop
126 stepping.
127 (currently_stepping): Remove handling_longjmp from expression.
128 (insert_step_resume_breakpoint_at_sal): Update comment.
129 (insert_longjmp_resume_breakpoint): New.
130
131 * breakpoint.h (set_momentary_breakpoint_at_pc): Declare.
132 (enable_longjmp_breakpoint, disable_longjmp_breakpoint): Delete
133 declarations.
134 (set_longjmp_breakpoint, delete_longjmp_breakpoint): Declare.
135 (set_longjmp_resume_breakpoint): Delete declaration.
136
137 * gdbthread.h (save_infrun_state): Remove handling_longjmp
138 parameter.
139 (load_infrun_state): Delete *handling_longjmp parameter.
140 * thread.c (save_infrun_state): Remove handling_longjmp parameter.
141 Update body.
142 (load_infrun_state): Delete *handling_longjmp parameter. Update
143 body.
144
145 * infcmd.c (disable_longjmp_breakpoint_cleanup): Delete.
146 (delete_longjmp_breakpoint_cleanup): New.
147 (step_1): Call set_longjmp_breakpoint instead of
148 enable_longjmp_breakpoint. Use delete_longjmp_breakpoint_cleanup
149 instead of disable_longjmp_breakpoint_cleanup when making cleanup.
150 (step_1_continuation): Pass thread id in the continuation args to
151 step_once.
152 (step_once): Add thread parameter. Pass thread id the the
153 continuation.
154
85cbf3d3
JK
1552008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
156
157 Set CU BASE_ADDRESS already from partial DIEs.
158 * dwarf2read.c (read_partial_die): New variables BASE_ADDRESS and
159 BASE_ADDRESS_TYPE. Set these variables from DW_AT_LOW_PC and
160 DW_AT_ENTRY_PC. Set CU->HEADER.BASE_KNOWN and CU->HEADER.BASE_ADDRESS
161 from these variables if it was still unset.
162
ff013f42
JK
163 * Makefile.in: Update dependencies.
164 * dwarf2read.c: Include "addrmap.h"
165 (struct dwarf2_cu): New fields RANGES_OFFSET and HAS_RANGES_OFFSET.
166 (dwarf2_ranges_read): New prototype.
167 (dwarf2_build_psymtabs_hard): Initialize and prepare PSYMTABS_ADDRMAP.
168 Add discontiguous range to PSYMTABS_ADDRMAP by DWARF2_RANGES_READ on
169 HAS_RANGES_OFFSET, otherwise add there the contiguous range.
170 (dwarf2_ranges_read): New parameter RANGES_PST, update the function
171 comment for it. Add the found ranges to RANGES_PST. New variable
172 BASEADDR, initialize it the common way.
173 (dwarf2_get_pc_bounds): Update the caller for the new parameter.
174 (read_partial_die): `DW_AT_ranges' now only sets RANGES_OFFSET and
175 HAS_RANGES_OFFSET for the later processing.
176 * objfiles.h (struct objfile): New field PSYMTABS_ADDRMAP.
177 * symtab.c: Include "addrmap.h"
178 (find_pc_sect_psymtab): Support reading the field PSYMTABS_ADDRMAP.
179 Move the psymtab locator into ...
180 (find_pc_sect_psymtab_closer): ... a new function.
181
a7f1256d
UW
1822008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
183
184 * arch-utils.c (gdbarch_update_p): Use default values for
185 info.abfd and info.target_desc if they are NULL.
186 (gdbarch_from_bfd): Remove assertion.
187 (set_gdbarch_from_file): Call gdbarch_find_by_info directly,
188 using the current target description.
189 (gdbarch_info_fill): Do not use default values for info->abfd
190 and info->target_desc.
191
b2de52bb
JK
1922008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
193
194 * symfile.c (reread_symbols): Reload EXEC_BFD on its change.
195
515630c5
UW
1962008-05-04 Ulrich Weigand <uweigand@de.ibm.com>
197
198 * inferior.h (read_pc_pid, write_pc_pid): Remove.
199 * regcache.h (regcache_read_pc, regcache_write_pc): Add prototypes.
200
201 * regcache.c (read_pc_pid): Remove, replace by ...
202 (regcache_read_pc): ... this function.
203 (write_pc_pid): Remove, replace by ...
204 (regcache_write_pc): ... this function.
205 (read_pc, write_pc): Update.
206
207 * infrun.c (displaced_step_prepare): Replace read_pc_pid and
208 write_pc_pid by regcache_read_pc and regcache_write_pc.
209 (displaced_step_fixup): Likewise.
210 (resume): Likewise. Use regcache arch instead of current_gdbarch.
211 (prepare_to_proceed): Likewise.
212 (proceed): Likewise.
213 (adjust_pc_after_break): Likewise.
214 (handle_inferior_event): Likewise.
215
216 * linux-nat.c (cancel_breakpoint): Likewise.
217 * linux-thread-db.c (check_event): Likewise.
218 * aix-thread.c (aix_thread_wait): Likewise.
219 * tracepoint.c (trace_dump_command): Likewise.
220
ebd3bcc1
JK
2212008-05-04 Jan Kratochvil <jan.kratochvil@redhat.com>
222
223 * dwarf2loc.c (dwarf_expr_frame_base): Error out on missing
224 SYMBOL_LOCATION_BATON.
225
c47ffbe3
VP
2262008-05-04 Vladimir Prus <vladimir@codesourcery.com>
227
f78bff48
VP
228 * target.h (struct target_ops): New field to_auxv_parse.
229 * auxv.c (default_auxv_parse): New, renamed from previous
230 target_auxv_parse.
231 (target_auxv_parse): Try to call target method. Fallback to
232 default_auxv_parse if not found.
233 * procfs.c (procfs_auxv_parse): New.
234 (init_procfs_ops): On Solaris, in 64-bit mode, install
235 procfs_auxv_parse.
c47ffbe3 236
35076fa0
AN
2372008-05-03 Adam Nemet <anemet@caviumnetworks.com>
238
239 * symfile.c (add_symbol_file_command): Use paddress rather than
240 hex_string to print the address.
241
5b197912
UW
2422008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
243
244 * rs6000-tdep.c (rs6000_frame_this_id): If info->base is 0,
245 return the null frame ID to terminate the backtrace.
246
4a7622d1
UW
2472008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
248
249 * rs6000-tdep.c: Do not include "rs6000-tdep.h".
250 (rs6000_find_toc_address_hook): Move to rs6000-aix-tdep.c.
251 (SIG_FRAME_PC_OFFSET): Likewise.
252 (SIG_FRAME_LR_OFFSET): Likewise.
253 (SIG_FRAME_FP_OFFSET): Likewise.
254 (rs6000_push_dummy_call): Likewise.
255 (rs6000_return_value): Likewise.
256 (rs6000_convert_from_func_ptr_addr): Likewise.
257 (branch_dest, rs6000_software_single_step): Likewise.
258 (deal_with_atomic_sequence): Rename to ...
259 (ppc_deal_with_atomic_sequence): ... this. Adapt all callers.
260 Do not call branch_dest; inline required parts of that function.
261 (rs6000_skip_trampoline_code): Replace DEPRECATED_SYMBOL_NAME
262 with SYMBOL_LINKAGE_NAME.
263 (struct reg, regsize): Delete.
264 (read_memory_addr): Delete; inline into callers.
265 (rs6000_skip_prologue): Move after skip_prologue.
266 (skip_prologue): Remove prototype.
267 (rs6000_gdbarch_init): Remove sysv_abi variable; perform all
268 initialization as if this variable were true. Do not install
269 ppc64_sysv_abi_adjust_breakpoint_address.
270
271 * rs6000-aix-tdep.c: Include "gdb_assert.h", "gdbtypes.h",
272 "gdbcore.h", "target.h", "value.h", "infcall.h", "objfiles.h",
273 and "breakpoint.h".
274 (rs6000_find_toc_address_hook): Move here from rs6000-tdep.c.
275 (SIG_FRAME_PC_OFFSET): Likewise.
276 (SIG_FRAME_LR_OFFSET): Likewise.
277 (SIG_FRAME_FP_OFFSET): Likewise.
278 (rs6000_push_dummy_call): Likewise.
279 (rs6000_return_value): Likewise.
280 (rs6000_convert_from_func_ptr_addr): Likewise.
281 (branch_dest, rs6000_software_single_step): Likewise. Replace
282 tdep->text_segment_base by AIX_TEXT_SEGMENT_BASE.
283 (rs6000_aix_init_osabi): Install rs6000_push_dummy_call,
284 rs6000_return_value, and rs6000_convert_from_func_ptr_addr.
285 Call set_gdbarch_long_double_bit and set_gdbarch_frame_red_zone_size.
286 Set tdep->lr_frame_offset. Do not set tdep->text_segment_base.
287
288 * rs6000-tdep.h (rs6000_software_single_step): Remove prototype.
289 (AIX_TEXT_SEGMENT_BASE): New macro.
290 * rs6000-nat.c (exec_one_dummy_insn): Replace tdep->text_segment_base
291 by AIX_TEXT_SEGMENT_BASE.
292
293 * ppc-tdep.h (ppc_deal_with_atomic_sequence): Add prototype.
294 (struct gdbarch_tdep): Remove text_segment_base member.
295 * ppc-linux-tdep.c (ppc_linux_init_abi): On 64-bit, install
296 ppc64_sysv_abi_adjust_breakpoint_address.
297
298 * Makefile.in (rs6000-tdep.o): Update dependencies.
299 (rs6000-aix-tdep.o): Likewise.
300
938f5214
TJB
3012008-05-03 Luis Machado <luisgpm@br.ibm.com>
302 Thiago Jung Bauermann <bauerman@br.ibm.com>
303
304 * cli/cli-decode.c (lookup_cmd_1): Fix indentation.
305 * doublest.c (convert_typed_floating): Fix typo in comment.
306 * dwarf2-frame.c (dwarf2_frame_cache): Likewise.
307 * frame-unwind.h (frame_sniffer_ftype): Likewise.
308 * frame.c (frame_unwind_address_in_block): Likewise.
309 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Likewise.
310 * symtab.h (struct symbol): Likewise.
311 * tramp-frame.h (struct trad_frame_cache): Likewise.
312 * value.c (allocate_repeat_value): Likewise.
313
0b02b92d
UW
3142008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
315
316 * infrun.c (handle_inferior_event): Do not insert breakpoints at
317 TARGET_WAITKIND_LOADED events during startup (i.e. in the shell).
318
d705c43c
PA
3192008-05-03 Pedro Alves <pedro@codesourcery.com>
320
321 * parse.c (parse_exp_in_context): Don't override
322 expression_context_pc if get_selected_block returned a valid
323 block.
324
d6350901
DJ
3252008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
326
327 * alpha-tdep.h (ALPHA_REGISTER_BYTES): Delete.
328 * arm-tdep.h (STATUS_REGISTER_SIZE): Delete.
329 * breakpoint.c (args_for_catchpoint_enable, current_exception_event):
330 Delete.
331 * c-typeprint.c (c_type_print_base): Delete handling of template
332 instantiations.
333 * cp-support.h (METHOD_PTR_IS_VIRTUAL, METHOD_PTR_FROM_VOFFSET)
334 (METHOD_PTR_TO_VOFFSET): Delete.
335 * defs.h (QUIT_FIXME): Delete.
336 * f-lang.h (DEFAULT_DOTMAIN_NAME_IN_MF77, DEFAULT_MAIN_NAME_IN_MF77)
337 (DEFAULT_DOTMAIN_NAME_IN_XLF_BUGGY, DEFAULT_DOTMAIN_NAME_IN_XLF): Delete.
338 * gdbtypes.h (struct cplus_struct_type): Delete is_inlined,
339 ninstantiations, and instantiations.
340 (TYPE_INSTANTIATIONS, TYPE_NINSTANTIATIONS, TYPE_INSTANTIATION)
341 (TYPE_FN_FIELD_INLINED): Delete.
342 * srec.h (SREC_BINARY): Delete.
343 * symtab.c (symbol_init_demangled_name): Delete.
344 * symtab.h (SYMBOL_INIT_DEMANGLED_NAME, symbol_init_demangled_name)
345 (SYMBOL_OBJFILE, struct exception_event_record, CURRENT_EXCEPTION_KIND)
346 (CURRENT_EXCEPTION_CATCH_SAL, CURRENT_EXCEPTION_CATCH_LINE)
347 (CURRENT_EXCEPTION_CATCH_FILE, CURRENT_EXCEPTION_CATCH_PC)
348 (CURRENT_EXCEPTION_THROW_SAL, CURRENT_EXCEPTION_THROW_LINE)
349 (CURRENT_EXCEPTION_THROW_FILE, CURRENT_EXCEPTION_THROW_PC): Delete.
350 * target.h (enum thread_control_capabilities): Delete tc_switch.
351 (target_can_switch_threads): Delete.
352
30510692
DJ
3532008-05-03 Daniel Jacobowitz <dan@codesourcery.com>
354
355 * Makefile.in (objfiles.o): Update.
356 * exec.c (exec_set_section_address): Support p->addr != 0.
357 * objfiles.c (objfile_relocate): Update exec_ops section
358 addresses.
359 * symfile.c (place_section): Move exec_set_section_address call...
360 (default_symfile_offsets): ...to here.
361
7284e1be
UW
3622008-05-03 Ulrich Weigand <uweigand@de.ibm.com>
363
364 * Makefile.in (ppc_linux_tdep_h): New macro.
365 (powerpc_32l_c, powerpc_altivec32_c, powerpc_altivec32l_c): Likewise.
366 (powerpc_64l_c, powerpc_altivec64_c, powerpc_altivec64l_c): Likewise.
367 (powerpc_e500l_c): Likewise.
368 (ppc-linux-nat.o): Update dependencies.
369 (ppc-linux-tdep.o): Update dependencies.
370 (rs6000-tdep.o): Update dependencies.
371
372 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Remove.
373 (ppc_linux_svr4_fetch_link_map_offsets): Remove.
374 (ppc_linux_gregset, ppc_linux_fpregset): Move to ppc-linux-tdep.h
375 (ppc_supply_reg, ppc_collect_reg): Add prototypes.
376 (tdesc_powerpc_e500): Remove.
377
378 * rs6000.c: Include "features/rs6000/powerpc-altivec32.c"
379 and "features/rs6000/powerpc-altivec64.c".
380 (ppc_supply_reg, ppc_collect_reg): Make global.
381 (variants): Use tdesc_powerpc_32 for "powerpc" and
382 tdesc_powerpc_altivec64 for "powerpc64".
383 (_initialize_rs6000_tdep): Initialize AltiVec descriptions.
384
385 * ppc-linux-tdep.h: New file.
386
387 * ppc-linux-tdep.c: Include "ppc-linux-tdep.c".
388 Include "features/rs6000/powerpc-32l.c".
389 Include "features/rs6000/powerpc-altivec32l.c".
390 Include "features/rs6000/powerpc-64l.c".
391 Include "features/rs6000/powerpc-altivec64l.c".
392 Include "features/rs6000/powerpc-e500l.c".
393 (ppc_linux_supply_gregset): New function.
394 (ppc_linux_collect_gregset): Handle orig_r3 and trap registers.
395 (ppc32_linux_gregset): Use ppc_linux_supply_gregset.
396 (ppc64_linux_gregset): Likewise.
397 (ppc_linux_sigtramp_cache): Handle orig_r3 and trap registers.
398 (ppc_linux_trap_reg_p): New function.
399 (ppc_linux_write_pc): New function.
400 (ppc_linux_core_read_description): New function.
401 (ppc_linux_init_abi): Install ppc_linux_write_pc and
402 ppc_linux_core_read_description. Install orig_r3 and trap
403 registers if present in the target description.
404 (_initialize_ppc_linux_tdep): Initialize Linux target descriptions.
405
406 * ppc-linux-nat.c: Include "ppc-linux-tdep.h".
407 (PT_ORIG_R3, PT_TRAP): Define if necessary.
408 (ppc_register_u_addr): Handle orig_r3 and trap registers.
409 (fetch_ppc_registers): Likewise.
410 (store_ppc_registers): Likewise.
411 (store_register): Likewise.
412 (ppc_linux_read_description): Check whether AltiVec is supported.
413 Check whether inferior is 32-bit or 64-bit. Return the appropriate
414 Linux target description.
415
416 * features/Makefile (WHICH): Use rs6000/powerpc-32l and
417 rs6000/powerpc-altivec32l instead of rs6000/powerpc-32.
418 Use rs6000/powerpc-64l and rs6000/powerpc-altivec64l instead
419 of rs6000/powerpc-64. Use rs6000/powerpc-e500l instead of
420 rs6000/powerpc-e500. Update -expedite variables accordingly.
421
422 * features/rs6000/power-spe.xml: Use regnum 73 for "acc".
423 * features/rs6000/powerpc-32.xml: Do not include power-altivec.xml.
424 * features/rs6000/powerpc-64.xml: Do not include power-altivec.xml.
425 * features/rs6000/powerpc-e500.c: Regenerate.
426 * features/rs6000/powerpc-32.c: Regenerate.
427 * features/rs6000/powerpc-64.c: Regenerate.
428
429 * features/rs6000/power-linux.xml: New file.
430 * features/rs6000/power64-linux.xml: New file.
431 * features/rs6000/powerpc-32l.xml: New file.
432 * features/rs6000/powerpc-altivec32l.xml: New file.
433 * features/rs6000/powerpc-64l.xml: New file.
434 * features/rs6000/powerpc-altivec64l.xml: New file.
435 * features/rs6000/powerpc-e500l.xml: New file.
436 * features/rs6000/powerpc-32l.c: New (generated) file.
437 * features/rs6000/powerpc-altivec32l.c: New (generated) file.
438 * features/rs6000/powerpc-64l.c: New (generated) file.
439 * features/rs6000/powerpc-altivec64l.c: New (generated) file.
440 * features/rs6000/powerpc-e500l.xml: New (generated) file.
441
442 * regformats/reg-ppc.dat: Remove.
443 * regformats/reg-ppc64.dat: Remove.
444 * regformats/rs6000/powerpc-32.dat: Remove.
445 * regformats/rs6000/powerpc-64.dat: Remove.
446 * regformats/rs6000/powerpc-e500.dat: Remove.
447 * regformats/rs6000/powerpc-32l.dat: New (generated) file.
448 * regformats/rs6000/powerpc-altivec32l.dat: New (generated) file.
449 * regformats/rs6000/powerpc-64l.dat: New (generated) file.
450 * regformats/rs6000/powerpc-altivec64l.dat: New (generated) file.
451 * regformats/rs6000/powerpc-e500l.dat: New (generated) file.
452
063bfe2e
VP
4532008-05-03 Pedro Alves <pedro@codesourcery.com>
454
455 * thread.c (delete_thread): Call observer_notify_thread_exit.
456 * mi/mi-interp.c (mi_interpreter_init): Register mi_thread_exit as
457 thread_exit observer.
458 (mi_thread_exit): New.
459
f132ba9d
TJB
4602008-05-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
461
462 * breakpoint.c (create_exception_catchpoint): Remove prototype
463 for already deleted function.
464 * breakpoint.h (ep_is_exception_catchpoint): Likewise.
465 * frame.h (show_stack_frame): Remove prototype.
466 * stack.c (show_stack_frame): Remove empty, unused function.
467 * source.c (symtab_to_fullname, print_source_lines): Small fix
468 in comment.
469 * value.c (show_values): Update comments to mention "show values"
470 command instead of "info history".
471
bccdca4a
UW
4722008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
473
474 * linespec.c: Include "target.h".
475 (minsym_found): Handle minimal symbols pointing to function
476 descriptors. Use find_function_start_pc.
477 * minsyms.c (msymbol_objfile): New function.
478 * parse.c (write_exp_msymbol): Handle minimal symbols pointing
479 to function descriptors.
480 * symtab.c (fixup_section): Only use minimal symbol at the same
481 address to determine section of a symbol.
482 (find_function_start_pc): New function.
483 (find_function_start_sal): Use it.
484 * symtab.h (msymbol_objfile): Add prototype.
485 (find_function_start_pc): Likewise.
486 * value.c: Include "objfiles.h".
487 (value_fn_field): Handle minimal symbols pointing to function
488 descriptors.
489 * Makefile.in (linespec.o): Update dependencies.
490 (value.o): Likewise.
491
de4d072f
JB
4922008-05-02 Joel Brobecker <brobecker@adacore.com>
493
494 * ada-lang.c (unwrap_value): Handle the case where the "F" field
495 inside a PAD type is a bitfield.
496
93d4208d
UW
4972008-05-02 Ulrich Weigand <uweigand@de.ibm.com>
498
499 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Handle
500 TYPE_CODE_BOOL and TYPE_CODE_CHAR the same as TYPE_CODE_INT.
501 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
502 Handle TYPE_CODE_METHOD the same as TYPE_CODE_FUNC.
503 Allow typedefs when checking for function pointer arguments.
504 Right-align small structs passed on the stack.
505 (ppc64_sysv_abi_return_value): Handle TYPE_CODE_BOOL and
506 TYPE_CODE_CHAR the same as TYPE_CODE_INT.
507 Handle TYPE_CODE_REF the same as TYPE_CODE_PTR.
508
60c5725c
DJ
5092008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
510
511 * Makefile.in (arm-tdep.o): Update.
512 * arm-tdep.c (arm_objfile_data_key, struct arm_mapping_symbol)
513 (struct arm_per_objfile, arm_compare_mapping_symbols): New.
514 (arm_pc_is_thumb): Use mapping symbols.
515 (arm_objfile_data_cleanup, arm_record_special_symbol): New.
516 (arm_gdbarch_init): Call set_gdbarch_record_special_symbol.
517 (_initialize_arm_tdep): Initialize arm_objfile_data_key.
518 * elfread.c (elf_symtab_read): Use gdbarch_record_special_symbol.
519 * gdbarch.sh: Add record_special_symbol.
520 * gdbarch.c, gdbarch.h: Regenerated.
521 * objfiles.c (struct objfile_data): Add cleanup member.
522 (register_objfile_data_with_cleanup): New function, from
523 register_objfile_data.
524 (register_objfile_data): Use it.
525 (objfile_free_data): Call clear_objfile_data.
526 (clear_objfile_data): Call cleanup functions.
527 * objfiles.h (register_objfile_data_with_cleanup): Declare.
528
574dffa2
DJ
5292008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
530
531 * objfiles.c (init_entry_point_info): Handle shared libraries.
532
2c404490
DJ
5332008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
534
535 * arm-tdep.c (arm_prologue_this_id): Compare pc, not func, to
536 lowest_pc.
537
237fc4c9
PA
5382008-05-02 Jim Blandy <jimb@codesourcery.com>
539 Pedro Alves <pedro@codesourcery.com>
540
541 Implement displaced stepping.
542
543 * gdbarch.sh (max_insn_length): New 'variable'.
544 (displaced_step_copy, displaced_step_fixup)
545 (displaced_step_free_closure, displaced_step_location): New
546 functions.
547 (struct displaced_step_closure): Add forward declaration.
548 * gdbarch.c, gdbarch.h: Regenerated.
549
550 * arch-utils.c: #include "objfiles.h".
551 (simple_displaced_step_copy_insn)
552 (simple_displaced_step_free_closure)
553 (displaced_step_at_entry_point): New functions.
554 * arch-utils.h (simple_displaced_step_copy_insn)
555 (simple_displaced_step_free_closure)
556 (displaced_step_at_entry_point): New prototypes.
557
558 * i386-tdep.c (I386_MAX_INSN_LEN): Rename to...
559 (I386_MAX_MATCHED_INSN_LEN): ... this.
560 (i386_absolute_jmp_p, i386_absolute_call_p)
561 (i386_ret_p, i386_call_p, i386_breakpoint_p, i386_syscall_p)
562 (i386_displaced_step_fixup): New functions.
563 (struct i386_insn, i386_match_insn): Update.
564 (i386_gdbarch_init): Set gdbarch_max_insn_length.
565 * i386-tdep.h (I386_MAX_INSN_LEN): New.
566 (i386_displaced_step_fixup): New prototype.
567 * i386-linux-tdep.c (i386_linux_init_abi): Include "arch-utils.h".
568 Register gdbarch_displaced_step_copy,
569 gdbarch_displaced_step_fixup, gdbarch_displaced_step_free_closure,
570 and gdbarch_displaced_step_location functions.
571
572 * infrun.c (debug_displaced): New variable.
573 (show_debug_displaced): New function.
574 (struct displaced_step_request): New struct.
575 (displaced_step_request_queue, displaced_step_ptid)
576 (displaced_step_gdbarch, displaced_step_closure)
577 (displaced_step_original, displaced_step_copy)
578 (displaced_step_saved_copy, can_use_displaced_stepping): New
579 variables.
580 (show_can_use_displaced_stepping, use_displaced_stepping)
581 (displaced_step_clear, cleanup_displaced_step_closure)
582 (displaced_step_dump_bytes, displaced_step_prepare)
583 (displaced_step_clear_cleanup, write_memory_ptid)
584 (displaced_step_fixup): New functions.
585 (resume): Call displaced_step_prepare.
586 (proceed): Call read_pc once, and remember the value. If using
587 displaced stepping, don't remove breakpoints.
588 (handle_inferior_event): Call displaced_step_fixup. Add some
589 debugging output. When we try to step over a breakpoint, but get
590 a signal to deliver to the thread instead, ensure the step-resume
591 breakpoint is actually inserted. If a thread hop is needed, and
592 displaced stepping is enabled, don't remove breakpoints.
593 (init_wait_for_inferior): Call displaced_step_clear.
594 (_initialize_infrun): Add "set debug displaced" command. Add
595 "maint set can-use-displaced-stepping" command. Clear
596 displaced_step_ptid.
597 * inferior.h (debug_displaced): Declare variable.
598 (displaced_step_dump_bytes): Declare function.
599
600 * Makefile.in (arch-utils.o, i386-linux-tdep.o): Update
601 dependencies.
602
0428b8f5
DJ
6032008-05-02 Daniel Jacobowitz <dan@codesourcery.com>
604
605 * arm-tdep.c (arm_mode_strings, arm_fallback_mode_string)
606 (arm_force_mode_string, arm_show_fallback_mode)
607 (arm_show_force_mode): New.
608 (arm_pc_is_thumb): Honor fallback-mode and force-mode. Use
609 arm_frame_is_thumb.
610 (_initialize_arm_tdep): Add "set arm fallback-mode"
611 and "set arm force-mode".
612 * NEWS: Document new commands.
613
d01a8610
AS
6142008-05-02 Andrew Stubbs <andrew.stubbs@st.com>
615
616 * main.h (batch_silent): Declare.
617 * event-top.c: Include main.h.
618 (gdb_setup_readline): Remove extern batch_silent declaration.
619 * infrun.c (normal_stop): Don't print source location when running in
620 --batch-silent mode.
621 * Makefile.in (event-top.o): Add main.h dependency.
622
5009afc5
AS
6232008-05-02 Andreas Schwab <schwab@suse.de>
624
625 * target.h (struct target_ops): Add
626 to_watchpoint_addr_within_range.
627 (target_watchpoint_addr_within_range): New function.
628 * target.c (update_current_target): Inherit
629 to_watchpoint_addr_within_range, defaulting to
630 default_watchpoint_addr_within_range.
631 (default_watchpoint_addr_within_range): New function.
632 (debug_to_watchpoint_addr_within_range): New function.
633 (setup_target_debug): Set to_watchpoint_addr_within_range.
634 * ppc-linux-nat.c (ppc_linux_watchpoint_addr_within_range):
635 New function.
636 (_initialize_ppc_linux_nat): Set to_watchpoint_addr_within_range.
637 * breakpoint.c (watchpoints_triggered): Use
638 target_watchpoint_addr_within_range.
639
a15c5c83
PA
6402008-05-01 Pedro Alves <pedro@codesourcery.com>
641
642 * configure.tgt: Add i[34567]86-*-dicos* and x86_64-*-dicos*.
643 (i[34567]86-*-dicos*, x86_64-*-dicos*):
644 Set gdb_osabi to GDB_OSABI_DICOS.
645
646 * defs.h (enum gdb_osabi): Add GDB_OSABI_DICOS.
647 * osabi.c (gdb_osabi_name): Add "DICOS".
648
649 * i386-dicos-tdep.c: New file.
650
651 * Makefile.in (ALL_TARGET_OBS): Add i386-dicos-tdep.o.
652 (ALLDEPFILES): Add i386-dicos-tdep.c.
653 (i386-dicos-tdep.o): New rule.
654
728c8f58
PA
6552008-05-01 Pedro Alves <pedro@codesourcery.com>
656
657 * linux-nat.c (linux_nat_switch_fork): Reinit GDB's thread list
658 and register the fork's PTID as a thread.
659
604133b5
AR
6602008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
661
662 PR gdb/1665
663 * breakpoint.c (create_breakpoint): Add breakpoint_ops argument and
664 assign its value to the breakpoint created.
665 (create_breakpoints): Add breakpoint_ops argument and pass it
666 to create_breakpoint call.
667 (break_command_really): Add breakpoint_ops argument and pass/assign
668 appropriately.
669 (break_command_1): Pass NULL as ops argument.
670 (set_breakpoint): Pass NULL as ops argument.
671 (print_one_exception_catchpoint): Print <PENDING> if no loc available.
672 (handle_gnu_v3_exceptions): Call generic breakpoint code to insert
673 catch and throw catchpoints.
5009afc5 674
1f906a60 6752008-05-01 Aleksandar Ristovski <aristovski@qnx.com>
1cded358
AR
676
677 PR gdb/2343
678 * corelow.c (core_open): Use gdbarch_target_signal_from_host to
679 translate signal numeric value from the target to GDB's enum
680 target_signal.
681 * gdbarch.c, gdbarch.h: Regenerated.
682 * gdbarch.sh: Added two new functions target_signal_from_host and
683 target_signal_to_host.
684 * target.h (default_target_signal_from_host,
685 default_target_signal_to_host): New functions - declarations.
686 * signals/signals.c (struct gdbarch): New declaration.
687 (default_target_signal_to_host, default_target_signal_from_host): New
688 functions.
689
b39cc962
DJ
6902008-05-01 Daniel Jacobowitz <dan@codesourcery.com>
691
692 * arm-linux-tdep.h (ARM_CPSR_REGNUM): Delete definition.
693 * arm-tdep.c (arm_frame_is_thumb): New.
694 (arm_pc_is_thumb): Clarify comment.
695 (thumb_analyze_prologue): Remove PC special case.
696 (thumb_scan_prologue): Take a block_addr argument. Use it for
697 find_pc_partial_function. Remove unused variables.
698 (arm_scan_prologue): Use arm_frame_is_thumb. Use the block address
699 for find_pc_partial_function. Remove PC special case.
700 (arm_prologue_prev_register): Add special handling for PC and CPSR.
701 (arm_dwarf2_prev_register, arm_dwarf2_frame_init_reg): New.
702 (arm_get_next_pc): Use arm_frame_is_thumb.
703 (arm_write_pc): Use CPSR_T instead of 0x20.
704 (arm_gdbarch_init): Call dwarf2_frame_set_init_reg.
705 * arm-tdep.h (enum gdb_regnum): Add ARM_CPSR_REGNUM.
706 (CPSR_T): Define.
707 * dwarf2-frame.c (dwarf2_frame_prev_register): Handle
708 DWARF2_FRAME_REG_FN.
709 * dwarf2-frame.h (enum dwarf2_frame_reg_rule): Add
710 DWARF2_FRAME_REG_FN.
711 (struct dwarf2_frame_state_reg): Add FN to loc union.
712
944f08ab
JB
7132008-05-01 Nick Roberts <nickrob@snap.net.nz>
714
715 * exec.c (print_section_info): Add missing '\n'.
716
cfc01461
VP
7172008-05-01 Vladimir Prus <vladimir@codesourcery.com>
718
719 * thread.c (add_thread): Move observer call to ...
720 (add_thread_silent): ... here.
721
1af5d7ce
UW
7222008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
723
724 * rs6000-tdep.c: Update for unwinder changes.
725 * ppcobsd-tdep.c: Likewise.
726
f089c433
UW
7272008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
728
729 * s390-tdep.c: Update for unwinder changes.
730
8d998b8f
UW
7312008-04-30 Ulrich Weigand <uweigand@de.ibm.com>
732
733 * spu-tdep.c: Update for unwinder changes.
734
5366653e
DJ
7352008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
736
737 * hppanbsd-tdep.c, m68kbsd-tdep.c, mn10300-linux-tdep.c,
738 ppc-linux-tdep.c, ppcnbsd-tdep.c, sparc-linux-tdep.c,
739 sparc64-linux-tdep.c: Update for unwinder changes.
740
b8a22b94
DJ
7412008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
742
743 * mipsnbsd-tdep.c, mips64obsd-tdep.c, mips-linux-tdep.c: Update
744 for unwinder changes.
745 * mips-tdep.c: Likewise.
746 (mips_stub_frame_cache): Unwind the ABI stack pointer, not the
747 raw one.
748
a262aec2
DJ
7492008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
750
751 * arm-linux-tdep.c, arm-tdep.c, armobsd-tdep.c: Update for
752 unwinder changes.
753
10458914
DJ
7542008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
755
756 Update i386 and amd64 ports for unwinder changes.
757
758 * amd64-tdep.c (amd64_frame_cache): Expect this_frame.
759 (amd64_frame_this_id, amd64_frame_prev_register): Update signature.
760 (amd64_frame_unwind): Use default_frame_sniffer.
761 (amd64_frame_sniffer): Delete.
762 (amd64_sigtramp_frame_cache): Expect this_frame.
763 (amd64_sigtramp_frame_this_id, amd64_sigtramp_frame_prev_register)
764 (amd64_sigtramp_frame_sniffer): Update signature.
765 (amd64_sigtramp_frame_unwind): Add amd64_sigtramp_frame_sniffer.
766 (amd64_frame_base_address): Expect this_frame.
767 (amd64_dummy_id): Renamed from amd64_unwind_dummy_id. Expect
768 this_frame.
769 (amd64_init_abi): Use set_gdbarch_dummy_id and
770 frame_unwind_append_unwinder.
771 * i386-tdep.c (i386_frame_cache): Expect this_frame.
772 (i386_frame_this_id, i386_frame_prev_register): Update signature.
773 (i386_frame_unwind): Use default_frame_sniffer.
774 (i386_frame_sniffer): Delete.
775 (i386_sigtramp_frame_cache): Expect this_frame.
776 (i386_sigtramp_frame_this_id, i386_sigtramp_frame_prev_register)
777 (i386_sigtramp_frame_sniffer): Update signature.
778 (i386_sigtramp_frame_unwind): Use i386_sigtramp_frame_sniffer.
779 (i386_frame_base_address): Update signature.
780 (i386_dummy_id): Rename from i386_unwind_dummy_id. Expect this_frame.
781 (i386_push_dummy_call): Update comment.
782 (i386_sigtramp_p, i386_svr4_sigtramp_p, i386_svr4_sigcontext_addr):
783 Expect this_frame.
784 (i386_gdbarch_init): Use set_gdbarch_dummy_id, dwarf2_append_unwinders,
785 and frame_unwind_append_unwinder.
786 * amd64-linux-tdep.c, amd64-sol2-tdep.c, amd64fbsd-tdep.c,
787 amd64nbsd-tdep.c, amd64obsd-tdep.c, i386-linux-tdep.c,
788 i386-nto-tdep.c, i386bsd-tdep.c, i386-sol2-tdep.c, i386obsd-tdep.c,
789 i386nbsd-tdep.c: Update for unwinder changes.
790
25492ce3
DJ
7912008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
792
793 * trad-frame.c (struct trad_frame_cache): Rename next_frame to this_frame.
794 (trad_frame_cache_zalloc, trad_frame_alloc_saved_regs): Expect
795 this_frame.
796 (trad_frame_get_prev_register, trad_frame_get_register): Update signature.
797 * trad-frame.h (trad_frame_cache_zalloc, trad_frame_get_register)
798 (trad_frame_alloc_saved_regs, trad_frame_get_prev_register): Update
799 signature.
800 * tramp-frame.c (tramp_frame_cache, tramp_frame_start): Expect
801 this_frame.
802 (tramp_frame_this_id, tramp_frame_prev_register, tramp_frame_sniffer):
803 Update signature.
804 * tramp-frame.h (struct tramp_frame): Update signature of init.
805 * Makefile.in (trad-frame.o): Update.
806
4a4e5149
DJ
8072008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
808
809 * dwarf2-frame.c (read_reg): Expect this_frame in the baton.
810 (execute_stack_op): Put this_frame in the baton.
811 (execute_cfa_program): Take this_frame.
812 (struct dwarf2_frame_ops): Update comment for signal_frame_p.
813 (dwarf2_frame_default_init_reg, dwarf2_frame_init_reg)
814 (dwarf2_frame_signal_frame_p, dwarf2_frame_cache)
815 (dwarf2_frame_this_id): Adjust to work on this_frame.
816 (dwarf2_signal_frame_this_id): Delete.
817 (dwarf2_frame_prev_register): Update signature. Use new frame
818 unwind methods.
819 (dwarf2_frame_sniffer): Update signature. Expect this_frame.
820 (dwarf2_frame_unwind, dwarf2_signal_frame_unwind): Add
821 dwarf2_frame_sniffer.
822 (dwarf2_append_unwinders): New.
823 (dwarf2_frame_base_address, dwarf2_frame_base_sniffer): Expect
824 this_frame.
825 * sparc-tdep.c (sparc32_dwarf2_struct_return_p)
826 (sparc32_dwarf2_frame_init_reg): Expect this_frame.
827 * cris-tdep.c (cris_dwarf2_frame_init_reg): Likewise.
828 * rs6000-tdep.c (ppc_dwarf2_frame_init_reg): Likewise.
829 * s390-tdep.c (s390_dwarf2_frame_init_reg): Likewise.
830 * sh-tdep.c (sh_dwarf2_frame_init_reg): Likewise.
831 * sparc64-tdep.c (sparc64_dwarf2_frame_init_reg): Likewise.
832 * dwarf2-frame.h (dwarf2_frame_sniffer): Delete declaration.
833 (dwarf2_append_unwinders): Declare.
834 (dwarf2_frame_base_sniffer): Update declaration.
835 * i386-linux-tdep.c (i386_linux_dwarf_signal_frame_p): Expect
836 this_frame.
837
669fac23
DJ
8382008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
839
840 Convert frame unwinders to use the current frame and
841 "struct value".
842
843 * frame.c (frame_debug): Make global.
844 (get_frame_id): Pass this frame to unwinder routines.
845 (frame_pc_unwind): Remove unused unwind->prev_pc support.
846 (do_frame_register_read): Do not discard the return value of
847 frame_register_read.
848 (frame_register_unwind): Remove debug messages. Use
849 frame_unwind_register_value.
850 (frame_unwind_register_value, get_frame_register_value): New
851 functions.
852 (create_new_frame, get_frame_base_address, get_frame_locals_address)
853 (get_frame_args_address, get_frame_type): Pass this frame to
854 unwinder routines.
855 (frame_cleanup_after_sniffer, frame_prepare_for_sniffer): New
856 functions.
857 * frame.h: Update comments.
858 (frame_debug, frame_unwind_register_value, get_frame_register_value)
859 (frame_prepare_for_sniffer): Declare.
860 * frame-unwind.h: Update comments and parameter names.
861 (default_frame_sniffer): Declare.
862 (frame_prev_register_ftype): Return a struct value *.
863 (struct frame_unwind): Remove prev_pc member.
864 (frame_unwind_sniffer_ftype, frame_unwind_append_sniffer): Delete.
865 (frame_unwind_append_unwinder, frame_unwind_got_optimized)
866 (frame_unwind_got_register, frame_unwind_got_memory)
867 (frame_unwind_got_constant, frame_unwind_got_address): Declare.
868 * frame-base.h: Update comments and parameter names.
869 * valops.c (value_fetch_lazy): Use get_frame_register_value. Iterate
870 if necessary. Add debugging output.
871 * sentinel-frame.c (sentinel_frame_prev_register)
872 (sentinel_frame_this_id): Update for new signature.
873 (sentinel_frame_prev_pc): Delete.
874 (sentinel_frame_unwinder): Remove prev_pc.
875 * ia64-tdep.c (ia64_libunwind_frame_unwind): Do not initialize
876 prev_pc.
877 * libunwind-frame.c (libunwind_frame_unwind): Likewise.
878 * frame-unwind.c (struct frame_unwind_table_entry): Remove sniffer.
879 (frame_unwind_append_sniffer): Delete.
880 (frame_unwind_append_unwinder): New function.
881 (frame_unwind_find_by_frame): Take this frame. Only use sniffers
882 from unwinders. Use frame_prepare_for_sniffer.
883 (default_frame_sniffer, frame_unwind_got_optimized)
884 (frame_unwind_got_register, frame_unwind_got_memory)
885 (frame_unwind_got_constant, frame_unwind_got_address): New functions.
886 * dummy-frame.c (dummy_frame_sniffer): Use gdbarch_dummy_id.
887 (dummy_frame_prev_register, dummy_frame_this_id): Update for new
888 signature.
889 * gdbarch.sh: Replace unwind_dummy_id with dummy_id.
890 * gdbarch.c, gdbarch.c: Regenerated.
891 * frame-base.c (default_frame_base_address)
892 (default_frame_locals_address, default_frame_args_address): Update
893 for new signature.
894 (frame_base_find_by_frame): Pass this frame to unwinder routines.
895 * infcall.c (call_function_by_hand): Update comments.
896 * Makefile.in (frame-unwind.o): Update dependencies.
897
9214ee5f
DJ
8982008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
899
900 * ada-lang.c (ada_value_primitive_packed_val): Only check
901 value_lazy for memory lvals.
902 * findvar.c (value_of_register_lazy): New function.
903 (locate_var_value): Only check value_lazy for memory lvals.
904 * valarith.c (value_subscripted_rvalue): Likewise.
905 * valops.c (value_fetch_lazy): Handle both memory and register
906 lvals.
907 (search_struct_field, value_slice): Only check value_lazy for memory
908 lvals.
909 * value.c (struct value): Update comment for lazy.
910 (value_primitive_field): Only check value_lazy for memory lvals.
911 * value.h (value_lazy): Update comment.
912 (value_of_register_lazy): Declare.
913
939643d7
DJ
9142008-04-30 Daniel Jacobowitz <dan@codesourcery.com>
915
916 * corefile.c (reopen_exec_file): Close any open files.
917
1de34ab7
JB
9182008-04-29 Joel Brobecker <brobecker@adacore.com>
919
920 * ia64-tdep.c (ia64_memory_remove_breakpoint): Set
921 show_memory_breakpoints to 1 while reading the instruction bundle.
922
ea42b34a
JB
9232008-04-29 Joel Brobecker <brobecker@adacore.com>
924
925 * gdbarch.sh: Document the return_value method. Explain that
926 the FUNCTYPE parameter might be NULL.
927 * gdbarch.h: Regenerated.
928 * sparc-tdep.c (sparc32_push_dummy_code): Do not pass the function
929 type when calling using_struct_return, as this is unnecessary
930 on this target.
931
a0fe373c
JB
9322008-04-28 Joel Brobecker <brobecker@adacore.com>
933
934 * terminal.h (create_tty_session): Fix return type.
935
c6446539
VP
9362008-04-26 Vladimir Prus <vladimir@codesourcery.com>
937
938 * mi/mi-interp.c (mi_new_thread): Quote the thread id.
939
2f069f6f
JB
9402008-04-26 Joel Brobecker <brobecker@adacore.com>
941
942 * breakpoint.c (condition_command, commands_from_control_command)
943 (break_command_really): Minor reformatting.
944
93b5768b
PA
9452008-04-25 Pedro Alves <pedro@codesourcery.com>
946
947 * dwarf2read.c (dwarf2_const_value): Handle DW_FORM_strp.
948
436675d3
PA
9492008-04-25 Pedro Alves <pedro@codesourcery.com>
950
951 * amd64-tdep.c (amd64_get_longjmp_target): New.
952 (amd64_init_abi): Register amd64_get_longjmp_target as
953 gdbarch_get_longjmp_target callback.
954 * i386-tdep.c (i386_get_longjmp_target): Remove 64-bit handling.
955
78b6a731
PA
9562008-04-25 Pedro Alves <pedro@codesourcery.com>
957
958 * breakpoint.h (enum bpstat_what_main_action): Delete
959 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE.
960
961 * breakpoint.c (clrs): Delete.
962 (bpstat_what): Update table.
963
964 * infrun.c (handle_inferior_event): Remove
965 BPSTAT_WHAT_CLEAR_LONGJMP_RESUME_SINGLE handling.
966
9e22b03a
VP
9672008-04-24 Vladimir Prus <vladimir@codesourcery.com>
968
969 * mi/mi-cmds.h (mi_cmd_args_ftype): Remove.
970 Adjust all prototypes using mi_cmd_args_ftype to use
971 mi_cmd_argv_ftype.
972 (struct mi_cmd): Remove the args_func field.
973 * mi/mi-cmds.c: Don't provide value for the args_func field.
974 * mi/mi-main.c (mi_execute_async_cli_command)
975 (mi_cmd_exec_run, mi_cmd_exec_next, mi_cmd_exec_next_instruction)
976 (mi_cmd_exec_step, mi_cmd_exec_step_instruction)
977 (mi_cmd_exec_finish, mi_cmd_exec_until, mi_cmd_exec_return)
978 (mi_cmd_exec_continue, mi_cmd_exec_interrupt)
979 (mi_cmd_target_download): Adjust.
980 (mi_cmd_target_select): Adjust. Pass 0 for from_tty parameter.
981 (mi_cmd_execute): Do not check for args_func.
982 (mi_execute_async_cli_command): Adjust.
983 * mi/mi-parse.c: Don't check for args_func.
984
721c02de 9852008-04-24 Vladimir Prus <vladimir@codesourcery.com>
18a18393
VP
986
987 * breakpoint.c (bpstat_check_location)
988 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions):
989 New, extracted from bpstat_stop_status.
990 (bpstat_stop_status): Use the above.
991
9922008-04-24 Vladimir Prus <vladimir@codesourcery.com>
993
721c02de
VP
994 * mi/mi-main.c (last_async_command): Rename to current_token.
995 (previous_async_command): Remove.
996 (mi_cmd_gdb_exit): Adjust.
997 (mi_cmd_exec_interrupt): Don't dance with previous_async_command.
998 (mi_cmd_target_select): Adjust.
999 (mi_cmd_execute): Don't set previous_async_command. Free token
1000 here even in async mode.
1001 (mi_execute_async_cli_command): Adjust.
1002 (mi_exec_async_cli_cmd_continuation): Adjust. Do not free the
1003 token.
1004 (mi_load_progress): Adjust.
1005
f13468d9
VP
10062008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1007
1008 * infcmd.c (step_1_continuation): Always disable longjmp
1009 breakpoint if we're not going to do another step.
1010
f107f563
VP
10112008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1012
1013 exec_cleanup murder.
1014 * breakpoint.c (until_break_command_continuation): Add
1015 the 'error' parameter. Directly delete the breakoint as
1016 opposed to running cleanups.
1017 (until_break_command): Install continuation only
1018 after starting the target. Don't use exec cleanups,
1019 use ordinary cleanups. Discard cleanups is successfully
1020 started the target in async mode.
1021 (make_cleanup_delete_breakpoint): Remove.
1022 * breakpoint.h (make_cleanup_delete_breakpoint): Remove
1023 declaration.
1024 * defs.h (do_exec_cleanups, make_exec_cleanup): Remove
1025 declarations.
1026 (struct continations): Add the 'error' parameter to the
1027 continuation_hook field.
1028 (add_continuation, do_all_continuations)
1029 (add_intermediate_continuation)
1030 (do_all_intermediate_continuations): Add the 'error' parameter.
1031 * exceptions.c (throw_exception): Don't call do_exec_cleanups.
1032 * inf-loop.c (inferior_event_handler): Instead of calling
1033 discard_all_continuations, use do_all_continuations with 1 as
1034 'error' parameter. Pass 0 as 'error' parameter in existing uses
1035 of discard_all_continuations.
1036 * infcmd.c (step_1): Do not use exec cleanup. For async case, discard
1037 cleanups.
1038 (step_once): Install continuation only after resuming the target.
1039 (step_1_continuation): Disable longjmp breakpoint on error.
1040 (finish_command_continuation): Add the error parameter. Delete
1041 the finish breakpoint directly, do not use cleanups.
1042 (finish_command): Do not use exec_cleanups. Always setup
1043 continuation. For sync case, immediately run them.
1044 (attach_command_continuation): Add the error parameter.
1045 * infrun.c (fetch_inferior_event): Do not use exec cleanups to
1046 remove step_resume_breakpoint -- adjust delete it directly.
1047 * interps.c (interp_set): Adjust call to do_all_continations.
1048 * mi/mi-interp.c (mi_interpreter_exec_continuation): Do not
1049 do exec cleanups.
1050 * mi/mi-main.c (mi_cmd_target_select): Do not do exec
1051 cleanups.
1052 (mi_cmd_execute): Do not use exec_cleanup.
1053 (mi_execute_async_cli_command): Simplify the string concatenation
1054 logic. Do no use exec cleanup.
1055 (mi_exec_async_cli_cmd_continuation): New parameter error.
1056 Free last_async_command.
1057 * top.c (command_line_handler_continuation): New parameter error.
1058 * utils.c (exec_cleanup_chain, make_exec_cleanup)
1059 (do_exec_cleanups): Remove.
1060 (add_continuation, do_all_continations)
1061 (add_intermediate_continuation)
1062 (do_all_intermediate_continuations): New parameter error.
1063
74960c60
VP
10642008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1065
1066 * breakpoint.h (bp_location_p): New typedef.
1067 Register a vector of bp_location_p.
1068 * breakpoint.c (always_inserted_mode)
1069 (show_always_inserted_mode): New.
1070 (unlink_locations_from_global_list): Remove.
1071 (update_global_location_list)
1072 (update_global_location_list_nothrow): New.
1073 (update_watchpoint): Don't free locations.
1074 (should_insert_location): New.
1075 (insert_bp_location): Use should_insert_location.
1076 (insert_breakpoint_locations): Copied from
1077 insert_breakpoints.
1078 (insert_breakpoint): Use insert_breakpoint_locations.
1079 (bpstat_stop_status): Call update_global_location_list
1080 when disabling breakpoint.
1081 (allocate_bp_location): Don't add to bp_location_chain.
1082 (set_raw_breakpoint)
1083 (create_longjmp_breakpoint, enable_longjmp_breakpoint)
1084 (disable_longjmp_breakpoint, create_overlay_event_breakpoint)
1085 (enable_overlay_breakpoints, disable_overlay_breakpoints)
1086 (set_longjmp_resume_breakpoint)
1087 (enable_watchpoints_after_interactive_call_stop)
1088 (disable_watchpoints_before_interactive_call_start)
1089 (create_internal_breakpoint)
1090 (create_fork_vfork_event_catchpoint)
1091 (create_exec_event_catchpoint, set_momentary_breakpoint)
1092 (create_breakpoints, break_command_1, watch_command_1)
1093 (create_exception_catchpoint)
1094 (handle_gnu_v3_exceptions)
1095 (disable_breakpoint, breakpoint_re_set_one)
1096 (create_thread_event_breakpoint, create_solib_event_breakpoint)
1097 (create_ada_exception_breakpoint): : Don't call check_duplicates.
1098 Call update_global_location_list.
1099 (delete_breakpoint): Don't remove locations and don't
1100 try to reinsert them. Call update_global_location_list.
1101 (update_breakpoint_locations): Likewise.
1102 (restore_always_inserted_mode): New.
1103 (update_breakpoints_after_exec): Temporary disable
1104 always inserted mode.
1105 * Makefile.in: Update dependencies.
1106
1107 * infrun.c (proceed): Remove breakpoints while stepping
1108 over breakpoint.
1109 (handle_inferior_event): Don't remove or insert
1110 breakpoints.
1111 * linux-fork.c (checkpoint_command): Remove breakpoints
1112 before fork and insert after.
1113 (linux_fork_context): Remove breakpoints before switch
1114 and insert after.
1115 * target.c (target_disconnect, target_detach): Remove
1116 breakpoints from target.
1117
1118
d24317b4
VP
11192008-04-24 Vladimir Prus <vladimir@codesourcery.com>
1120
1121 * breakpoint.c (print_one_breakpoint_location): In MI
1122 mode, report the location string the breakpoint was
1123 originally created with.
1124
ee967b5f
MG
11252008-04-23 Maxim Grigoriev <maxim2405@gmail.com>
1126
1127 * Makefile.in (xtensa-tdep.o): Update dependencies.
1128 * configure.tgt (xtensa*): Update dependencies.
1129 * xtensa-tdep.c (arreg_number): Renamed from areg_number.
1130 Local variable areg renamed to arreg.
1131 (areg_number): New function.
1132 (xtensa_pseudo_register_read, xtensa_pseudo_register_write)
1133 (xtensa_extract_return_value, xtensa_store_return_value): areg_number
1134 replaced by arreg_number.
1135 (xtensa_windowed_frame_cache, struct xtensa_frame_cache): New comments.
1136 (xtensa_alloc_frame_cache): Initialize cache->wd.ws.
1137 (xtensa_scan_prologue): New function.
1138 (xtensa_frame_cache): New local fp_regnum. Handle separately the case,
1139 when ENTRY instraction hasn't been executed yet. Get the frame pointer
1140 value based on prologue analysis. Fix the bugs preventing WS and
1141 AR4-AR7/A11 registers from getting right values for intermediate frames,
1142 whose registers have been already spilled.
1143 (xtensa_frame_prev_register): Fix WS register value. Use are_number
1144 and arreg_number appropriately.
1145 (xtensa_gdbarch_init): Set solib_svr4_fetch_link_map_offsets to
1146 svr4_ilp32_fetch_link_map_offsets.
1147
09d71d23
AS
11482008-04-23 Andrew Stubbs <andrew.stubbs@st.com>
1149
1150 * printcmd.c: Define USE_PRINTF_I64 and PRINTF_HAS_LONG_LONG on MinGW.
1151 (printf_command): Convert %lld to %I64d when USE_PRINTF_I64 set.
1152
fdc59709
PB
11532008-04-23 Paolo Bonzini <bonzini@gnu.org>
1154
1155 * acinclude.m4: Add override.m4.
1156 * configure: Regenerate.
1157
0bcd0149
JK
11582008-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1159
1160 * ada-lang.c (get_selections): Variable PROMPT made non-const and
1161 initialized with a trailing space now. Use PROMPT_ARG of
1162 COMMAND_LINE_INPUT instead of printing it ourselves.
1163
88d8a8e0
JB
11642008-04-22 Joel Brobecker <brobecker@adacore.com>
1165
1166 * NEWS: Document support for 64-bit core file.
1167
c055b101
CV
11682008-04-22 Corinna Vinschen <vinschen@redhat.com>
1169
1170 * NEWS: Add information on calling convention and new SH CLI options.
1171
1172 * sh-tdep.c (sh_cc_gcc): New static string.
1173 (sh_cc_renesas): Ditto.
1174 (sh_cc_enum): New static string array.
1175 (sh_active_calling_convention): New static string pointer denoting
1176 active user chosen ABI.
1177 (sh_is_renesas_calling_convention): New function to return function
1178 specific ABI, or user choice if necessary.
1179 (sh_use_struct_convention): Rename first argument and turn around its
1180 meaning. Check for renesas ABI and return accordingly.
1181 (sh_use_struct_convention_nofpu): New function.
1182 (sh_next_flt_argreg): Get function type as third parameter. Check
1183 for renesas ABI and choose floating registers accordingly.
1184 (sh_push_dummy_call_fpu): Check for ABI and choose argument slot and
1185 struct return slot accordingly.
1186 (sh_push_dummy_call_nofpu): Ditto.
1187 (sh_return_value_nofpu): Call sh_use_struct_convention_nofpu from here.
1188 Evaluate ABI and give to sh_use_struct_convention_nofpu.
1189 (sh_return_value_fpu): Evaluate ABI and give to
1190 sh_use_struct_convention.
1191 (show_sh_command): New function.
1192 (set_sh_command): Ditto.
1193 (_initialize_sh_tdep): Initialize `set/show sh calling-convention
1194 CLI command.
1195
1196 * gdbarch.sh (return_value): Add func_type argument.
1197 * gdbarch.c: Regenerate.
1198 * gdbarch.h: Ditto.
1199 * eval.c (evaluate_subexp_standard): Rename local variable value_type to
1200 val_type so as not to collide with value_type function. Call
1201 using_struct_return with additional function type argument.
1202 * infcall.c (call_function_by_hand): Call using_struct_return and
1203 gdbarch_return_value with additional function type argument.
1204 * infcmd.c (print_return_value): Take addition func_type argument.
1205 Call gdbarch_return_value with additional function type argument.
1206 (finish_command_continuation): Call print_return_value with additional
1207 function type argument.
1208 (finish_command): Ditto.
1209 * sparc-tdep.c (sparc32_push_dummy_code): Call using_struct_return with
1210 additional function type argument.
1211 * stack.c (return_command): Call using_struct_return and
1212 gdbarch_return_value with additional function type argument.
1213 * value.c (using_struct_return): Take additional function type argument.
1214 * value.h (using_struct_return): Accommodate declaration.
1215 * alpha-tdep.c (alpha_return_value): Add func_type argument.
1216 * amd64-tdep.c (amd64_return_value): Ditto.
1217 * arm-tdep.c (arm_return_value): Ditto.
1218 * avr-tdep.c (avr_return_value): Ditto.
1219 * cris-tdep.c (cris_return_value): Ditto.
1220 * frv-tdep.c (frv_return_value): Ditto.
1221 * h8300-tdep.c (h8300_return_value): Ditto.
1222 (h8300h_return_value): Ditto.
1223 * hppa-tdep.c (hppa32_return_value): Ditto.
1224 (hppa64_return_value): Ditto.
1225 * i386-tdep.c (i386_return_value): Ditto.
1226 * ia64-tdep.c (ia64_return_value): Ditto.
1227 * iq2000-tdep.c (iq2000_return_value): Ditto.
1228 * m32c-tdep.c (m32c_return_value): Ditto.
1229 * m32r-tdep.c (m32r_return_value): Ditto.
1230 * m68hc11-tdep.c (m68hc11_return_value): Ditto.
1231 * m68k-tdep.c (m68k_return_value): Ditto.
1232 (m68k_svr4_return_value): Ditto.
1233 * m88k-tdep.c (m88k_return_value): Ditto.
1234 * mep-tdep.c (mep_return_value): Ditto.
1235 * mips-tdep.c (mips_eabi_return_value): Ditto.
1236 (mips_n32n64_return_value): Ditto.
1237 (mips_o32_return_value): Ditto.
1238 (mips_o64_return_value): Ditto.
1239 * mn10300-tdep.c (mn10300_return_value): Ditto.
1240 * mt-tdep.c (mt_return_value): Ditto.
1241 * ppc-linux-tdep.c (ppc_linux_return_value): Ditto.
1242 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Ditto.
1243 (ppc_sysv_abi_broken_return_value): Ditto.
1244 (ppc64_sysv_abi_return_value): Ditto.
1245 * ppc-tdep.h (ppc_sysv_abi_return_value): Ditto.
1246 (ppc_sysv_abi_broken_return_value): Ditto.
1247 (ppc64_sysv_abi_return_value): Ditto.
1248 * ppcnbsd-tdep.c (ppcnbsd_return_value): Ditto.
1249 * rs6000-tdep.c (rs6000_return_value): Ditto.
1250 * s390-tdep.c (s390_return_value): Ditto.
1251 * score-tdep.c (score_return_value): Ditto.
1252 * sh-tdep.c (sh_return_value_nofpu): Ditto.
1253 (sh_return_value_fpu): Ditto.
1254 * sh64-tdep.c (sh64_return_value): Ditto.
1255 * sparc-tdep.c (sparc32_return_value): Ditto.
1256 * sparc64-tdep.c (sparc64_return_value): Ditto.
1257 * spu-tdep.c (spu_return_value): Ditto.
1258 * v850-tdep.c (v850_return_value): Ditto.
1259 * vax-tdep.c (vax_return_value): Ditto.
1260 * xstormy16-tdep.c (xstormy16_return_value): Ditto.
1261 * xtensa-tdep.c (xtensa_return_value): Ditto.
1262
1263 * gdbtypes.h (struct type): Add calling_convention member.
1264 * dwarf2read.c (read_subroutine_type): Add calling convention read
1265 from DW_AT_calling_convention attribute to function type.
1266
9eec4d1e
MD
12672008-04-22 Markus Deuling <deuling@de.ibm.com>
1268
1269 * eval.c (evaluate_subexp_standard): Use value_subscripted_rvalue for
1270 multi_f77_subscript to support values from registers.
1271 * valarith.c (value_subscripted_rvalue): Remove prototype and static.
1272 * value.h (value_subscripted_rvalue): Add prototype.
1273
1274 * f-typeprint.c (f_type_print_base): Add support for TYPE_CODE_UNION.
1275 Fix output.
1276 * f-valprint.c (f_val_print): Likewise.
1277
ef72380d
CS
12782008-04-21 Craig Silverstein <csilvers@google.com>
1279
1280 * dwarf2read.c (zlib_decompress_section): Define abfd in the
1281 !HAVE_ZLIB_H case.
1282
ff8e85c3
PA
12832008-04-21 Pedro Alves <pedro@codesourcery.com>
1284
1285 * symfile.c (syms_from_objfile): Don't warn if lowest loadable
1286 section is not a code section.
1287
31fffb02
CS
12882008-04-19 Craig Silverstein <csilvers@google.com>
1289
1290 * NEWS: Add information on compressed debug sections.
1291
8e91f023
VP
12922008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1293
1294 * mi/mi-cmd-var.c (varobj_update_one): Print new
1295 value for variable objects that changed type.
1296
603ba1de
VP
12972008-04-19 Vladimir Prus <vladimir@codesourcery.com>
1298
1299 * varobj.c (varobj_invalidate): Don't touch floating
1300 varobjs.
1301
7fc830e2
MK
13022008-04-19 Mark Kettenis <kettenis@gnu.org>
1303
1304 * symtab.c: (multiple_symbols_modes, multiple_symbols_ask)
1305 (multiple_symbols_cancel): Remove extra const.
1306 * symtab.h: Likewise.
1307
bcbf8b68
NR
13082008-04-19 Nick Roberts <nickrob@snap.net.nz>
1309
1310 * interps.c (top_level_interpreter): Rename static variable...
1311 (top_level_interpreter_ptr): ...to this.
1312 (top_level_interpreter): New function.
1313
1314 * interps.h: New extern for top_level_interpreter.
1315
1316 * linespec.c: Include interps.h and mi/mi-cmds.h.
1317 (decode_line_2): When using MI, always set all breakpoints in menu.
1318
1319 * Makefile.in (linespec.o, mi-interp.o): Add dependencies.
1320
31fffb02 13212008-04-18 Craig Silverstein <csilvers@google.com>
233a11ab
CS
1322
1323 * configure.ac (AC_SEARCH_LIBS): Add check for zlib.
1324 * config.in, configure: Regenerate.
1325 * dwarf2read.c: Include zlib.h if present.
1326 Modified *_SECTION macros.
1327 (section_is_p): New.
1328 (dwarf2_locate_sections): Use section_is_p instead of strcmp
1329 (dwarf2_resize_section): New.
1330 to determine whether a given section has a given name.
1331 (zlib_decompress_section): New.
1332 (dwarf2_read_section): Read the compressed section if present
1333 in the binary.
1334 * MAINTAINERS: Added myself to section Write After Approval.
bcbf8b68 1335
a03b3a97
TJB
13362008-04-18 Thiago Jung Bauermann <bauerman@br.ibm.com>
1337
1338 * defs.h (exec_set_section_offsets): Remove prototype.
1339 * exec.c (exec_set_section_offsets): Remove function.
1340
9e386756
JB
13412008-04-18 Joel Brobecker <brobecker@adacore.com>
1342
1343 * stabsread.c (cleanup_undefined_types_1): Add instance flags check
1344 in the search for the matching symbol.
1345
2ec93238
MK
13462008-04-17 Marc Khouzam <marc.khouzam@ericsson.com>
1347
1348 * breakpoint.c (update_watchpoint): Always reparse
1349 condition.
1350
e9bbd7c5
JB
13512008-04-17 Joel Brobecker <brobecker@adacore.com>
1352
1353 * breakpoint.c (print_one_breakpoint_location): Make sure to print
1354 the breakpoint address only once.
1355
475bbd17
JB
13562008-04-17 Dennis Roberts <dennis.roberts@sunquestinfo.com>
1357
1358 * rs6000-tdep.c (rs6000_gdbarch_init): Use the BFD architecture,
1359 rather than a hard-coded architecture, for xcoff executables.
1360
86991504
DE
13612008-04-17 Doug Evans <dje@google.com>
1362
4584e32e
DE
1363 * buildsym.c (watch_main_source_file_lossage): New fn.
1364 (end_symtab): Call it.
1365
86991504
DE
1366 * source.c (find_and_open_source): Add some comments clarifying
1367 handling of FULLNAME argument. Make static. Remove pointless
1368 xstrdup/xfree.
1369
0a320680
PA
13702008-04-17 Pedro Alves <pedro@codesourcery.com>
1371
1372 * inf-loop.c (inferior_event_handler): Also run the intermediate
1373 continuations in the INF_EXEC_COMPLETE case.
1374
700b53b1
TT
13752008-04-16 Tom Tromey <tromey@redhat.com>
1376
1377 * cli/cli-decode.h (CMD_ASYNC_OK): New define.
1378 (set_cmd_async_ok, get_cmd_async_ok): Declare.
1379 * cli/cli-decode.c (set_cmd_async_ok): New function.
1380 (get_cmd_async_ok): New function.
1381 * cli/cli-cmds.c (init_cli_cmds): Mark "pwd", "help", "info", and
1382 "show" as async-ok.
1383 * top.c (execute_command): Use get_cmd_async_ok.
1384 * infcmd.c: Include cli/cli-decode.h.
1385 (_initialize_infcmd): Mark "interrupt" as async-ok.
1386 * Makefile.in (infcmd.o): Depend on cli_decode_h.
1387
dacec2a8
DJ
13882008-04-16 Daniel Jacobowitz <dan@codesourcery.com>
1389
1390 PR gdb/2445
1391 * exec.c: Correct "arch-utils.h" include.
1392
1f906a60 13932008-04-15 Aleksandar Ristovski <aristovski@qnx.com>
2cec12e5
AR
1394
1395 PR gdb/2424
1396 * infrun.c (normal_stop) Move breakpoint_auto_delete further down
1397 to allow printing to 'see' real reason of stop. This fixes PR 2424.
1398 * breakpoint.c (bpdisp_texst): New function. The function takes over
1399 the role of bpstats static array in print_one_breakpoint_location.
1400 (print_it_typical): Print "Temporary breakpoint" instead
1401 of just "Breakpoint" when breakpoint is, well, temporary. For mi-like
1402 protocols, print disp field.
1403 (print_one_breakpoint_location): Removed bpdisps static definition.
1404 Call new bpstat_text function to get value for 'disp' field.
1405 (mention): Print "Temporary breakpoint" instead of just "Breakpoint".
1406
4d7b71aa
DJ
14072008-04-15 Daniel Jacobowitz <dan@codesourcery.com>
1408
1409 * gnulib/Makefile.am, gnulib/m4/gnulib-cache.m4,
1410 gnulib/aux/link-warning.h, gnulib/extra/link-warning.h: Adjust
1411 by rerunning gnulib-tool with --aux-dir=gnulib/extra.
1412 * gnulib/Makefile.in: Regenerate.
1413
aa11fd3f
DJ
14142008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1415
1416 * Makefile.in (GNULIB_H): New. Trigger all-lib.
1417 (defs_h): Use $(GNULIB_H).
1418 (all-lib): Depend on gnulib/Makefile.
1419 (gnulib/Makefile): Regenerate gnulib/Makefile and gnulib/.deps.
1420 * config.in, gnulib/Makefile.in: Regenerated.
1421
e28b3332
DJ
14222008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1423
1424 * Makefile.in (LIBGNU, INCGNU): Define.
1425 (INTERNAL_CFLAGS_BASE): Add INCGNU.
1426 (INTERNAL_LIBS, CLIBS, CDEPS): Add LIBGNU.
1427 (CLEANDIRS): New.
1428 ($(LIBGNU), all-lib): New rules.
1429 (clean, distclean, do-maintainer-clean): Use CLEANDIRS.
1430 * configure.ac: Use gl_EARLY, gl_INIT, and AM_INIT_AUTOMAKE.
1431 Simplify AC_CONFIG_AUX_DIR. Generate gnulib/Makefile.
1432 * gnulib: New directory, from gnulib-tool.
1433 * configure, aclocal.m4: Regenerated.
1434
e3bc4218
DJ
14352008-04-14 Daniel Jacobowitz <dan@codesourcery.com>
1436
1437 * linux-thread-db.c (have_threads_callback): Check thread->private.
1438
fcacd99f
VP
14392008-04-13 Nick Roberts <nickrob@snap.net.nz>
1440 Vladimir Prus <vladimir@codesourcery.com>
1441
1442 Fix @-varobjs.
1443 * varobj.c (value_of_root): Update the expression for
1444 floating varobjs.
1445 * mi/mi-cmd-var.c (varobj_update_one): If type has changed,
1446 report that.
1447
de051565
MK
14482008-04-09 Marc Khouzam <marc.khouzam@ericsson.com>
1449
1450 * mi/mi-cmd-var.c: Include "mi-getopt.h".
1451 (mi_parse_format): New. Factored out from mi_cmd_var_set_format.
1452 (mi_cmd_var_set_format): Use new mi_parse_format.
1453 (mi_cmd_var_evaluate_expression): Support for -f option to specify
1454 format.
1455 * Makefile.in (mi-cmd-var.o): Update dependencies.
1456
1457 * varobj.h (varobj_get_formatted_value): Declare.
1458 * varobj.c (my_value_of_variable): Added format parameter.
1459 (cplus_value_of_variable): Likewise.
1460 (java_value_of_variable): Likewise.
1461 (c_value_of_variable): Likewise. Evaluate expression based
1462 on format parameter.
1463 (struct language_specific): Add format parameter to function member
1464 *value_of_variable.
1465 (varobj_get_formatted_value): New.
1466 (varobj_get_value): Added format parameter to method call.
1467
56953f80
JB
14682008-04-08 Joel Brobecker <brobecker@adacore.com>
1469
1470 * stabsread.c (cleanup_undefined_types_noname): Manually set the
1471 instance flags of the undefined type before calling replace_type.
1472
e4e33b9e
VP
14732008-04-08 Vladimir Prus <vladimir@codesourcery.com>
1474
1475 * target.h (enum strata): Remove the download_stratum.
1476
92b5c263
DE
14772008-04-07 Doug Evans <dje@google.com>
1478
1479 * buildsym.h (last_source_file): Add dwarf info to comment.
1480 (last_source_start_addr): Ditto.
1481
effa26a9
PA
14822008-04-07 Pedro Alves <pedro@codesourcery.com>
1483
1484 * alphanbsd-tdep.c: Include "target.h".
1485 * mn10300-tdep.c: Include "target.h".
1486 * Makefile.in (alphanbsd-tdep.o, mn10300-tdep.o): Update.
1487
2b2d9e11
VP
14882008-04-06 Vladimir Prus <vladimir@codesourcery.com>
1489
1490 Fix breakpoint condition that use member variables.
1491 * valops.c (check_field): Remove.
1492 (check_field_in): Rename to check_field.
1493 (value_of_this): Use la_name_of_this.
1494 * value.h (check_field): Adjust prototype.
1495
1496 * language.h (la_value_of_this): Rename to la_name_of_this.
1497 * language.c (unknown_language_defn): Specify "this" for
1498 name_of_this.
1499 (auto_language_defn): Likewise.
1500 (local_language_defn): Likewise.
1501 * ada-lang.c (ada_language_defn): Adjust comment.
1502 * c-lang.c (c_language_defn): Adjust comment.
1503 (cplus_language_defn): Specify "this" for name_of_this.
1504 (asm_language_defn): Adjust comment.
1505 (minimal_language_defn): Adjust comment.
1506 * f-lang.c (f_language_defn): Specify NULL for name_of_this.
1507 * jv-lang.c (java_language_defn): Specify "this" for name_of_this.
1508 * m2-lang.c (m2_language_defn): Specify "this" for name_of_this.
1509 * objc-lang.c (objc_language_defn): Specify "self" for
1510 name_of_this.
1511 * p-lang.c (pascal_language_defn): Specify "this" for
1512 name_of_this.
1513 * scm-lang.c (scm_language_defn): Specify NULL for name_of_this.
1514
1515 * symtab.c (lookup_symbol_aux): Lookup "this" in the
1516 proper scope, and check for field in type of "this", without
1517 trying to create a value.
1518
a13e061a
PA
15192008-04-04 Pedro Alves <pedro@codesourcery.com>
1520
1521 * mi/mi-cmds.h (enum mi_cmd_result): Delete MI_CMD_ERROR.
1522 (mi_error_message): Delete declaration.
1523 * mi/mi-interp.c (mi_cmd_interpreter_exec): Call error instead of
1524 returning MI_CMD_ERROR.
1525 * mi/mi-main.c (mi_error_message): Delete.
1526 (mi_cmd_exec_interrupt):
1527 (mi_cmd_thread_select, mi_cmd_thread_list_ids)
1528 (mi_cmd_thread_info): Call error instead of returning
1529 MI_CMD_ERROR.
1530 (mi_cmd_data_list_register_values): Call error instead of
1531 returning MI_CMD_ERROR. Adapt to new get_register interface.
1532 (get_register): Change return typo to void. Call error instead of
1533 returning MI_CMD_ERROR.
1534 (mi_cmd_data_write_register_values): Call error instead of
1535 returning MI_CMD_ERROR.
1536 (mi_cmd_list_features): Return MI_CMD_DONE.
1537 (captured_mi_execute_command): Remove MI_CMD_ERROR handling.
1538 (mi_execute_command): Always print exceptions with -error.
1539
aad4b048
JB
15402008-04-04 Joel Brobecker <brobecker@adacore.com>
1541
1542 * NEWS: Mention new commands set/show multiple-symbols.
1543
717d2f5a
JB
15442008-04-03 Joel Brobecker <brobecker@adacore.com>
1545
1546 * symtab.c (multiple_symbols_ask, multiple_symbols_all)
1547 (multiple_symbols_cancel): New constants.
1548 (multiple_symbols_modes, multiple_symbols_mode): New static globals.
1549 (multiple_symbols_select_mode): New function.
1550 (_initialize_symtab): Add new set/show multiple-symbols commands.
1551 * symtab.h (multiple_symbols_ask, multiple_symbols_all)
1552 (multiple_symbols_cancel, multiple_symbols_select_mode): Declare.
1553 * ada-lang.c (user_select_syms): Add handling of new multiple-symbols
1554 setting.
1555 * linespec.c (decode_line_2): Likewise.
1556
f73634e5
DE
15572008-04-03 Doug Evans <dje@sebabeach.org>
1558
1559 * symtab.h (enum free_code): Delete free_contents, unused.
1560 * symmisc.c (free_symtab_block): Delete.
1561 (free_symtab, case free_code): Delete.
1562
1f906a60 15632008-04-01 Aleksandar Ristovski <aristovski@qnx.com>
6af87b03
AR
1564
1565 * valops.c (value_cast_structs): New function. Cast related
1566 STRUCT types up/down and return cast value. The body of this
1567 function comes mostly from value_cast_pointers.
1568 (value_cast_pointers): Code for actual cast STRUCT-STRUCT moved
1569 to value_cast_structs. Now value_cast_pointers needs only create
1570 appropriate reference after using value_cast_structs for actual
1571 casting.
1572 (value_cast): Handle references.
1573
61ad90e1
MK
15742008-04-01 Marc Khouzam <marc.khouzam@ericsson.com>
1575
1576 * MAINTAINERS: Added myself to section Write After Approval.
1577
b7d038ae
DJ
15782008-03-30 Daniel Jacobowitz <dan@codesourcery.com>
1579
1580 * ia64-tdep.c (examine_prologue): Correct array access.
1581
1f906a60 15822008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
c836824f
AR
1583
1584 * cp-support.c (first_component_command): Return if no arguments.
1585
df3ac606
CD
15862008-03-28 Carlos O'Donell <carlos@codesourcery.com>
1587
1588 * ser-mingw.c (ser_windows_open): Open requested name.
1589
ca933485
AR
15902008-03-28 Aleksandar Ristovski <aristovski@qnx.com>
1591
1592 * MAINTAINERS: Added myself.
1593
5f667f2d
PA
15942008-03-28 Pedro Alves <pedro@codesourcery.com>
1595
1596 * target.c (find_default_run_target): Allow a NULL `do_mesg'
1597 parameter. If it is NULL, don't call error.
1598 (find_default_can_async_p, find_default_is_async_p): Pass NULL as
1599 `do_mesg' parameter to find_default_run_target. If no target was
1600 found, return 0.
1601
e741f4d4
DJ
16022008-03-28 Daniel Jacobowitz <dan@codesourcery.com>
1603
1604 * mips-linux-tdep.c: Update N32/N64 signal frame comments.
1605 (N64_SIGCONTEXT_LO, N64_SIGCONTEXT_PC, N64_SIGCONTEXT_FPCSR): Update.
1606 (N64_SIGCONTEXT_FIR, N64_SIGCONTEXT_CAUSE, N64_SIGCONTEXT_BADVADDR):
1607 Delete.
1608 (mips_linux_n32n64_sigframe_init): Do not record cause or badvaddr.
1609
f66d8205 16102008-03-27 Joel Brobecker <brobecker@adacore.com>
1611
1612 GDB 6.8 released.
1613
221c031f
UW
16142008-03-27 Ulrich Weigand <uweigand@de.ibm.com>
1615
1616 * features/Makefile (%.dat): Set xmltarget to the base filename
1617 of the XML source, without subdirectory.
1618 * regformats/rs6000/powerpc-32.dat: Regenerate.
1619 * regformats/rs6000/powerpc-64.dat: Regenerate.
1620 * regformats/rs6000/powerpc-e500.dat: Regenerate.
1621
40c58d95
MD
16222008-03-27 Markus Deuling <deuling@de.ibm.com>
1623
1624 * xcoffread.c (scan_xcoff_symtab): Replace current_gdbarch by
1625 objfile arch.
1626
bb1ec7d2
NR
16272008-03-27 Nick Roberts <nickrob@snap.net.nz>
1628
1629 * mi/mi-main.c (enum captured_mi_execute_command_actions):
1630 Spell suppress in EXECUTE_COMMAND_SUPPRESS_PROMPT correctly.
1631
5e2b427d
UW
16322008-03-26 Ulrich Weigand <uweigand@de.ibm.com>
1633
1634 * objfiles.h (struct objfile): New GDBARCH member.
1635 (get_objfile_arch): Add prototype.
1636 * objfiles.c: Include "arch-utils.h".
1637 (allocate_objfile): Look up gdbarch associated with bfd.
1638 (get_objfile_arch): New function.
1639 * Makefile (objfiles.o): Update dependencies.
1640
1641 * dwarf2-frame.c (decode_frame_entry_1): Replace current_gdbarch
1642 by objfile arch.
1643 * dwarf2loc.c (dwarf_expr_read_reg): Replace current_gdbarch
1644 by frame arch.
1645 (locexpr_describe_location): Replace current_gdbarch by
1646 objfile arch.
1647 * dwarf2read.c (die_type): Replace current_gdbarch by objfile arch.
1648 (dwarf2_add_field): Likewise.
1649 (read_tag_pointer_type): Likewise.
1650 (read_base_type): Likewise.
1651 (new_symbol): Likewise.
1652
1653 * coffread.c (decode_type): Add OBJFILE argument. Update callers.
1654 (decode_base_type, decode_function_type): Likewise.
1655 (coff_read_struct_type, coff_read_enum_type): Likewise.
1656 (coff_symtab_read): Replace current_gdbarch by objfile arch.
1657 (decode_base_type): Likewise.
1658 (coff_read_enum_type): Likewise.
1659 (coff_read_struct_type): Replace current_objfile by OBJFILE argument.
1660 (coff_read_enum_type): Likewise.
1661
1662 * dbxread.c (read_dbx_symtab): Replace current_gdbarch by objfile arch.
1663 (end_psymtab): Likewise.
1664 (process_one_symbol): Likewise.
1665
1666 * mdebugread.c (parse_symbol): Replace current_gdbarch by objfile arch.
1667 (parse_procedure): Likewise.
1668 (parse_partial_symbols): Likewise.
1669
1670 * somread.c (som_symtab_read): Replace current_gdbarch by objfile arch.
1671
1672 * stabsread.c (define_symbol): Replace current_gdbarch by objfile arch.
1673 Replace static pcc_promotion_type and pcc_unsigned_promotion_type by
1674 built-in types.
1675 (read_range_type): Replace current_gdbarch by objfile arch. Replace
1676 static range_index_type by built-in type.
1677 (read_one_struct_field): Replace current_gdbarch by objfile arch.
1678 (read_enum_type): Likewise.
1679
1680 * xcoffread.c (read_xcoff_symtab): Replace current_gdbarch by
1681 objfile arch.
1682
5a413362
VP
16832008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1684
1685 * varobj.h (varobj_floating_p): Declare.
1686 * varobj.c (varobj_floating_p): New.
1687 * mi/mi-cmd-var.c (mi_cmd_var_update): When passed
1688 '@' as the name, update all floating varobjs.
1689
a5defcdc
VP
16902008-03-26 Vladimir Prus <vladimir@codesourcery.com>
1691
1692 * varobj.c (struct varobj_root): Rename use_selected_frame to
1693 floating, and clarify the meaning.
1694 (varobj_create, varobj_update, new_root_variable): Adjust.
1695 (value_of_root): Don't use type_changed as in variable,
1696 adjust comment.
1697 (c_value_of_root): Adjust.
5a413362 1698
403fe197
PA
16992008-03-25 Pedro Alves <pedro@codesourcery.com>
1700
1701 * linux-nat.c (linux_nat_attach): Add the pid we attached to, to
1702 gdb's thread list.
1703 (linux_nat_wait): Add main lwp to gdb's thread list.
1704 * linux-thread-db.c (find_new_threads_callback): Also attach to
1705 already listed threads which thread_db didn't know about yet.
1706
710151dd
PA
17072008-03-25 Pedro Alves <pedro@codesourcery.com>
1708
1709 * linux-nat.c (drain_queued_events): Fix comment typo.
1710 (linux_nat_attach): In async mode, don't rely on storing a pending
1711 status. Instead place the wait status on the pipe.
1712 (linux_nat_resume): Remove unreacheable shortcut code in async
1713 mode.
1714 (stop_wait_callback): In async mode, don't store pending status.
1715 Instead, cancel breakpoints or resend the signal appropriatelly.
1716 (cancel_breakpoint): New, refactored from
1717 cancel_breakpoints_callback.
1718 (cancel_breakpoints_callback): Call cancel_breakpoint.
1719 (pipe_to_local_event_queue): Remove special token processing.
1720 (linux_nat_wait): Issue an internal error if a pending status is
1721 found in async mode.
1722
807bddf3
DJ
17232008-03-24 Daniel Jacobowitz <dan@codesourcery.com>
1724
1725 * inflow.c (gdb_has_a_terminal): Guard access to our_process_group.
1726
c5b48eac
VP
17272008-03-24 Nick Roberts <nickrob@snap.net.nz>
1728 Vladimir Prus <vladimir@codesourcery.com>
1729
1730 * varobj.c (struct varobj_root): New component thread_id.
1731 (varobj_get_thread_id, check_scope): New functions.
1732 (c_value_of_root): Use check_scope. Switch to the
1733 proper thread if necessary.
1734
1735 * varobj.h (varobj_get_thread_id): New extern.
1736
1737 * mi/mi-cmd-var.c (print_varobj): Add thread-id field.
1738
12f4afab
DJ
17392008-03-23 Daniel Jacobowitz <dan@codesourcery.com>
1740
1741 PR gdb/544
1742 * top.c: Revert 2008-03-21 changes.
1743
6208b47d
VP
17442008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1745
1746 * thread.c (make_cleanup_restore_current_thread): Make it
1747 globally visible.
1748 * gdbthread.h (make_cleanup_restore_current_thread): Declare.
1749 * varobj.c (varobj_update): Don't save/restore frame.
1750 (c_value_of_root): Save/restore thread and frame here,
1751 using make_cleanup_restore_current_thread.
1752 * Makefile.in: Update dependecies.
1753
44a67aa7
VP
17542008-03-23 Vladimir Prus <vladimir@codesourcery.com>
1755
1756 * varobj.c (struct varobj_root): Clarify
1757 comment on the frame field.
1758 (varobj_create): Don't set frame if we have no
1759 block.
1760
b562a0cb
DJ
17612008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1762
1763 PR gdb/544
1764 Suggested by Jan Kratochvil:
1765 * top.c (gdb_rl_operate_and_get_next_completion): Call
1766 rl_redisplay_function.
1767 (gdb_rl_redisplay): New.
1768 (init_main): Set rl_redisplay_function.
1769
ed1bd5f5
JB
17702008-03-21 Thomas Mittelstaedt <T.Mittelstaedt@cadenas.de> (tiny change)
1771
1772 * aix-thread.c (pdc_read_regs): Fix compiler warning.
1773 (pdc_write_regs, aix_thread_resume, fetch_regs_kernel_thread)
1774 (store_regs_kernel_thread): Likewise.
1775
b84876c2
PA
17762008-03-21 Pedro Alves <pedro@codesourcery.com>
1777
1778 Linux native async support.
1779
1780 * target.h (struct target_ops): Delete to_async_mask_value and add
1781 to_async_mask.
1782 (target_is_async_p, target_async): Formatting.
1783 (target_async_mask_value): Delete.
1784 (target_async_mask): Delete function declaration, and add new
1785 target macro with the same name.
1786
1787 * target.c (update_current_target): Replace to_async_mask_value by
1788 to_async_mask. Default to_async_mask to return_one.
1789 (target_async_mask): Delete.
1790 (find_default_can_async_p, find_default_is_async_p): New.
1791 (init_dummy_target): register find_default_can_async_p and
1792 find_default_is_async_p on the dummy target.
1793
1794 * linux-nat.c: Include inf-loop.h, event-loop.h and event-top.h.
1795 (debug_linux_nat_async): New global.
1796 (show_debug_linux_nat_async): New function.
1797 (linux_nat_async_enabled, linux_nat_async_mask_value)
1798 (linux_nat_event_pipe, linux_nat_num_queued_events)
1799 (linux_nat_async_events_enabled): New globals.
1800 (struct waitpid_result): New struct.
1801 (waitpid_queue): New global.
1802 (queued_waitpid, push_waitpid, drain_queued_events): New.
1803 (my_waitpid): Call queued_waitpid.
1804 (linux_child_follow_fork): Disable async events during the call.
1805 (blocked_mask): Delete.
1806 (sync_sigchld_action, async_sigchld_action): New globals.
1807 (lin_lwp_attach_lwp): In sync mode, don't reblock SIGCHLD. In
1808 async mode, block events during the call.
1809 (linux_nat_create_inferior): New.
1810 (linux_nat_attach): In sync mode, restore the mask states. In
1811 async mode, wake the event loop immediatelly.
1812 (detach_callback): Drain all queued events of the lwp we're
1813 detaching from.
1814 (linux_nat_detach): Block async mode, and drain events of the main
1815 process.
1816 (linux_nat_resume): If in async mode, mask async events during the
1817 call. If short circuiting, force event loop to wake up. If
1818 resuming, set target_executing, and register target events in the
1819 event loop.
1820 (pipe_to_local_event_queue, local_event_queue_to_pipe): New.
1821 (linux_nat_wait): In async mode, block events during the call.
1822 Only enable/disable passing SIGINT to the inferior in sync mode.
1823 Get events from local waitpid queue. If no interesting events was
1824 found, return to events loop. Reregister target events in the
1825 event loop on exit. In sync mode, no need to reblock SIGCHLD.
1826 (linux_nat_kill): Disable events on entry.
1827 (linux_nat_mourn_inferior): In sync mode, don't restore the masks
1828 here. Detach async mode from the event loop if there are no more
1829 forks available, otherwise leave it on.
1830 (sigchld_handler): Assure this is called only in sync mode.
1831 (linux_async_permitted, linux_async_permitted_1): New globals.
1832 (set_maintenance_linux_async_permitted)
1833 (show_maintenance_linux_async_permitted): New functions.
1834 (linux_nat_is_async_p, linux_nat_can_async_p)
1835 (linux_nat_async_mask): New.
1836 (linux_nat_event_pipe_pop, linux_nat_event_pipe_push): New.
1837 (get_pending_events, async_sigchld_handler): New.
1838 (linux_nat_async_events): New.
1839 (async_terminal_is_ours): New global.
1840 (linux_nat_terminal_inferior, linux_nat_terminal_ours): New.
1841 (async_client_callback, async_client_context): New.
1842 (linux_nat_async_file_handler, linux_nat_async)
1843 (linux_nat_disable_async, linux_nat_enable_async): New.
1844 (linux_nat_add_target): Register linux_nat_create_inferior,
1845 linux_nat_can_async_p, linux_nat_is_async_p, linux_nat_async,
1846 linux_nat_async_mask, linux_nat_terminal_inferior and
1847 linux_nat_terminal_ours.
1848 (_initialize_linux_nat): Remove local action variable, and update
1849 code that used it to use sync_sigchld_action. Add new
1850 "lin-lwp-async" debug set/show command. Put the "lin-lwp" debug
1851 set/show command in the maintenance class. Add new "linux-async"
1852 maintenance set/show command. Block SIGCHLD by default. Setup
1853 async_sichld_action, and sync_sigchld_action. Install the default
1854 async mode.
1855 (lin_thread_get_thread_signals): Use a local sigset_t for blocking
1856 the cancel signals.
1857
1858 * linux-thread-db.c (re_check_for_thread_db): New.
1859 (clear_lwpid_callback): Handle TARGET_WAITKIND_IGNORE.
1860 (thread_db_can_async_p, thread_db_is_async_p, thread_db_async)
1861 (thread_db_async_mask): New.
1862 (init_thread_db_ops): Register thread_db_can_async_p,
1863 thread_db_is_async_p, thread_db_async and thread_db_async_mask.
1864
1865 * remote.c (remote_async_mask_value): New.
1866 (remote_return_zero): New.
1867 (init_remote_ops): Register remote_return_zero as callbacks of
1868 to_can_async_p and to_is_async_p.
1869 (remote_can_async_p, remote_is_async_p, remote_async): Update to
1870 use remote_async_mask_value.
1871 (remote_async_mask): New.
1872 (init_remote_async_ops): Remove to_async_mask_value setting and
1873 register remote_async_mask as to_async_mask callback in
1874 remote_async_ops.
1875
1876 * Makefile.in (linux-nat.o): Update.
1877
17faa917
DJ
18782008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1879
1880 * gdbthread.h (add_thread_with_info): New.
1881 * linux-thread-db.c: Add some documentation.
1882 (GET_LWP, GET_PID, GET_THREAD, is_lwp, is_thread, BUILD_LWP): Delete.
1883 (struct private_thread_info): Remove th_valid and ti_valid.
1884 Replace ti with tid.
1885 (thread_get_info_callback): Do not add TID to the new ptid. Do
1886 not cache th or ti.
1887 (thread_db_map_id2thr, lwp_from_thread): Delete functions.
1888 (thread_from_lwp): Assert that the LWP is set. Do not add TID to the
1889 new PTID.
1890 (attach_thread): Handle an already-existing thread. Use
1891 add_thread_with_info. Cache the th and tid.
1892 (detach_thread): Verify that private was set. Remove verbose
1893 argument and printing. Update caller.
1894 (thread_db_detach): Do not adjust inferior_ptid.
1895 (clear_lwpid_callback, thread_db_resume, thread_db_kill): Delete.
1896 (check_event, find_new_threads_callback): Do not add TID to the new PTID.
1897 (thread_db_wait): Do not use lwp_from_thread.
1898 (thread_db_pid_to_str): Use the cached TID.
1899 (thread_db_extra_thread_info): Check that private is set.
1900 (same_ptid_callback): Delete.
1901 (thread_db_get_thread_local_address): Do not use it or check
1902 is_thread. Check that private is set. Assume that the thread
1903 handle is already cached.
1904 (init_thread_db_ops): Remove to_resume and to_kill.
1905 * thread.c (add_thread_with_info): New.
1906 (add_thread): Use it.
1907 * linux-nat.c (find_thread_from_lwp): Delete.
1908 (exit_lwp): Do not use it. Check print_thread_events. Print before
1909 deleting the thread.
1910 (GET_PID, GET_LWP, BUILD_LWP, is_lwp): Move to...
1911 * linux-nat.h (GET_PID, GET_LWP, BUILD_LWP, is_lwp): ...here.
1912 * inf-ttrace.c (inf_ttrace_wait): Use print_thread_events and
1913 printf_unfiltered for thread exits.
1914 * procfs.c (procfs_wait): Likewise.
1915
6214f497
DJ
19162008-03-21 Chris Demetriou <cgd@google.com>
1917
1918 * symtab.c (rbreak_command): Quote symbol name before passing
1919 it to break_command.
1920
63092375
DJ
19212008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1922
1923 * eval.c (evaluate_subexp_for_address): Clarify error message.
1924 Use value_must_coerce_to_target.
1925 * infcall.c (value_arg_coerce): Call value_coerce_to_target.
1926 * valops.c (value_assign): Call value_coerce_to_target when
1927 assigning to anything but internalvars. Leave GDB-side arrays
1928 as arrays when assigning to internalvars.
1929 (value_must_coerce_to_target, value_coerce_to_target): New.
1930 (value_coerce_array, value_addr): Call value_coerce_to_target.
1931 (value_array): Create the array in GDB's memory instead of
1932 the inferior's.
1933 * value.h (value_must_coerce_to_target, value_coerce_to_target):
1934 Declare.
1935
b21991b0
DJ
19362008-03-21 Daniel Jacobowitz <dan@codesourcery.com>
1937
1938 * top.c (quit_confirm): Warn that we will kill the program.
1939
49a834f9
PA
19402008-03-19 Pedro Alves <pedro@codesourcery.com>
1941
1942 * inflow.c (terminal_ours_1): Guard access to
1943 inferior_process_group with #ifdef PROCESS_GROUP_TYPE.
1944
ae0d2f24
UW
19452008-03-18 Ulrich Weigand <uweigand@de.ibm.com>
1946 Jim Blandy <jimb@codesourcery.com>
1947 Daniel Jacobowitz <drow@false.org>
1948
1949 * dwarf2expr.h (struct dwarf_expr_context): Add ADDR_SIZE member.
1950 (dwarf2_read_address): Update prototype.
1951
1952 * dwarf2expr.c (unsigned_address_type): Add ADDR_SIZE parameter.
1953 (signed_address_type): Likewise.
1954 (dwarf2_read_address): Replace BYTES_READ parameter with ADDR_SIZE.
1955 (execute_stack_op): Update calls to unsigned_address_type,
1956 signed_address_type and dwarf2_read_address. Fix implementation
1957 of DW_OP_deref_size.
1958
1959 * dwarf2loc.h (dwarf2_per_cu_objfile): Add prototype.
1960 (dwarf2_per_cu_addr_size): Likewise.
1961 (struct dwarf2_locexpr_baton): Replace OBJFILE with PER_CU.
1962 (struct dwarf2_loclist_baton): Likewise.
1963
1964 * dwarf2loc.c (find_location_expression): Update calls to
1965 dwarf2_read_address. Use dwarf2_per_cu_objfile and
1966 dwarf2_per_cu_addr_size to retrieve PER_CU parameters.
1967 (locexpr_describe_location): Likewise.
1968 (dwarf2_evaluate_loc_desc): Replace OBJFILE with PER_CU parameter.
1969 Set ctx->addr_size to dwarf2_per_cu_addr_size (per_cu).
1970 (dwarf2_loc_desc_needs_frame): Add PER_CU parameter. Set ctx->addr_size
1971 to dwarf2_per_cu_addr_size (per_cu).
1972 (locexpr_read_variable): Update dwarf2_evaluate_loc_desc call.
1973 (loclist_read_variable): Likewise.
1974 (locexpr_read_needs_frame): Update dwarf2_loc_desc_needs_frame call.
1975
1976 * dwarf2read.c (dwarf2_symbol_mark_computed): Set baton->per_cu
1977 instead of baton->objfile.
1978 (dwarf2_per_cu_obfile): New function.
1979 (dwarf2_per_cu_addr_size): Likewise.
1980
1981 * dwarf2-frame.c (struct comp_unit): Move higher.
1982 (struct dwarf2_cie): Add UNIT and ADDR_SIZE members.
1983 (execute_stack_op): Add ADDR_SIZE parameter; set ctx->addr_size.
1984 (execute_cfa_program): Add FDE parameter. Replace EH_FRAME_P
1985 parameter by using fde->eh_frame_p. Use read_encoded_value
1986 to implement DW_CFA_set_loc.
1987 (struct dwarf2_frame_cache): Add ADDR_SIZE member.
1988 (dwarf2_frame_cache): Set cache->addr_size. Update calls to
1989 execute_stack_op and execute_cfa_program.
1990 (dwarf2_frame_prev_register): Update calls to execute_stack_op.
1991 (size_of_encoded_value): Remove.
1992 (read_encoded_value): Add PTR_LEN and FUNC_BASE parameters.
1993 Remove call to size_of_encoded_value. Implement DW_EH_PE_funcrel.
1994 (add_cie): Set cie->unit backlink.
1995 (decode_frame_entry_1): Set cie->addr_size. Update calls to
1996 read_encoded_value.
1997 (dwarf2_build_frame_info): Allocate UNIT on objfile obstack.
1998
1c8201d1
MD
19992008-03-17 Markus Deuling <deuling@de.ibm.com>
2000
2001 * i386-tdep.c (i386_print_insn): Remove unnecessary call to
2002 gdbarch_bfd_arch_info.
2003
46bba1ef
JB
20042008-03-17 Joel Brobecker <brobecker@adacore.com>
2005
2006 * aix-thread.c (pdc_read_regs): Minor reformatting.
2007
0bcd3e20
VP
20082008-03-17 Vladimir Prus <vladimir@codesourcery.com>
2009
2010 * thread.c (print_thread_info): Don't insist
2011 on having current thread if there are no
2012 threads at all.
2013
9356cf8d
PA
20142008-03-17 Pedro Alves <pedro@codesourcery.com>
2015
2016 * infcmd.c (attach_command_post_wait)
2017 (attach_command_continuation): New.
2018 (attach_command): Support background async execution, and async
2019 execution in synchronous mode.
2020
5c3ce3f7
DJ
20212008-03-17 Daniel Jacobowitz <dan@codesourcery.com>
2022
2023 * stack.c (print_stack_frame, print_frame): Use RETURN_MASK_ERROR.
2024 * symmisc.c (dump_symtab_1): Likewise.
2025 * wrapper.c (gdb_value_struct_elt): Likewise.
2026
fa2c6a57
PA
20272008-03-17 Pedro Alves <pedro@codesourcery.com>
2028
2029 * linux-nat.c (linux_nat_filter_event): Fix comment typo.
2030
02f3fc28
PA
20312008-03-17 Pedro Alves <pedro@codesourcery.com>
2032
2033 * linux-nat.c (linux_nat_filter_event): New, refactored from
2034 linux_nat_wait.
2035 (linux_nat_wait): Call linux_nat_filter_event.
2036
2f77b315
UW
20372008-03-17 Ulrich Weigand <uweigand@de.ibm.com>
2038
2039 * top.c (execute_command): Fix uninitialized variable error.
2040
f01be29b
NH
20412008-03-16 Nick Hudson <nick.hudson@dsl.pipex.com>
2042
2043 * Makefile.in (amd64nbsd-nat.o): New dependency.
2044 * amd64nbsd-nat.c: Include "nbsd-nat.h".
2045 (_initialize_amd64nbsd_nat): Update target vector to use
2046 nbsd_pid_to_exec_file.
2047 * config/i386/nbsd64.mh (NATDEPFILES): Add nbsd-nat.o.
2048
6cf32704
VP
20492008-03-15 Vladimir Prus <vladimir@codesourcery.com>
2050
2051 Remove ignoring leading exec events code.
2052 * fork-child.c (startup_inferior): Do not set
2053 inferior_ignoring_leading_exec_events.
2054 * inf-child.c (inf_child_reported_exec_events_per_exec_call): Remove.
2055 (inf_child_target): Do not set to_reported_exec_events_per_exec_call.
2056 * infrun.c (inferior_ignoring_leading_exec_events): Remove.
2057 (handle_inferior_event): Remove code for ignoring leading exec
2058 events.
2059 * target.c (update_current_target): Do not inherit, or default,
2060 to_reported_exec_events_per_exec_call.
2061 (debug_to_reported_exec_events_per_exec_call): Remove.
2062 (setup_target_debug): Do not set to_reported_exec_events_per_exec_call.
2063 * target.h (target_reported_exec_events_per_exec_call): Remove.
2064 (struct target): Remove the to_reported_exec_events_per_exec_call
2065 field.
2066
8e8901c5
VP
20672008-03-15 Vladimir Prus <vladimir@codesourcery.com>
2068
2069 Implement -thread-info.
2070 * gdbthread.h (print_thread_info): Declare.
2071
2072 * thread.c (print_thread_info): New, extracted
2073 from info_threads_command and adjusted to
2074 work for CLI and MI.
2075 (info_threads_command): Use print_thread_info.
2076 * Makefile.in: Update dependencies.
2077
2078 * mi/mi-cmds.c (mi_cmds): Specify a handler
2079 for -thread-info.
2080 * mi/mi-cmds.h (mi_cmd_thread_info): Declare.
2081 * mi/mi-main.c (mi_cmd_thread_info): New.
2082 (mi_cmd_list_features): Include 'thread-info'.
2083
7d1e6fb8
KB
20842008-03-14 Kevin Buettner <kevinb@redhat.com>
2085
2086 * mips-tdep.c (mips32_scan_prologue): Use the ABI register size
2087 to decide whether to match instruction patterns using "sw" and "sd".
2088
89113898
PA
20892008-03-14 Pedro Alves <pedro@codesourcery.com>
2090
2091 * infcmd.c (jump_command): Postpone disabling stdin until after
2092 the possible query.
2093
64a0ac84
PA
20942008-03-14 Pedro Alves <pedro@codesourcery.com>
2095
2096 * inflow.c (gdb_getpgrp): New.
2097 (gdb_has_a_terminal): Use get_getpgrp.
2098 (terminal_ours_1): If attach_flag is set, don't refetch
2099 inferior_process_group.
2100
1fddbabb
PA
21012008-03-14 Pedro Alves <pedro@codesourcery.com>
2102
2103 * features/library-list.dtd: Allow "section" elements as children
2104 of "library". Add "section" element and describe its attributes.
2105
2106 * solib-target.c (struct lm_info): Add section_bases member.
2107 (library_list_start_segment): Error out if seen a section element.
2108 (library_list_start_section): New.
2109 (library_list_end_library): New.
2110 (solib_target_free_library_list): Free section_bases.
2111 (section_attributes): New.
2112 (library_children): Make "segment" optional. Add "section" child.
2113 (library_list_children): Register library_list_end_library.
2114 (solib_target_relocate_section_addresses): Handle section bases.
2115
2116 * NEWS: Mention new qXfer:libraries:read section offsets support.
2117
712af3be
VP
21182008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2119
2120 * defs.h (do_exec_error_cleanups, discard_exec_error_cleanups)
2121 (make_exec_error_cleanup): Remove declarations.
2122 * utils.c (exec_error_cleanup_chain): Remove.
2123 (do_exec_error_cleanups, discard_exec_error_cleanups)
2124 (make_exec_error_cleanup): Remove.
2125 * event-loop.c (start_event_loop): Adjust call to
2126 async_enable_stdin.
2127 * event-top.c (async_enable_stdin): Remove the paramater dummy.
2128 (async_disable_stdin): Don't register async_enable_stdin via
2129 cleanup.
2130 * inf-loop.c (inferior_event_handler): Don't
2131 call do_exec_error_cleanups. Call async_enable_stdin instead.
2132 * event-loop.c (start_event_loop): Adjust call to
2133 async_enable_stdin.
2134 * tui/tui-interp.c (tui_command_loop): Adjust call to
2135 async_enable_stdin.
2136
32c1e744
VP
21372008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2138
2139 Async mode fixes.
2140 * Makefile.in (infcmd.o, inf-loop.o): Update dependencies.
2141 * breakpoint.c (bpstat_do_actions): In async mode,
2142 don't jump to top expecting stop_bpstat to be already
2143 updated.
2144 * event-loop.c (start_event_loop): Call async_enable_stdin
2145 on exception.
2146 * event-top.c (async_enable_stdin): Do nothing if sync_execution
2147 is not set.
2148 (command_handler): Do not setup continuation here.
2149 (command_line_handler_continuation): Move to...
2150 * top.c (command_line_handler_continuation): ... here.
2151 (execute_command): In async mode, register continuation.
2152 Don't check frame's language in running in async mode.
2153 * exceptions.c (throw_exception): Don't do exec_error_cleanups.
2154 * inf-loop.c (complete_execution): Inline into...
2155 (inferior_event_handler): ... here. Clear target_executing before
2156 doing any cleanups. Don't try to show prompt if the target was
2157 resumed.
2158 * infcmd.c (signal_command): Add support for async mode.
2159 (finish_command): Only add continuation if the target was
2160 successfully resumed.
2161 * remote.c (init_async_opts): Register to_get_thread_local_address
2162 handler.
2163 * mi/mi-interp.c (mi_cmd_interpreter_exec): Don't mess
2164 with sync_execution.
2165 * tui/tui-interp.c (tui_command_loop): Call async_enable_stdin
2166 on exception.
2167
c04ea773
DJ
21682008-03-14 Daniel Jacobowitz <dan@codesourcery.com>
2169
2170 * corefile.c (reopen_exec_file): Use exec_bfd_mtime.
2171 * exec.c (exec_bfd_mtime): Define.
2172 (exec_close): Clear it.
2173 (exec_file_attach): Set it.
2174 * gdbcore.h (exec_bfd_mtime): Declare.
2175 * source.c (find_source_lines): Do not use bfd_get_mtime.
2176
952dc227
VP
21772008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2178
2179 * top.c (simplified_command_loop): Remove.
2180
4cf46804
VP
21812008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2182
2183 Remove unused remote.c hooks.
2184 * remote.c (deprecated_target_resume_hook)
2185 (deprecated_target_wait_loop_hook): Remove.
2186 (remote_resume): Do not call deprecated_target_resume_hook.
2187 (remote_wait): Do not call deprecated_target_wait_loop_hook.
2188 (remote_async_wait): Likewise.
2189
683f2885
VP
21902008-03-14 Vladimir Prus <vladimir@codesourcery.com>
2191
2192 Implement MI notification for new threads.
2193 * doc/observer.texi (new_thread): Document.
2194 * observer.sh: Forward declare struct thread_info.
2195 * thread.c (add_thread): Notify observer.
2196
2197 * interps.h (interp_init_ftype): New parameter
2198 top_level.
2199 (interp_set): Likewise.
2200 (top_level_interpreter_data): Declare.
2201 * interps.c (interp_set): New parameter top_level.
2202 Pass it to interpreter's init function. Remember
2203 top level interpreter.
2204 (interpreter_exec_cmd): Adjust.
2205 (top_level_interpreter_data): New.
2206 * main.c (captured_main): Pass 1 for top_level
2207 parameter of interp_set.
2208 * cli/cli-interp.c (cli_interpreter_init): New
2209 parameter top_level.
2210 * tui/tui-interp.c (tui_init): New parameter top_level.
2211
2212 * mi/mi-interp.c (mi_new_thread): New.
2213 (mi_interpreter_init): If top level, register
2214 observer for new threads.
2215
2216 * Makefile.in (mi-interp.o, thread.o): Update dependencies.
2217
ff9b3928
PA
22182008-03-14 Pedro Alves <pedro@codesourcery.com>
2219
2220 * top.c (execute_command): Disable break and stop
2221 commands in async mode.
2222
b18392ef
PA
22232008-03-14 Pedro Alves <pedro@codesourcery.com>
2224
2225 revert:
2226 2008-03-14 Pedro Alves <pedro@codesourcery.com>
2227 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2228 Call target_stop in the INF_QUIT_REQ case.
2229 * Makefile.in (inf-loop.o): Update.
2230
0aca9f07
PA
22312008-03-14 Pedro Alves <pedro@codesourcery.com>
2232
2233 * inf-loop.c (inferior_event_handler): Don't include remote.h.
2234 Call target_stop in the INF_QUIT_REQ case.
2235 * Makefile.in (inf-loop.o): Update.
2236
0b4e556c
PA
22372008-03-14 Pedro Alves <pedro@codesourcery.com>
2238
2239 * top.c (execute_command): Enable break, info and interrupt
2240 commands in async mode.
2241
8defab1a
DJ
22422008-03-13 Vladimir Prus <vladimir@codesourcery.com>
2243 Daniel Jacobowitz <dan@codesourcery.com>
2244
2245 * breakpoint.h (breakpoint_restore_shadows): New
2246 declaration.
2247 * breakpoint.c (breakpoint_restore_shadows): New.
2248 (read_memory_nobpt): Delete.
2249 * gdbcore.h (read_memory_nobpt): Delete declaration.
2250 * target.c (memory_xfer_partial): Call
2251 breakpoint_restore_shadows.
2252 (restore_show_memory_breakpoints)
2253 (make_show_memory_beakpoints_cleanup): New.
2254 (show_memory_breakpoints): New.
2255 * target.h (make_show_memory_beakpoints_cleanup): Declare.
2256 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint):
2257 Make sure we see memory breakpoints when checking if
2258 breakpoint is still there.
2259 * alpha-tdep.c, alphanbsd-tdep.c, frame.c, frv-tdep.c,
2260 hppa-linux-tdep.c, hppa-tdep.c, i386-linux-nat.c, i386-tdep.c,
2261 m68klinux-tdep.c, mips-tdep.c, mn10300-tdep.c, s390-tdep.c,
2262 sparc-tdep.c: Use target_read_memory instead of read_memory_nobpt.
2263
fd532e2e
PA
22642008-03-12 Pedro Alves <pedro@codesourcery.com>
2265
2266 * thread.c (add_thread): Use printf_unfiltered to print.
2267
f749779f 22682008-03-12 Joel Brobecker <brobecker@gnat.com>
965b60ee
JB
2269
2270 * sol-thread.c: Replace use of TM_I386SOL2_H by an expression
2271 that is true only on x86-solaris and x86_64-solaris.
2272 * procfs.c: Likewise. Move procfs_find_LDT_entry up together
2273 with proc_get_LDT_entry.
2274
22752008-03-12 Thiago Jung Bauermann <bauerman@br.ibm.com>
83116857
TJB
2276
2277 * configure.ac (AC_CHECK_FUNCS): Add check for setsid.
2278 * config.in, configure: Regenerate.
2279 * fork-child.c (fork_inferior): Call create_tty_session.
2280 * inflow.c (new_tty): Set controlling terminal with TIOCSCTTY.
2281 (create_tty_session): New function.
2282 * terminal.h: Declare create_tty_session.
2283
4fbb74a6
AM
22842008-03-12 Alan Modra <amodra@bigpond.net.au>
2285
2286 PR 5900
2287 * elfread.c (elf_symtab_read): Make shndx an unsigned int.
2288 * mipsread.c: Include elf/internal.h.
2289 (read_alphacoff_dynamic_symtab): Map external reserved sym_shndx
2290 to internal range.
2291
20a6ec49
MD
22922008-03-11 Markus Deuling <deuling@de.ibm.com>
2293
2294 * win32-nat.c (do_win32_fetch_inferior_registers): Use get_regcache_arch
2295 to get at the current architecture and at the target specific vector.
2296 Add target specific vector to I387_FISEG_REGNUM and I387_FOP_REGNUM and
2297 remove define of I387_ST0_REGNUM.
2298
2299 * amd64-tdep.c (I387_ST0_REGNUM): Remove define.
2300
2301 (amd64_supply_fxsave, amd64_collect_fxsave): Use get_regcache_arch to
2302 get at the current architecture
2303 (I387_FISEG_REGNUM, I387_FOSEG_REGNUM): Add target specific vector as
2304 parameter.
2305
2306 * i386-tdep.c: Remove various define's and undef's of I387_ST0_REGNUM,
2307 I387_NUM_XMM_REGS and I387_MM0_REGNUM.
2308
2309 (I387_NUM_XMM_REGS, I387_XMM0_REGNUM, I387_MXCSR_REGNUM,
2310 I387_ST0_REGNUM, I387_FCTRL_REGNUM, I387_MM0_REGNUM,
2311 (I387_FSTAT_REGNUM): Add target specific vector as parameter.
2312
2313 (i386_register_name, i386_dbx_reg_to_regnum): Use gdbarch_tdep to get
2314 at the target specific vector.
2315
2316 (i386_get_longjmp_target): Use get_frame_arch to get at the current
2317 architecture. Use gdbarch_tdep to get at the target specific vector.
2318
2319 (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as parameter and
2320 update caller. Use gdbarch_tdep to get at the target specific vector.
2321
2322 (i386_register_to_value: Use get_frame_arch to get at the current
2323 architecture.
2324
2325 * i386-tdep.h (i386_fp_regnum_p, i386_fpc_regnum_p): Add gdbarch as
2326 parameter.
2327
2328 * i387-tdep.c (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2329 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM
2330 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_ST0_REGNUM, FSAVE_ADDR,
2331 FXSAVE_ADDR, I387_XMM0_REGNUM): Add target specific vector as parameter.
2332
2333 (I387_ST0_REGNUM, I387_NUM_XMM_REGS): Remove various define's and
2334 undef's.
2335
2336 (i387_convert_register_p, i387_register_to_value,
2337 i387_value_to_register): Update call for i386_fp_regnum_p.
2338
2339 * i387-tdep.h: Remove comment.
2340 (I387_ST0_REGNUM, I387_NUM_XMM_REGS, I387_MM0_REGNUM): Add define.
2341 (I387_FCTRL_REGNUM, I387_FSTAT_REGNUM, I387_FTAG_REGNUM,
2342 I387_FISEG_REGNUM, I387_FIOFF_REGNUM, I387_FOSEG_REGNUM,
2343 I387_FOOFF_REGNUM, I387_FOP_REGNUM, I387_XMM0_REGNUM,
2344 I387_MXCSR_REGNUM): Add target specific vector as parameter.
2345
ccd213ac
DJ
23462008-03-10 Daniel Jacobowitz <dan@codesourcery.com>
2347
2348 * Makefile.in (fork-child.o): Update.
2349 * NEWS: Document "set exec-wrapper" and the gdbserver --wrapper
2350 argument. Gather all gdbserver features together.
2351 * fork-child.c (exec_wrapper): New variable.
2352 (fork_inferior): Use it.
2353 (startup_inferior): Skip an extra trap if using "set exec-wrapper".
2354 (unset_exec_wrapper_command, _initialize_fork_child): New.
2355
23562008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
80618b99
MS
2357
2358 * source.c (directory_command): Modify the determination of
2359 condition of terminal "from_tty".
2360
22566fbd
DJ
23612008-03-10 Matt Rice <ratmice@gmail.com>
2362
2363 * dwarf2read.c (set_cu_language): Add DW_LANG_ObjC.
2364
9971ac47
UW
23652008-03-10 Hidetaka Takano <hidetaka.takano@glb.toshiba.co.jp>
2366
2367 * spu-tdep.c (info_spu_event_command): Insert a '\0' to the end
2368 of the data passing to strtoulst function.
2369 (info_spu_signal_command): Likewise.
2370
835670cf
VP
23712008-03-08 Vladimir Prus <vladimir@codesourcery.com>
2372
2373 * mi/mi-interp.c (mi_command_loop): Remove
2374 commented-out code.
2375
be86555c
JB
23762008-03-07 Joel Brobecker <brobecker@adacore.com>
2377
2378 * remote.c (extended_remote_attach_1): Make local variable pid an int
2379 instead of a pid_t.
2380
4d7b2d5b
JB
23812008-03-07 Joel Brobecker <brobecker@adacore.com>
2382
2383 * solib-svr4.c (svr4_same_1): New function, originally extracted
2384 from svr4_same and expanded to handle the sparc64 case.
2385 (svr4_same): Move up and reimplement using svr4_same_1.
2386 (enable_break): Use svr4_same_1 to do shared library name comparisons.
2387
61fed90e
RR
23882008-03-07 Ramana Radhakrishnan <ramana.r@gmail.com>
2389
2390 * MAINTAINERS: Move self to Paper trail.
2391
b803fb0f
DJ
23922008-03-05 Daniel Jacobowitz <dan@codesourcery.com>
2393
2394 * Makefile.in (mingw-hdep.o, posix-hdep.o, remote-fileio.o): Update.
2395 * event-loop.c (call_async_signal_handler): New.
2396 * event-loop.h (call_async_signal_handler)
2397 (gdb_call_async_signal_handler): Declare.
2398 (mark_async_signal_handler): Add comments.
2399 * event-top.c (handle_sigint): Use gdb_call_async_signal_handler.
2400 * mingw-hdep.c (sigint_event, sigint_handler): New.
2401 (gdb_select): Use them. Wait for the readline signal handler
2402 to finish.
2403 (gdb_call_async_signal_handler, _initialize_mingw_hdep): New functions.
2404 * posix-hdep.c (gdb_call_async_signal_handler): New function.
2405 * remote-fileio.c (sigint_fileio_token, async_remote_fileio_interrupt):
2406 New.
2407 (remote_fileio_ctrl_c_signal_handler): Use
2408 gdb_call_async_signal_handler.
2409 (initialize_remote_fileio): Initialize sigint_fileio_token.
2410 * remote.c (initialize_sigint_signal_handler, handle_remote_sigint): Do
2411 not initialize tokens here.
2412 (handle_remote_sigint_twice): Likewise. Reinstall
2413 handle_remote_sigint.
2414 (async_remote_interrupt_twice): Just call interrupt_query.
2415 (cleanup_sigint_signal_handler): Do not delete tokens.
2416 (remote_interrupt, remote_interrupt_twice): Use
2417 gdb_call_async_signal_handler.
2418 (interrupt_query): Reinstall the default signal handler.
2419 (_initialize_remote): Initialize tokens here.
2420
8f4d54ed
JB
24212008-03-04 Joel Brobecker <brobecker@adacore.com>
2422
2423 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml,
2424 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2425 Change the type of the lr register to code_ptr.
2426 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2427 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2428 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2429 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2430 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2431 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2432 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c: Regenerate.
2433
95ece428
JW
24342008-03-03 James E. Wilson <wilson@tuliptree.org>
2435
2436 * MAINTAINERS: Update my email address.
2437
686a5eed
KS
24382008-03-03 Keith Seitz <keiths@redhat.com>
2439
2440 From Dave Murphy <davem@devkitpro.org>:
2441 * configure.ac: Set tcl configdir to win under mingw.
2442 * configure: Regenerate.
2443
fa4727a6
DJ
24442008-03-03 Daniel Jacobowitz <dan@codesourcery.com>
2445
2446 * breakpoint.c (fetch_watchpoint_value): New function.
2447 (update_watchpoint): Set and clear val_valid. Use
2448 fetch_watchpoint_value. Handle unreadable values on the
2449 value chain. Correct check for user-requested array watchpoints.
2450 (breakpoint_init_inferior): Clear val_valid.
2451 (watchpoint_value_print): New function.
2452 (print_it_typical): Use it. Do not free or clear old_val. Print
2453 watchpoints even if old_val == NULL.
2454 (watchpoint_check): Use fetch_watchpoint_value. Check for values
2455 becoming readable or unreadable.
2456 (watch_command_1): Use fetch_watchpoint_value. Set val_valid.
2457 (do_enable_watchpoint): Likewise.
2458 * breakpoint.h (struct breakpoint): Update comment for val. Add
2459 val_valid.
2460 * NEWS: Mention watchpoints on inaccessible memory.
2461
c03374d5
DJ
24622007-02-29 Daniel Jacobowitz <dan@codesourcery.com>
2463
2464 * Makefile.in (i386-nat.o): Update.
2465 * amd64-linux-nat.c (_initialize_amd64_linux_nat): Call
2466 i386_use_watchpoints.
2467 * i386-linux-nat.c (_initialize_i386_linux_nat): Call
2468 i386_use_watchpoints.
2469 * i386-nat.c (i386_stopped_data_address): Take two arguments.
2470 (i386_stopped_by_watchpoint): Update call.
2471 (i386_can_use_hw_breakpoint, i386_use_watchpoints): New.
2472 * config/i386/nm-i386.h: Conditionalize definitions on
2473 ! I386_WATCHPOINTS_IN_TARGET_VECTOR.
2474 (i386_use_watchpoints): Declare.
2475 (i386_stopped_data_address): Update.
2476 * config/i386/nm-linux.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2477 * config/i386/nm-linux64.h (I386_WATCHPOINTS_IN_TARGET_VECTOR): Define.
2478
c24d7425 24792008-02-29 Joel Brobecker <brobecker@adacore.com>
2480
2481 GDB 6.8 branch created (branch timestamp: 2008-02-26 10:00 UTC)
2482 * version.in: Bump version to 6.8.50.20080229-cvs.
2483
a7dfd010
MD
24842008-02-28 Markus Deuling <deuling@de.ibm.com>
2485
2486 * f-typeprint.c (f_print_type): Handle NULL pointer in VARSTRING
2487 properly.
2488
258c00cc
TT
24892008-02-28 Tom Tromey <tromey@redhat.com>
2490
2491 * infcmd.c (notice_args_read): Print result of get_inferior_args.
2492
8edfe269
DJ
24932008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2494
2495 * infcmd.c (kill_if_already_running): Make static. Use
2496 target_require_runnable.
2497 * target.c (target_require_runnable): New.
2498 * target.h (target_require_runnable): Declare.
2499
0d6ba1b1
DJ
25002008-02-28 Daniel Jacobowitz <dan@codesourcery.com>
2501
2502 * frame.c (reinit_frame_cache): Only annotate if frames were
2503 previously valid.
2504
6fe305f7
UW
25052008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2506
2507 * regformats/reg-ppc.dat: Rename "ps" to "msr".
2508 * regformats/reg-ppc64.dat: Likewise.
2509
9b4b61c8
UW
25102008-02-28 Ulrich Weigand <uweigand@de.ibm.com>
2511
2512 * features/Makefile (%.dat): Emit xmltarget statement.
2513
2514 * regformats/regdat.sh: Support xmltarget and xmlarch statments.
2515 Generate code to set gdbserver_xmltarget in init_registers_${name}.
2516
2517 * regformats/arm-with-iwmmxt.dat: Regenerate.
2518 * regformats/mips64-linux.dat: Regenerate.
2519 * regformats/mips-linux.dat: Regenerate.
2520 * regformats/rs6000/powerpc-32.dat: Regenerate.
2521 * regformats/rs6000/powerpc-64.dat: Regenerate.
2522 * regformats/rs6000/powerpc-e500.dat: Regenerate.
2523
2524 * regformats/reg-arm.dat: Add xmlarch statement.
2525 * regformats/reg-i386.dat: Likewise.
2526 * regformats/reg-i386-linux.dat: Likewise.
2527 * regformats/reg-x86-64-linux.dat: Likewise.
2528 * regformats/reg-spu.dat: Likewise.
2529
20b4711e
DJ
25302008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2531
2532 * remote.c (remote_wait, remote_async_wait): Stop if we receive
2533 an error.
2534
1843f87b
DJ
25352008-02-27 Daniel Jacobowitz <dan@codesourcery.com>
2536
2537 * utils.c (debug_timestamp): New.
2538 (vfprintf_unfiltered): Print timestamps if requested.
2539 (show_debug_timestamp): New.
2540 (initialize_utils): Register "set debug timestamp".
2541 * NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
2542
6a048695
JB
25432008-02-27 Joel Brobecker <brobecker@adacore.com>
2544
2545 * breakpoint.c (skip_prologue_sal): New function.
2546 (resolve_sal_pc): Adjust SAL past prologue if the SAL was
2547 computed from a line number.
2548
0b998f49
JB
25492008-02-27 Joel Brobecker <brobecker@adacore.com>
2550
2551 * features/rs6000/power-core.xml, features/rs6000/power64-core.xml
2552 features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
2553 Set PC register type to "code_ptr".
2554 * features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
2555 features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
2556 features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
2557 features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
2558 features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
2559 features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
2560 features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
2561 Regenerate.
2562
d05b4ac3
UW
25632008-02-27 Ulrich Weigand <uweigand@de.ibm.com>
2564
2565 * regformats/regdat.sh: Rename init_registers function in
2566 generated file to init_registers_${name}.
2567
2568 * regformats/reg-crisv32.dat: Set "name" to crisv32.
2569 * regformats/reg-ppc64.dat: Set "name" to ppc64.
2570 * regformats/reg-s390x.dat: Set "name" to s390x.
2571
a5d9d57d
DJ
25722008-02-26 Greg Law <glaw@undo-software.com>
2573
2574 * regcache.c (registers_changed): Call reinit_frame_cache.
2575
e25c958c
DJ
25762008-02-26 Daniel Jacobowitz <dan@codesourcery.com>
2577
2578 * configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
2579 * sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
2580 and svr4_fetch_objfile_link_map.
2581 * Makefile.in (sh-linux-tdep.o): Update.
2582
5daa78cc
TJB
25832008-02-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2584
2585 * amd64-tdep.c (amd64_classify): Add support for decimal float
2586 types.
2587 * i386-tdep.c (i386_return_value): Make 128-bit decimal float
2588 use the struct return convention.
2589
54e52265
VP
25902008-02-26 Nick Roberts <nickrob@snap.net.nz>
2591
2592 * breakpoint.c (print_one_breakpoint_location): Revert Enb field
2593 to old format. Discard breakpoint address if shared library is
2594 unloaded.
2595 (breakpoint_1): Adjust formatting of table header accordingly.
2596
d8f2712d
VP
25972008-02-25 Vladimir Prus <vladimir@codesourcery.com>
2598
2599 * remote.c (remote_get_threadlist): If the response
2600 is empty, don't try to parse it.
2601
05ce04a4
VP
26022008-02-23 Vladimir Prus <vladimir@codesourcery.com>
2603
2604 Unbreak 'target async'.
2605 * serial.c (serial_async): Set the
2606 handler function before enabling async
2607 mode.
2608
b36ec657
DJ
26092008-02-22 Daniel Jacobowitz <dan@codesourcery.com>
2610
2611 * solib-svr4.c (enable_break): Convert r_brk to a code address.
2612
df7df359
PA
26132008-02-21 Pedro Alves <pedro@codesourcery.com>
2614
2615 * remote.c (extended_remote_attach_1): Set attach_flag.
2616 (extended_remote_create_inferior_1): Clear attach_flag.
2617
7cd25cfc
DJ
26182008-02-20 Daniel Jacobowitz <dan@codesourcery.com>
2619
2620 * mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
2621 r_brk_offset.
2622 (mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
2623 * solib-svr4.c (solib_svr4_r_brk): New.
2624 (open_symbol_file_object, svr4_current_sos): Always check the
2625 debug base.
2626 (svr4_fetch_objfile_link_map): Do not set debug_base.
2627 (enable_break): Use r_brk if it is set.
2628 (svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
2629 (svr4_lp64_fetch_link_map_offsets): Likewise.
2630 * solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2631
07ea644b
MD
26322008-02-20 Markus Deuling <deuling@de.ibm.com>
2633 Mark Kettenis <kettenis@gnu.org>
2634
2635 * alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
2636 trad_frame_saved_reg.
2637 (trad-frame.h): New include.
2638
2639 (alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
2640 instead of frame_obstack_zalloc.
2641 (alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
2642
2643 * Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2644
40887e1a
MD
26452008-02-20 Markus Deuling <deuling@de.ibm.com>
2646
2647 * rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
2648 from disassemble_info instead of gdbarch_byte_order.
2649
2650 * mips-tdep.c (gdb_print_insn_mips): Likewise.
2651 * arm-tdep.c (gdb_print_insn_arm): Likewise.
2652
ae4b2284
MD
26532008-02-20 Markus Deuling <deuling@de.ibm.com>
2654
2655 * gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
2656 gdbarch as parameter.
2657
2658 * gdbarch.{c,h}: Regenerate.
2659
2660 * ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2661 parameter.
2662 * mem-break.c (default_memory_insert_breakpoint)
2663 (default_memory_remove_breakpoint): Likewise.
2664 * target.h (default_memory_remove_breakpoint)
2665 (default_memory_insert_breakpoint): Likewise.
2666
2667 * ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
2668 parameter. Replace current_gdbarch by gdbarch.
2669 * m32r-tdep.c (m32r_memory_insert_breakpoint)
2670 (m32r_memory_remove_breakpoint): Likewise.
2671
d9bf65d5
DJ
26722008-02-19 Daniel Jacobowitz <dan@codesourcery.com>
2673
2674 * MAINTAINERS: Add Vladimir Prus as MI maintainer.
2675
b93b6ca7
JB
26762008-02-19 Joel Brobecker <brobecker@adacore.com>
2677
2678 * NEWS: Add entry describing Add support improvements.
2679
4ed226fe
MD
26802008-02-18 Markus Deuling <deuling@de.ibm.com>
2681
2682 * m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
2683 M68K_FP0_REGNUM.
2684
caaa79ad
MD
26852008-02-18 Markus Deuling <deuling@de.ibm.com>
2686
2687 * sentinel-frame.c (sentinel_frame_prev_register): Do not call
2688 register_offset_hack anymore.
2689
2690 * regcache.{c,h} (register_offset_hack): Remove.
2691
e38c262f
MD
26922008-02-18 Markus Deuling <deuling@de.ibm.com>
2693
2694 * hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
2695
2696 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
2697 current_gdbarch by gdbarch.
2698 (hppa64_hpux_find_global_pointer): Likewise.
2699 * hppa-tdep.c (hppa_find_global_pointer): Likewise.
2700 (hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
2701 find_global_pointer.
2702
2703 * hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
2704 parameter.
2705 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
2706
2707 * hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
2708 of gdbarch_num_regs.
2709
2710 * hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
2711 replace current_gdbarch by gdbarch.
2712 (hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
2713
206988c4
MD
27142008-02-18 Markus Deuling <deuling@de.ibm.com>
2715
2716 * rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
2717 and replace current_gdbarch by gdbarch.
2718
2719 (store_register): Update call for exec_one_dummy_insn.
2720 (fetch_register, store_register): Update call of regmap.
2721
2722 * ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
2723 parameter and replace current_gdbarch by gdbarch.
2724
2725 (ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
2726 the current architecture. Update call for getregs_supplies and
2727 getfpregs_supplies.
2728 (ppcnbsd_fetch_inferior_registers): Likewise.
2729
2730 * ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
2731 replace current_gdbarch by gdbarch.
2732 (ppcobsd_fetch_registers, ppcobsd_store_registers): Use
2733 get_regcache_arch to get at the current architecture. Update call for
2734 getfpregs_supplies.
2735
f642be6b
MD
27362008-02-18 Markus Deuling <deuling@de.ibm.com>
2737
2738 * arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
2739 variables.
2740
b1f2bf01
MD
27412008-02-15 Markus Deuling <deuling@de.ibm.com>
2742
2743 * mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
2744
ee163bf5
VP
27452008-02-14 Vladimir Prus <vladimir@codesourcery.com>
2746
2747 * NEWS: Mention pending breakpints in MI.
2748
f6fbcbf9
MD
27492008-02-14 Markus Deuling <deuling@de.ibm.com>
2750
2751 * Makefile.in (ALL_TARGET_OBS): Remove dependency to xtensa-linux-nat.o.
2752
36af4ef6
MD
27532008-02-13 Markus Deuling <deuling@de.ibm.com>
2754
2755 Add script to build and test GDB using enable-targets=all.
2756
2757 * gdb_buildall.sh: New file.
2758
94a0e877
MG
27592008-02-11 Maxim Grigoriev <maxim2405@gmail.com>
2760
2761 * NEWS (New native configurations): Xtensa GNU/Linux.
2762 (New targets): Xtensa GNU/Linux.
2763 * Makefile.in (ALL_TARGET_OBS): Add xtensa-linux-nat.o and
2764 xtensa-linux-tdep.o
2765 (ALLDEPFILES): Add xtensa-linux-tdep.c and xtensa-linux-nat.c
2766 (xtensa-linux-nat.o, xtensa-linux-tdep.o): New dependencies.
2767 * configure.tgt (xtensa*-*-linux*): New entry.
2768 * xtensa-config.c (xtensa_tdep): New variable.
2769 (xtensa_config_byte_order, xtensa_config_tdep): Removed.
2770 (rmap): Change format based on new macro XTREG.
2771 (XTENSA_CONFIG_INSTANTIATE): Use new macro defined in xtensa-tdep.h.
2772 * xtensa-linux-nat.c: New.
2773 * xtensa-linux-tdep.c: New.
2774 * xtensa-xtregs.c: New.
2775 * xtensa-tdep.h (xtensa_elf_gregset_t): Update.
2776 (XTENSA_ELF_NGREG, XTREG, XTREG_END, XTENSA_GDBARCH_TDEP_INSTANTIATE)
2777 (XCHAL_NUM_CONTEXTS, XCHAL_HAVE_EXCEPTIONS): New macros.
2778 (xtensa_register_t): New field coprocessor.
2779 (XTENSA_REGISTER_FLAGS_PRIVILEGED): Name spelling corrected.
2780 * xtensa-tdep.c (xtensa_config_tdep, xtensa_config_byte_order): Removed.
2781 (xtensa_pseudo_register_read, xtensa_pseudo_register_write):
2782 Update to handle privileged registers.
2783 (xtensa_supply_gregset) Remove exccause and excvaddr registers.
2784 (xtensa_push_dummy_call): Set windowstart register correctly.
2785 (call0_analyze_prologue): Initialize xtensa_default_isa.
2786 (xtensa_derive_tdep): New.
2787 (xtensa_gdbarch_init): Get rid of xtensa_config_byte_order and
2788 xtensa_config_tdep, use XCHAL_HAVE_BE and xtensa_tdep instead.
2789 Call xtensa_derive_tdep().
2790 * config/xtensa/linux.mh: New.
2791 * regformats/reg-xtensa.dat: New.
2792
b7ee1b0a 27932008-02-09 Aleksandar Ristovski <aristovski@qnx.com> (tiny change)
f90c07ac
EZ
2794
2795 * corelow.c (core_open): Use IS_ABSOLUTE_PATH.
2796 (filenames.h): New include.
2797 * Makefile.in (corelow.o): Add dependency for filenames.h.
2798
8da2a1df
DJ
27992008-02-08 Doug Evans <dje@google.com>
2800
2801 * source.c (find_and_open_source): Always rewrite absolute filenames.
2802
776592bf
DE
28032008-02-07 Doug Evans <dje@google.com>
2804
2805 * breakpoint.c: #include "hashtab.h".
2806 (ambiguous_names_p): New fn.
2807 (update_breakpoint_locations): When restoring bp enable status, don't
2808 compare function names if any functions have same name.
2809 * Makefile.in (breakpoint.o): Add hashtab.h dependency.
2810
d6565258
JB
28112008-02-07 Joel Brobecker <brobecker@adacore.com>
2812
2813 * ada-lang.c (symbol_completion_add): Make SV parameter a VEC**
2814 instead of just a VEC*. Update use of SV.
2815 (ada_make_symbol_completion_list): Update symbol_completion_add calls.
2816
6d53d0af
JB
28172007-02-07 Joel Brobecker <brobecker@adacore.com>
2818
2819 * NEWS: Put all new commands since gdb-6.7 together.
2820
2ba95b9b
JB
28212007-02-07 Joel Brobecker <brobecker@adacore.com>
2822
2823 * ada-lang.c: #include "vec.h".
2824 (struct string_vector, new_string_vector, string_vector_append):
2825 Delete.
2826 (char_ptr): New typedef.
2827 (DEF_VEC_P (char_ptr)): New VEC type.
2828 (symbol_completion_add): Update profile to take the new VEC type
2829 instead of the old string_vector structure. Update code accordingly.
2830 (ada_make_symbol_completion_list): Use the new VEC type instead of
2831 the old string_vector structure, and update the code accordingly.
2832 * Makefile.in (ada-lang.o): Add dependency on vec.h.
2833
4ae0885a
PM
28342008-02-06 Pierre Muller <muller@ics.u-strasbg.fr>
2835
2836 * p-exp.y: Set current_type in missing places.
2837 (leftdiv_is_integer): New static variable.
2838 Typecast right operand of BINOP_DIV to long_double if both operands
2839 are integers.
2840
06b1d59c
MR
28412008-02-06 Maciej W. Rozycki <macro@mips.com>
2842
2843 * remote-mips.c (set_breakpoint): Rename to...
2844 (mips_set_breakpoint): ... this.
2845 (clear_breakpoint): Rename to...
2846 (mips_clear_breakpoint): ... this.
2847 (common_breakpoint): Rename to...
2848 (mips_common_breakpoint): ... this.
2849 (check_lsi_error): Rename to...
2850 (mips_check_lsi_error): ... this.
2851
41d27058
JB
28522007-02-05 Joel Brobecker <brobecker@adacore.com>
2853
2854 * language.h (struct language_defn): Add new field
2855 la_make_symbol_completion_list.
2856 * symtab.c (default_make_symbol_completion_list): Renames
2857 make_symbol_completion_list.
2858 (make_symbol_completion_list): New function.
2859 * symtab.h (default_make_symbol_completion_list): Add declaration.
2860 * langauge.c (unknown_language): Set la_make_symbol_completion_list.
2861 (auto_language, local_language): Likewise.
2862 * objc-lang.c (objc_language_defn): Likewise.
2863 * scm-lang.c (scm_language_defn): Likewise.
2864 * m2-lang.c (m2_language_defn): Likewise.
2865 * f-lang.c (f_language_defn): Likewise.
2866 * jv-lang.c (java_language_defn): Likewise.
2867 * p-lang.c (pascal_language_defn): Likewise.
2868 * c-lang.c (c_language_defn, cplus_language_defn, asm_language_defn)
2869 (minimal_language_defn): Likewise.
2870 * ada-lang.c (struct string_vector): New structure.
2871 (new_string_vector, string_vector_append, ada_unqualified_name)
2872 (add_angle_brackets, symbol_completion_match, symbol_completion_add)
2873 (ada_make_symbol_completion_list): New functions.
2874 (ada_language_defn): Set la_make_symbol_completion_list.
2875 * ada-lang.h (ada_make_symbol_completion_list): Remove declaration,
2876 this function is static.
2877
ee3a2f01
KB
28782008-02-05 Kevin Buettner <kevinb@redhat.com>
2879
2880 * mn10300-tdep.c (mn10300_push_dummy_call): Adjust stack pointer
2881 to account for call site optimizations.
2882
d844e34b
JB
28832008-02-05 Andrzej Zaborowski <balrogg@gmail.com>
2884
2885 * tracepoint.c (read_actions): Handle end-of-text indicator
2886 in action list properly. (Committed by Jim Blandy)
2887
02e4669d
JB
28882008-02-05 Jim Blandy <jimb@red-bean.com>
2889
2890 * ax-gdb.c (gen_expr): Yield ordinary error if asked to trace a
2891 pseudoregister, not an internal error.
85ecb32b 2892 Reported by: Andrzej Zaborowski
02e4669d 2893
c39c8256
VP
28942008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2895
2896 * varobj.c (c_value_of_variable): Use xstrdup.
2897
ae7d22a6
VP
28982008-02-04 Vladimir Prus <vladimir@codesourcery.com>
2899
2900 Update stored rendition of varobj value when format changes.
2901 * varobj.c (varobj_set_display_format): Recomputed
2902 print_value.
2903 (c_value_of_variable): Return print_value.
2904
81fe8080
DE
29052008-02-03 Doug Evans <dje@google.com>
2906
301f0ecf
DE
2907 * eval.c (evaluate_subexp_standard): Fix type of result of mixed
2908 integer/float division operations when EVAL_AVOID_SIDE_EFFECTS.
2909 * valops.c (value_one): New function.
2910 * value.h (value_one): Declare.
2911
2912 Fix argument promotion for binary arithmetic ops for C.
2913 * valarith.c (unop_result_type): New fn.
2914 (binop_result_type): New fn.
2915 (value_binop): Move result type computation to binop_result_type.
2916 (value_pos, value_neg, value_complement): Move result type
2917 computation to unop_result_type.
2918
81fe8080
DE
2919 PR 2384
2920 * gdbtypes.c (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2921 Return basetype, fieldno if found. All callers updated.
2922 Don't cache TYPE_VPTR_FIELDNO, TYPE_VPTR_BASETYPE if from different
2923 objfile.
2924 * gdbtypes.h (get_vptr_fieldno): Renamed from fill_in_vptr_fieldno.
2925 * symfile.h (fill_in_vptr_fieldno): Delete.
2926
41808ebe
DE
29272008-02-02 Doug Evans <dje@google.com>
2928
f8597ac3
DE
2929 * valarith.c (value_binop): Handle unsigned BINOP_REM division by zero.
2930
41808ebe
DE
2931 * typeprint.c (*): Whitespace cleanup.
2932
f964a756
MK
29332008-02-02 Mark Kettenis <kettenis@gnu.org>
2934 Luis Machado <luisgpm@br.ibm.com>
2935 Thiago Jung Bauermann <bauerman@br.ibm.com>
2936
2937 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Pass floats that
2938 don't fit into registerson the stack the way GCC does.
2939
b06ead72
JB
29402008-02-01 Joel Brobecker <brobecker@adacore.com>
2941
2942 * symtab.c (symbol_set_names): Do not add an entry in the demangling
2943 hash table for Ada symbols. Just store the linkage name as is,
2944 and leave the demangled_name as NULL.
2945
2cfa0c8d
JB
29462007-02-01 Joel Brobecker <brobecker@adacore.com>
2947
2948 * dwarf2read.c (add_partial_symbol): Always store all Ada subprograms
2949 in the global scope.
2950 (new_symbol): Likewise.
2951
98deb0da
VP
29522008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2953
2954 * breakpoint.c (break_command_1): Return void.
2955 (break_command_really): Return void. Rethrow
2956 exceptions instead of returning.
2957 (gdb_breakpoint): Remove the error_message parameter.
2958 Return void. Rename to set_breakpoint.
2959 * gdb.h (gdb_breakpoint): Rename and move to...
2960 * breakpoint.h (set_breakpoint): ...here.
2961 * mi/mi-cmb-break.c (mi_cmd_break_insert): Restore
2962 event hooks even if exception is thrown. Adjust to
2963 gdb_breakpoint interface changes.
2964
2965
ce0451ad
TJB
29662008-02-01 Thiago Jung Bauermann <bauerman@br.ibm.com>
2967
2968 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call): Write 32-bit
2969 float in both first and second word in the doubleword, to support
2970 old and new ABIs.
2971
723a2275
VP
29722008-02-01 Vladimir Prus <vladimir@codesourcery.com>
2973
2974 Properly rethrow exception. This fixes errors
2975 about non-existent functions for -break-insert.
2976 * breakpoint.c (break_command_really): Use throw_exception
2977 for rethrowing. If rethrowing, don't print the exception.
2978
d64a946d
TJB
29792008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
2980
2981 * NEWS: Mention Decimal Floating Point support.
2982
02b156f5
JB
29832008-01-31 Joel Brobecker <brobecker@adacore.com>
2984
2985 * std-regs.c (value_of_builtin_frame_pc_reg): Change the returned
2986 value type to builtin_type_void_func_ptr.
2987
a16b8bcd
UW
29882008-01-31 Andreas Krebbel <krebbel1@de.ibm.com>
2989
2990 * s390-tdep.c (is_float_singleton, is_float_like,
2991 alignment_of, s390_return_value): Make checks for
2992 TYPE_CODE_FLT to match TYPE_CODE_DECFLOAT as well.
2993
f949c649
TJB
29942008-01-31 Luis Machado <luisgpm@br.ibm.com>
2995 Thiago Jung Bauermann <bauerman@br.ibm.com>
2996
2997 * infcmd.c (default_print_registers_info): Also print hex
2998 raw contents for TYPE_CODE_DECFLOAT registers.
2999 * ppc-tdep.h (gdbarch_tdep): Add ppc_dl0_regnum member.
3000 * rs6000-tdep.c (IS_DFP_PSEUDOREG): New macro.
3001 (rs6000_register_name): Add support for DFP pseudo-registers.
3002 (rs6000_pseudo_register_type): Likewise.
3003 rs6000_pseudo_register_reggroup_p): Likewise.
3004 (ppc_pseudo_register_read): New function.
3005 (ppc_pseudo_register_write): Likewise.
3006 (rs6000_pseudo_register_read): Likewise.
3007 (rs6000_pseudo_register_write): Likewise.
3008 (e500_pseudo_register_read): Move checks to
3009 rs6000_pseudo_register_read.
3010 (e500_pseudo_register_write): Move checks to
3011 rs6000_pseudo_register_write.
3012 (rs6000_gdbarch_init): Initialize tdep->ppc_dl0_regnum. Install
3013 rs6000_pseudo_register_read and rs6000_pseudo_register_write
3014 in gdbarch if SPE or DFP is available. Adjust gdbarch's
3015 num_pseudo_regs to account for DFP pseudo regs.
3016
5a9e69ba
TJB
30172008-01-31 Thiago Jung Bauermann <bauerman@br.ibm.com>
3018
3019 * ppc-tdep.h (struct gdbarch_tdep): Remove ppc_ev31_regnum member.
3020 * rs6000-tdep.c (IS_SPE_PSEUDOREG): New macro.
3021 (spe_register_p, rs6000_register_name, rs6000_pseudo_register_type,
3022 rs6000_pseudo_register_reggroup_p, e500_move_ev_register,
3023 e500_pseudo_register_read, e500_pseudo_register_write): Use
3024 IS_SPE_PSEUDOREG macro.
3025 (rs6000_frame_cache): Remove use of tdep->ppc_ev31_regnum.
3026 (rs6000_gdbarch_init): Remove unnecessary num_sprs local variable.
3027 Remove initialization of tdep->ppc_ev31_regnum.
3028
4e885b20
JB
30292008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3030
3031 * printcmd.c (print_formatted): Handle references as for unformatted
3032 prints.
3033
80f064a2
JB
30342008-01-30 Joel Brobecker <brobecker@adacore.com>
3035
3036 * eval.c (evaluate_subexp_standard): Add handling of user
3037 registers when in EVAL_AVOID_SIDE_EFFECTS mode.
3038
9b3442ee
PM
30392008-01-30 Pierre Muller <muller@ics.u-strasbg.fr>
3040
3041 * eval.c (evaluate_subexp_standard): Support
3042 BINOP_INTDIV opcode.
3043
d118ef87
PH
30442008-01-30 Paul N. Hilfinger <hilfinger@adacore.com>
3045
3046 * valarith.c (value_binop): Add floating-point BINOP_MIN and
3047 BINOP_MAX cases.
3048 For BINOP_EXP, use length and signedness of left operand only for
3049 result, as for shifts.
3050 For integral operands to BINOP_EXP, use new integer_pow and
3051 uinteger_pow functions so as to get full range of results.
3052 (integer_pow): New function.
3053 (uinteger_pow): New function.
3054
d56d46f5
VP
30552008-01-30 Vladimir Prus <vladimir@codesourcery.com>
3056
3057 Use vector for varobj_list_children interface.
3058 * gdb/varobj.c (varobj_list_children): Return vector
3059 of varobjs.
3060 * gdb/varobj.h (varobj_list_children): Adjust
3061 prototype.
3062 (varobj_p): Declare. Declare vector thereof.
3063 * mi/mi-cmd-var.c (mi_cmd_var_list_children): Adjust
3064 for varobj_list_children change.
3065 * Makefile.in (varobj_h): Update dependencies.
3066
1300a2f4
TJB
30672008-01-30 Thiago Jung Bauermann <bauerman@br.ibm.com>
3068
3069 * ppc-sysv-tdep.c (ppc_sysv_abi_push_dummy_call): Add support for
3070 TYPE_CODE_DECFLOAT arguments.
3071 (ppc64_sysv_abi_push_dummy_call) Likewise.
3072 (get_decimal_float_return_value): New function.
3073 (do_ppc_sysv_return_value): Add support for TYPE_CODE_DECFLOAT return
3074 values by calling get_decimal_float_return_value.
3075 (ppc64_sysv_abi_return_value): Likewise.
3076
95ef687d
NR
30772008-01-30 Nick Roberts <nickrob@snap.net.nz>
3078
3079 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file): Add field
3080 for preprocessor macro information. Formatting changes.
3081
2d717e4f
DJ
30822008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3083
3084 * remote.c (struct remote_state): Add cached_wait_status.
3085 (remote_exec_file): New variable.
3086 (PACKET_vAttach, PACKET_vRun): New constants.
3087 (extended_remote_restart): Do not query for status.
3088 (struct start_remote_args): New.
3089 (remote_start_remote): Take it as a second argument. Check
3090 whether the target is running. Issue an error for non-running
3091 non-extended targets. Cache the wait status. Set inferior_ptid
3092 here.
3093 (remote_open_1): Prompt to disconnect non-running targets. Make
3094 sure the target is marked running. Do not set inferior_ptid here.
3095 Update call to remote_start_remote. Do not call remote_check_symbols
3096 if the target is not running.
3097 (remote_detach_1): Rename from remote_detach. Take an EXTENDED
3098 argument. Handle a non-running target.
3099 (remote_detach): Use it.
3100 (extended_remote_detach): New.
3101 (remote_disconnect): Fix typo. Use remoute_mourn_1.
3102 (extended_remote_attach_1, extended_remote_attach)
3103 (extended_async_remote_attach): New.
3104 (remote_vcont_resume): Remove unused variable.
3105 (remote_wait, remote_async_wait): Use any cached wait status.
3106 (putpkt_binary, getpkt): Clear any cached wait status.
3107 (extended_remoute_mourn_1): New.
3108 (extended_remote_mourn): Use it.
3109 (extended_async_remote_mourn, extended_remote_run): New.
3110 (extended_remote_create_inferior_1): New.
3111 (extended_remote_create_inferior): Use it.
3112 (extended_remote_async_create_inferior): Likewise.
3113 (remote_xfer_partial): Skip for non-executing targets.
3114 (init_extended_remote_ops): Set to_detach and to_attach.
3115 (init_extended_async_remote_ops): Likewise. Use
3116 extended_async_remote_mourn.
3117 (_initialize_remote): Register vAttach, vRun, and
3118 set remote exec-file.
3119 * NEWS: Mention vAttach, vRun, and gdbserver extended-remote support.
3120
e85a822c
DJ
31212008-01-29 Daniel Jacobowitz <dan@codesourcery.com>
3122
3123 * Makefile.in (symfile.o): Update.
3124 * NEWS: Mention exec tracing support.
3125 * inf-ttrace.c (inf_ttrace_wait): Return TARGET_WAITKIND_EXECD for
3126 exec events.
3127 * infcmd.c (kill_if_already_running, detach_command)
3128 (disconnect_command): Replace SOLIB_RESTART with no_shared_libraries.
3129 * infrun.c (MAY_FOLLOW_EXEC, may_follow_exec): Delete.
3130 (follow_exec): Do not check may_follow_exec. Do not mourn and push
3131 targets. Apply the sysroot path to the loaded executable. Use
3132 no_shared_libraries.
3133 * linux-nat.c (linux_child_follow_fork): Print fork following
3134 messages if verbose.
3135 (kill_wait_callback): Kill again before waiting a second time.
3136 * symfile.c (symbol_file_clear): Replace SOLIB_RESTART with
3137 no_shared_libraries.
3138
9db13498
JB
31392008-01-29 Joel Brobecker <brobecker@adacore.com>
3140
3141 * amd64-tdep.c (amd64_classify): Add handling of TYPE_CODE_CHAR.
3142
b4d5ed91
JB
31432008-01-29 Joel Brobecker <brobecker@adacore.com>
3144
3145 * nto-tdep.h: Remove #include "defs.h".
3146 * nto-tdep.c: Add #include "defs.h".
3147 * Makefile.in (nto_tdep_h): Update dependencies.
3148 (nto-tdep.o): Likewise.
3149
107313f7 31502008-01-29 Joel Brobecker <brobecker@adacore.com>
ae123ec6
JB
3151
3152 * infrun.c (wait_for_inferior): Add treat_exec_as_sigtrap parameter
3153 and use it.
3154 (proceed, start_remote): Update call to wait_for_inferior.
3155 * inferior.h (wait_for_inferior): Update declaration.
3156 * fork-child.c, infcmd.c, solib-irix.c, solib-osf.c, solib-sunos.c,
3157 solib-svr4.c, win32-nat.c: Update calls to wait_for_inferior.
3158 * inf-ttrace.c (inf_ttrace_wait): Report TTEVT_EXEC events as
3159 TARGET_WAITKIND_EXECD instead of TARGET_WAITKIND_STOPPED.
3160
3f4178d6
DJ
31612008-01-29 Aleksandar Ristovski <aristovski@qnx.com>
3162
3163 * varobj (adjust_value_for_child_access): Added checking for
3164 returned value from gdb_value_ind.
3165 (c_describe_child): Likewise.
3166 (cplus_describe_child): Fixed a typo.
3167
5eeba8d4
JB
31682008-01-29 Jim Blandy <jimb@red-bean.com>
3169
3170 * MAINTAINERS: Update my info.
3171
a5606eee
VP
31722008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3173
3174 Use multiple locations for hardware watchpoints.
3175 This eliminates the need to traverse value chain, doing
3176 various checks, in three different places.
3177
3178 * breakpoint.h (struct bp_location): New fields
3179 lengths and watchpoint_type.
3180 (struct breakpoint): Remove the val_chain field.
3181 * breakpoint.c (is_hardware_watchpoint): New.
3182 (free_valchain): Remove.
3183 (update_watchpoint): New.
3184 (insert_bp_location): For hardware watchpoint, just
3185 directly insert it.
3186 (insert_breakpoints): Call update_watchpoint_locations
3187 on all watchpoints. If we have failed to insert
3188 any location of a hardware watchpoint, remove all inserted
3189 locations.
3190 (remove_breakpoint): For hardware watchpoints, directly
3191 remove location.
3192 (watchpoints_triggered): Iterate over locations.
3193 (bpstat_stop_status): Use only first location of
3194 a resource watchpoint.
3195 (delete_breakpoint): Don't call free_valchain.
3196 (print_one_breakpoint): Don't print all
3197 locations for watchpoints.
3198 (breakpoint_re_set_one): Use update_watchpoint for
3199 watchpoints.
3200
0b3de036
VP
32012008-01-29 Vladimir Prus <vladimir@codesourcery.com>
3202
3203 Don't reset watchpoint block on solib load.
3204
3205 * breakpoint.c (insert_bp_location): For watchpoints,
3206 recompute condition.
3207 (breakpoint_re_set_one): Instead of recomputing value
3208 and condition for watchpoints, just reset value and
3209 let insert_breakpoints/insert_bp_location recompute it.
3210 Don't do anything about disabled watchpoint.
3211
c3940723
PM
32122008-01-29 Pierre Muller <muller@ics.u-strasbg.fr>
3213
3214 * valarith.c (value_binop): Handle unsigned integer
3215 division by zero.
3216
83845630
KB
32172008-01-28 Kevin Buettner <kevinb@redhat.com>
3218
3219 * mn10300-tdep.c (mn10300_analyze_prologue): Check for an
3220 instruction pattern that appears frequently in position
3221 independent code. Fix bug in code which looks for "fmov" and
3222 backtracks if no "fmov" is found.
3223
9ce5d3bb
DE
32242008-01-28 Doug Evans <dje@google.com>
3225
3226 * dbxread.c (read_dbx_symtab): Fix indentation.
131fe1bb
DE
3227 Reformat comments to 80 columns.
3228 Move local var def closer to only use.
9ce5d3bb 3229
c78d192c
DJ
32302008-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3231
3232 * fork-child.c (SHELL_FILE): Remove #ifndef.
3233 (fork_inferior): Remove SHELL_COMMAND_CONCAT.
3234
e11481da
PM
32352008-01-25 Pierre Muller <muller@ics.u-strasbg.fr>
3236
3237 * i386-tdep.c (i386_skip_noop): New function.
3238 (i386_analyze_prologue): Call i386_skip_noop function.
3239
244e85c8
MS
32402008-01-24 Michael Snyder <msnyder@specifix.com>
3241
3242 * procfs.c (procfs_xfer_partial): Comment, cut/paste error.
3243 * win32-nat.c (win32_xfer_partial): Ditto.
3244 * target.c (default_xfer_partial): Minor whitespace adjustment.
3245
dd6be234
PA
32462008-01-24 Pedro Alves <pedro@codesourcery.com>
3247
3248 * arm-tdep.c (arm_addr_bits_remove): In non 26-bit mode, don't
3249 strip bit 1 even if pc doesn't point to thumb code.
3250
9fa2223d
DJ
32512008-01-23 Daniel Jacobowitz <dan@codesourcery.com>
3252
3253 * remote.c (remote_wait): Handle SIGINT between packets.
3254 (remote_async_wait): Likewise.
3255
93815fbf
VP
32562008-01-23 Vladimir Prus <vladimir@codesourcery.com>
3257 Chris Demetriou <cgd@google.com>
3258
3259 * thread.c (add_thread_silent): Renamed
3260 from add_thread.
3261 (print_thread_events): New variable definition.
3262 (show_print_thread_events): New function.
3263 (_initialize_thread): Add "set print thread-events" and
3264 "show print thread-events" commands.
3265 (add_thread): Announce new thread.
3266 * gdbthread.h (add_thread_silent): Declare.
3267 (print_thread_events): New variable declaration.
3268 * inf-ttrace.c (inf_ttrace_wait): Don't
3269 inform about new thread, as add_thread is always
3270 called too, and will take care of that.
3271 * infrun.c (handle_inferior_event): Likewise.
3272 * procfs.c (procfs_wait): Likewise.
3273 * remote.c (remote_currthread): Likewise.
3274 * sol-thread.c (sol_thread_wait): Likewise.
3275 * win32-nat.c (get_win32_debug_event): Likewise.
3276 * linux-thread-db.c (attach_thread): Likewise.
3277 Remove the verbose parameter.
3278 (check_event): Make detach_thread be verbose
3279 only if print_thread_events is set.
3280 * linux-nat.c (lin_lwp_attach_lwp): Don't inform
3281 about new thread. This is called only from
3282 linux-thread-db.c:attach_thread, which will take care.
3283 Remove the verbose parameter.
3284 * linux-nat.h (lin_lwp_attach_lwp): Adjust prototype.
3285
b4d7c9a6
NR
32862008-01-23 Nick Roberts <nickrob@snap.net.nz>
3287
3288 * mi/mi-cmd-var.c (mi_cmd_var_set_format): Add value field to output.
3289
60c46647
VP
32902008-01-22 Vladimir Prus <vladimir@codesourcery.com>
3291
3292 * breakpoint.c (break_command_really): New parameter
3293 ignore_count.
3294 (break_command_1): Pass 0 as
3295 ignore_count to break_command_really.
3296 (gdb_breakpoint): Pass ignore_count to
3297 break_command_really.
3298
e84605cd
KB
32992008-01-21 Kevin Buettner <kevinb@redhat.com>
3300
3301 * mn10300-linux-tdep.c (am33_linux_sigframe_cache_init): Find
3302 sigcontext struct via pointer.
3303 (struct sigframe comment): Update to show new field `psc'.
3304
9d9cd7ac
VP
33052008-01-21 Vladimir Prus <vladimir@codesourcery.com>
3306
3307 * infrun.c (handle_inferior_event): If
3308 we failed to remove breakpoints, error,
3309 don't try to increment PC by hand.
3310
af5ca30d
NH
33112008-01-18 Nick Hudson <nick.hudson@dsl.pipex.com>
3312
3313 Add NetBSD/hppa target and host support.
3314
3315 * hppabsd-tdep.c (hppabsd_supply_gregset): Move to ...
3316 (hppabsd_gregset): Move to ...
3317 (hppabsd_regset_from_core_section): Rename
3318 hppaobsd_regset_from_core_section and move to ...
3319 (hppabsd_find_global_pointer): Update comment.
3320 (hppabsd_init_abi): Make global. Do not register
3321 hppabsd_regset_from_core_section.
3322 (hppabsd_core_osabi_sniffer): Rename hppaobsd_core_osabi_sniffer and
3323 move to ...
3324 (_initialize_hppabsd_tdep): Move to ...
3325 * hppaobsd-tdep.c: ... here. New file.
3326 * hppnbsd-tdep.c: New file.
3327 * hppnbsd-nat.c: New file.
3328 * Makefile.in (ALL_TARGET_OBS): Add hppanbsd-tdep.o and hppaobsd-tdep.o.
3329 (ALLDEPFILES): Add hppabsd-nat.c and hppabsd-tdep.c.
3330 (hppabsd-nat.o, hppabsd-tdep.o): New dependencies.
3331 (hppabsd-tdep.o, hppaobsd-tdep.o): Update dependencies.
3332 * configure.host (hppa*-*-netbsd*): New entry.
3333 * configure.tgt (hppa*-*-netbsd*): New entry.
3334 (hppa*-*-openbsd*): Update.
3335 * NEWS (New native configuration): Mention NetBSD/hppa.
3336 (New targets): Mention NetBSD/hppa.
3337
32c9a795
MD
33382008-01-18 Markus Deuling <deuling@de.ibm.com>
3339
3340 * gdbarch.sh (function_list): Add new property bits_big_endian to
3341 gdbarch structure.
3342 * gdbarch.{c,h}: Regenerate.
3343
3344 * value.c (struct value): Replace BITS_BIG_ENDIAN by
3345 gdbarch_bits_big_endian (comment).
3346 (unpack_field_as_long, modify_field): Likewise.
3347 * value.h: Likewise (comment).
3348 * valops.c (value_slice): Likewise.
3349 * valarith.c (value_subscript, value_bit_index): Likewise.
3350 * gdbtypes.h (field): Likewise (comment).
3351 * eval.c (evaluate_subexp_standard): Likewise.
3352 * dwarf2read.c (dwarf2_add_field): Likewise.
3353 * ada-lang.c (decode_packed_array, ada_value_primitive_packed_val)
3354 (move_bits, ada_value_assign, value_assign_to_component): Likewise.
3355
3356 * defs.h (BITS_BIG_ENDIAN): Remove.
3357
1e5e79d0
MD
33582008-01-18 Markus Deuling <deuling@de.ibm.com>
3359
3360 * jv-exp.y (yylex): Replace DEPRECATED_STREQN with the appropriate
3361 function calls.
3362 * m2-exp.y (yylex): Likewise.
3363 * objc-exp.y (yylex): Likewise.
3364
3365 * defs.h (DEPRECATED_STREQN): Remove.
3366
fabda5a7
L
33672008-01-17 H.J. Lu <hjl.tools@gmail.com>
3368
3369 * MAINTAINERS: Update my email address.
3370
92726479
JB
33712008-01-17 Jim Blandy <jimb@codesourcery.com>
3372
3373 * README: Mention gdbserver/README.
3374
ef80d18e
PM
33752008-01-17 Pierre Muller <muller@ics.u-strasbg.fr>
3376
3377 * valarith.c (value_binop): Handle BINOP_INTDIV
3378 for unsigned and signed integers.
3379
1de90795
UW
33802008-01-17 Ulrich Weigand <uweigand@de.ibm.com>
3381
3382 * s390-tdep.c (s390_gdbarch_init): Set default long double
3383 type to 128-bit IEEE quad.
3384
c70bd6f3
JB
33852008-01-17 Joel Brobecker <brobecker@adacore.com>
3386
3387 * hpux-thread.c (hpux_thread_resume): Delete commented-out code.
3388
ba759613
MK
33892008-01-16 Mark Kettenis <kettenis@gnu.org>
3390
77d49ac6
MK
3391 * auxv.c (fprint_target_auxv): Add support for AT_SUN_AUXFLAGS.
3392
ba759613
MK
3393 * dfp.c, dfp.h: Rename decimal_to_double to decimal_to_doublest.
3394 * value.c: All callers changed.
3395
7ecb6532
MD
33962008-01-16 Markus Deuling <deuling@de.ibm.com>
3397
3398 * rs6000-nat.c (add_vmap, vmap_ldinfo, vmap_exec): Replace
3399 DEPRECATED_STREQ by its expression.
3400 * coffread.c (coff_locate_sections, coff_symtab_read): Likewise.
3401 * xcoffread.c (read_xcoff_symtab, read_symbol_lineno, find_linenos)
3402 (scan_xcoff_symtab): Likewise.
3403 * hppa-hpux-tdep.c (hppa_hpux_skip_trampoline_code): Likewise.
3404 * f-lang.c (find_common_for_function): Likewise.
3405 * objc-exp.y (parse_number): Likewise.
3406
3407 * defs.h (DEPRECATED_STREQ): Remove.
3408
d15cf01c
MD
34092008-01-16 Markus Deuling <deuling@de.ibm.com>
3410
3411 * mn10300-tdep.h (AM33_MODE): Add gdbarch as parameter.
3412 * mn10300-tdep.c (set_reg_offsets, mn10300_analyze_prologue): Use
3413 get_frame_arch to get at the current_architecture. Update AM33_MODE
3414 call.
3415 (mn10300_analyze_prologue): Add gdbarch as parameter. Update caller.
3416 (mn10300_frame_unwind_cache): Use get_frame_arch to get at the current
3417 architecture.
3418 (set_reg_offsets, mn10300_analyze_prologue): Fix indentation.
3419
f8028488
MD
34202008-01-16 Markus Deuling <deuling@de.ibm.com>
3421
3422 * amd64-nat.h (amd64_native_gregset_supplies_p): Add gdbarch as
3423 parameter.
3424 * amd64-nat.c (amd64_native_gregset_supplies_p): Likewise.
3425
3426 (amd64_native_gregset_reg_offset): Add gdbarch as parameter. Replace
3427 current_gdbarch by gdbarch. Update caller.
3428
3429 * amd64-linux-nat.c (amd64_linux_fetch_inferior_registers)
3430 (amd64_linux_store_inferior_registers): Use get_regcache_arch to get at
3431 the current architecture. Update calls of
3432 amd64_native_gregset_supplies_p.
3433 * amd64bsd-nat.c (amd64bsd_fetch_inferior_registers)
3434 (amd64bsd_store_inferior_registers): Likewise.
3435
e101270f
MD
34362008-01-16 Markus Deuling <deuling@de.ibm.com>
3437
3438 * ppc-linux-nat.c (ppc_register_u_addr): Add gdbarch as parameter.
3439 Replace current_gdbarch by gdbarch. Update caller.
3440
063e58ba
MD
34412008-01-16 Markus Deuling <deuling@de.ibm.com>
3442
3443 * dbxread.c (repeated_header_complaint, dbx_symfile_init)
3444 (read_dbx_dynamic_symtab, function_outside_compilation_unit_complaint)
3445 (read_dbx_symtab, end_psymtab, dbx_psymtab_to_symtab_1)
3446 (dbx_psymtab_to_symtab, read_ofile_symtab, process_one_symbol)
3447 (stabsect_build_psymtabs): Fix indentation.
3448
662fb31b
MS
34492008-01-15 Michael Snyder <msnyder@specifix.com>
3450
3451 * corelow.c (core_xfer_partial): Comment, cut/paste error.
3452
c1766e7d
PM
34532008-01-14 Pierre Muller <muller@ics.u-strasbg.fr>
3454
3455 * win32-nat.c (win32_create_inferior): Restore code calling
3456 CloseHandle on ProcessInformation structure.
3457
5ed10e6e
NH
34582008-01-13 Nick Hudson <nick.hudson@dsl.pipex.com>
3459
3460 * configure.ac: Check for void * as 3 argument of ptrace.
3461 * configure: regenerate.
3462
be8626e0
MD
34632008-01-11 Markus Deuling <deuling@de.ibm.com>
3464
3465 * alpha-tdep.c (alpha_heuristic_proc_start)
3466 (alpha_sigtramp_register_address): Add gdbarch as parameter. Replace
3467 current_gdbarch by gdbarch.
3468
3469 (alpha_heuristic_frame_unwind_cache): Use get_frame_arch to get at the
3470 current architecture by frame_info. Update alpha_heuristic_proc_start
3471 call.
3472
3473 (alpha_sigtramp_frame_this_id, alpha_sigtramp_frame_prev_register): Use
3474 get_frame_arch to get at the current architecture by frame_info. Update
3475 alpha_sigtramp_register_address call.
3476
3477 * arm-tdep.c (thumb_scan_prologue): Add gdbarch as parameter and replace
3478 current_gdbarch by gdbarch. Update caller.
3479 (convert_to_extended, convert_from_extended): Add endianess parameter
3480 for comparison. Update caller.
3481 (arm_extract_return_value, arm_store_return_value): Use
3482 get_regcache_arch to get at the current architecture.
3483
3484 * cris-tdep.c (cris_register_size): Add gdbarch as parameter. Replace
3485 current_gdbarch by gdbarch. Update caller.
3486 (cris_gdb_func, move_to_preg_op, none_reg_mode_move_from_preg_op): Add
3487 gdbarch as parameter. Update caller. Replace current_gdbarch by gdbarch.
3488
3489 * h8300-tdep.c (E_PSEUDO_CCR_REGNUM, E_PSEUDO_EXR_REGNUM, BINWORD): Add
3490 gdbarch as parameter. Update caller.
3491 (h8300_init_frame_cache): Add gdbarch as parameter. Replace
3492 current_gdbarch by gdbarch. Update caller.
3493
3494 * hppa-tdep.c (skip_prologue_hard_way): Add gdbarch as parameter and
3495 update caller. Replace current_gdbarch by gdbarch.
3496
3497 * m32c-tdep.c (m32c_skip_trampoline_code): Use get_frame_arch to get at
3498 the current architecture. Replace current_gdbarch by gdbarch.
3499 * m68hc11-tdep.c (m68hc11_frame_unwind_cache): Likewise.
3500 (STACK_CORRECTION, USE_PAGE_REGISTER): Replace M6811_TDEP by its
3501 expression. Add gdbarch as parameter and replace current_gdbarch with
3502 it. Update caller.
3503 (M6811_TDEP): Remove.
3504 (m68hc11_frame_prev_register): Use get_frame_arch to get at the current
3505 architecture.
3506 (m68hc11_scan_prologue): Add gdbarch as parameter. Replace
3507 current_gdbarch by gdbarch. Update caller.
3508
3509 * m68k-tdep.c (m68k_analyze_prologue): Add gdbarch as parameter and
3510 update caller.
3511 (m68k_analyze_register_saves): Likewise. Also replace current_gdbarch
3512 by gdbarch.
3513
3514 * rs6000-tdep.c (skip_prologue): Add gdbarch as parameter and update
3515 caller. Relace current_gdbarch by gdbarch.
3516 (altivec_register_p, spe_register_p): Likewise.
3517 * ppc-tdep.h (altivec_register_p, spe_register_p): Add gdbarch as
3518 parameter.
3519 * ppc-linux-nat.c (fetch_register, store_register): Update caller of
3520 altivec_register_p and spe_register_p.
3521
3522 * score-tdep.c (score_fetch_inst): Add gdbarch as parameter. Update
3523 caller. Replace current_gdbarch by gdbarch.
3524 (score_analyze_prologue): use get_frame_arch to get at the current
3525 architecture.
3526
3527 * sparc-tdep.h (sparc_analyze_prologue): Add gdbarch as parameter.
3528 * sparc-tdep.c (sparc_analyze_prologue): Likewise. Replace
3529 current_gdbarch by gdbarch. Update caller.
3530 (sparc_frame_cache): Use get_frame_arch to get at the current
3531 architecture.
3532 * sparce64-tdep.c (sparc64_skip_prologue): Update call of
3533 sparc_analyze_prologue.
3534
3535 * mn10300-tdep.c (mn10300_dwarf2_reg_to_regnum): Add gdbarch as
3536 parameter.
3537
ed49a04f
MD
35382008-01-11 Markus Deuling <deuling@de.ibm.com>
3539
3540 * exec.c: #include "arch-utils.h"
3541 (print_section_info): Use gdbarch_from_bfd to get at the
3542 current architecture. Replace current_gdbarch. Fix indention. Replace
3543 deprecated_print_address_numeric by paddress.
3544 * Makefile.in (exec.o) Add dependency to arch-utils.h.
3545
3546 * valprint.c (val_print_string): Replace
3547 deprecated_print_address_numeric.
3548 * tracepoint.c (trace_mention, scope_info): Likewise.
3549 * symmisc.c (dump_msymbols, dump_psymtab, dump_symtab_1, print_symbol)
3550 (print_symbol, print_partial_symbols, maintenance_info_psymtabs)
3551 (maintenance_check_symtabs): Likewise.
3552 * symfile.c (list_overlays_command): Likewise.
3553 * stack.c (frame_info, print_block_frame_labels): Likewise.
3554 * printcmd.c (print_address, print_address_demangle)
3555 (address_info): Likewise.
3556 * corefile.c (memory_error): Likewise.
3557 * infcmd.c (jump_command): Likewise.
3558 * breakpoint.c (insert_bp_location, describe_other_breakpoints)
3559 (mention, delete_breakpoint): Likewise.
3560 * c-valprint.c (print_function_pointer_address, c_val_print): Likewise.
3561 * dwarf2read.c (dump_die): Likewise.
3562 * ada-valprint.c (ada_val_print_1): Likewise.
3563 * f-valprint.c (f_val_print): Likewise.
3564 * linux-fork.c (info_forks_command): Likewise.
3565 * m32r-com.c (m32r_load_section, m32r_load)
3566 (m32r_upload_command): Likewise.
3567
3568 * ui-out.c (ui_out_field_core_addr): Remove unnecessary comment.
3569
6093d2eb
MD
35702008-01-11 Markus Deuling <deuling@de.ibm.com>
3571
3572 * gdbarch.sh (skip_prologue): Add gdbarch
3573 as parameter.
3574 * gdbarch.{c,h}: Regenerate.
3575
3576 * alpha-tdep.c (alpha_skip_prologue): Add gdbarch as parameter.
3577 * amd64-tdep.c (amd64_skip_prologue): Likewise.
3578 * avr-tdep.c (avr_skip_prologue): Likewise.
3579 * cris-tdep.c (cris_skip_prologue): Likewise.
3580 * frv-tdep.c (frv_skip_prologue): Likewise.
3581 * h8300-tdep.c (h8300_skip_prologue): Likewise.
3582 * hppa-tdep.c (hppa_skip_prologue): Likewise.
3583 * i386-tdep.c (i386_skip_prologue): Likewise.
3584 * ia64-tdep.c (ia64_skip_prologue): Likewise.
3585 * iq2000-tdep.c (iq2000_skip_prologue): Likewise.
3586 * m32r-tdep.c (m32r_skip_prologue): Likewise.
3587 * m68hc11-tdep.c (m68hc11_skip_prologue): Likewise.
3588 * m68k-tdep.c (m68k_skip_prologue): Likewise.
3589 * m88k-tdep.c (m88k_skip_prologue): Likewise.
3590 * mep-tdep.c (mep_skip_prologue): Likewise.
3591 * mips-tdep.c (mips_skip_prologue): Likewise.
3592 * mn10300-tdep.c (mn10300_skip_prologue): Likewise.
3593 * mt-tdep.c (mt_skip_prologue): Likewise.
3594 * rs6000-tdep.c (rs6000_skip_prologue): Likewise.
3595 * score-tdep.c (score_skip_prologue): Likewise.
3596 * sh64-tdep.c (sh64_skip_prologue): Likewise.
3597 * sh-tdep.c (sh_skip_prologue): Likewise.
3598 * sparc64-tdep.c (sparc64_skip_prologue): Likewise.
3599 * sparc-tdep.c (sparc32_skip_prologue): Likewise.
3600 * spu-tdep.c (spu_skip_prologue): Likewise.
3601 * v850-tdep.c (v850_skip_prologue): Likewise.
3602 * vax-tdep.c (vax_skip_prologue): Likewise.
3603 * xstormy16-tdep.c (xstormy16_skip_prologue): Likewise.
3604 * xtensa-tdep.c (xtensa_skip_prologue): Likewise.
3605
3606 * arm-tdep.c (arm_skip_prologue): Add gdbarch as parameter. Replace
3607 current_gdbarch by gdbarch.
3608 * m32c-tdep.c (m32c_skip_prologue): Likewise.
3609 * s390-tdep.c (s390_skip_prologue): Likewise.
3610
72f5cf0e
DE
36112008-01-10 Doug Evans <dje@google.com>
3612
3613 * defs.h (struct continuation_arg): Fix typo in comment.
3614 * target.c (target_translate_tls_address): Fix comment spelling error.
3615
689e4e2d
TJB
36162008-01-09 Thiago Jung Bauermann <bauerman@br.ibm.com>
3617
3618 * doublest.h (DOUBLEST_PRINT_FORMAT): Remove % from string.
3619 (DOUBLEST_SCAN_FORMAT): Likewise.
3620 * dfp.c (decimal_from_floating): Use DOUBLEST_PRINT_FORMAT.
3621 * ada-lex.l (processReal): Prepend "%" to use of DOUBLEST_SCAN_FORMAT.
3622 * c-exp.y (parse_number): Likewise.
3623 * jv-exp.y (parse_number): Likewise.
3624 * objc-exp.y (parse_number): Likewise.
3625 * p-exp.y (parse_number): Likewise.
3626
ab0d6e0d
JB
36272008-01-09 Joel Brobecker <brobecker@adacore.com>
3628
3629 * gdbtypes.c (create_array_type): Add handling of null Ada arrays.
3630 (check_typedef): Likewise.
3631
0aea4bf3
LM
36322008-01-09 Luis Machado <luisgpm@br.ibm.com>
3633
3634 * printcmd.c (printf_command): Add seen_big_h, seen_big_d and
3635 seen_double_big_d, treat the new H, D, and DD modifiers as length
3636 modifiers.
3637
137033e9
JB
36382008-01-08 Joel Brobecker <brobecker@adacore.com>
3639
3640 * dwarf2read.c (read_enumeration_type): Add comment.
3641
dda297ec
TJB
36422008-01-08 Thiago Jung Bauermann <bauerman@br.ibm.com>
3643
3644 * config.in: Regenerate.
3645
a93c0eb6
JB
36462008-01-08 Joel Brobecker <brobecker@adacore.com>
3647
3648 * ada-lang.c (ada_convert_actual): Renames convert_actual.
3649 Make non-static.
3650 (ada_convert_actuals): Delete.
3651 * ada-lang.h (ada_convert_actual): Add declaration.
3652 (ada_convert_actuals): Remove declaration.
3653 * infcall.c: #include "ada-lang.h".
3654 (value_arg_coerce): Add new parameter sp. Update function
3655 documetnation. Add handling of Ada function call parameters.
3656 * Makefile.in (infcall.o): Update dependencies.
3657
a84a8a0d
JB
36582008-01-08 Paul Hilfinger <hilfinger@adacore.com>
3659
3660 * ada-lang.c (ensure_lval): Fix value lval kind.
3661 (convert_actual): Add handling for arguments passed by reference.
3662
d7f98cce
DE
36632008-01-08 Doug Evans <dje@google.com>
3664
3665 * dbxread.c (read_dbx_symtab): Fix indentation.
3666
4ef30785
TJB
36672008-01-07 Thiago Jung Bauermann <bauerman@br.ibm.com>
3668
3669 * Makefile.in (dfp.o): Depend on expression.h, gdbtypes.h and value.h.
3670 (valarith.o): Depend on dfp.h.
3671 (valops.o): Likewise.
3672 * dfp.c: Include expression.h, gdbtypes.h, value.h and dfp.h.
3673 (set_decnumber_context): New function.
3674 (decimal_check_errors): Likewise.
3675 (decimal_from_number): Likewise.
3676 (decimal_to_number): Likewise.
3677 (decimal_from_string): Use set_decnumber_context and
3678 decimal_check_errors.
3679 (decimal_from_integral): New function.
3680 (decimal_from_floating): Likewise.
3681 (decimal_to_double): Likewise.
3682 (promote_decimal): Likewise.
3683 (decimal_binop): Likewise.
3684 (decimal_is_zero): Likewise.
3685 (decimal_compare): Likewise.
3686 (decimal_convert): Likewise.
3687 * dfp.h (decimal_from_integral): New prototype.
3688 (decimal_from_floating): Likewise.
3689 (decimal_to_double): Likewise.
3690 (decimal_binop): Likewise.
3691 (decimal_is_zero): Likewise.
3692 (decimal_compare): Likewise.
3693 (decimal_convert): Likewise.
3694 * eval.c (evaluate_subexp_standard): Remove expect_type argument from
3695 call to value_from_decfloat.
3696 * valarith.c: Include dfp.h.
3697 (value_args_as_decimal): New function.
3698 (value_binop): Add if block to handle TYPE_CODE_DECFLOAT values.
3699 (value_logical_not): Likewise.
3700 (value_equal): Likewise.
3701 (value_less): Likewise.
3702 (value_pos): Likewise.
3703 (value_neg): Formatting fix.
3704 * valops.c: Include dfp.h.
3705 (value_cast): Add if block to handle TYPE_CODE_DECFLOAT values.
3706 * value.c (unpack_long): Add case to handle TYPE_CODE_DECFLOAT.
3707 (unpack_double): Add if block to handle TYPE_CODE_DECFLOAT.
3708 (value_from_decfloat): Remove expect_type argument.
3709 * value.h (value_from_decfloat): Update prototype.
3710
a7c02bc8
VP
37112008-01-07 Vladimir Prus <vladimir@codesourcery.com>
3712
3713 Ignore change in name of dynamic linker during
3714 execution on Solaris. This also unbreaks pending breakpoints.
3715
3716 * solist.h (struct target_so_ops): New field same.
3717 * solib-svr4.c (svr4_same): New.
3718 (_initialize_svr4_solib): Register svr4_same.
3719 * solib.c (update_solib_list): Use ops->same, if available.
3720
610dd7f9
CF
37212008-01-06 Christopher Faylor <me+cygwin@cgf.cx>
3722
3723 * win32-nat.c (win32_make_so): Use cygwin-style path to avoid warnings
3724 when using MS-DOS paths.
3725
7a404eba
PA
37262008-01-05 Pedro Alves <pedro@codesourcery.com>
3727
3728 * NEWS: Mention --pid and --core command line behaviour changes.
3729
a4d9b460
PA
37302008-01-05 Pedro Alves <pedro@codesourcery.com>
3731
3732 * main.c (captured_main): Remove 'count' varible and the
3733 ALIGN_STACK_ON_ENTRY block that used it. Error out if --core and
3734 --pid options were issued simultaneously. If an explicit pid
3735 option was passed, don't fallback to core file. Detect extra
3736 arguments better in the presence of explicit pid or core
3737 arguments.
3738
0c281816
JB
37392008-01-05 Joel Brobecker <brobecker@adacore.com>
3740
3741 * ada-lang.c (ada_which_variant_applies): Correctly compute
3742 the value of the discriminant when the variant record is packed.
3743
babe1480
JB
37442008-01-04 Joel Brobecker <brobecker@adacore.com>
3745
3746 * ada-lang.c (is_name_suffix): Handle middle-name numeric suffixes
3747 that are used to differentiate homonyms.
3748
727e3d2e
JB
37492008-01-04 Jerome Guitton <guitton@adacore.com>
3750
3751 * ada-lang.c (decode_packed_array_type): Avoid a seg fault
3752 when the type is an anonymous pointer type.
3753 (ada_check_typedef): Avoid a seg fault when the type is null.
3754 * ada-typeprint.c (print_array_type): Add support for pointer
3755 to packed arrays.
3756
bb28a9dc
JB
37572008-01-04 Paul N. Hilfinger <hilfinger@adacore.com>
3758
3759 * ada-exp.y: Allow '{type} ADDRESS' notation on left of assignment.
3760
6799def4
JB
37612008-01-04 Joel Brobecker <brobecker@adacore.com>
3762
3763 * ada-lang.c (ada_evaluate_subexp): Evaluate tagged types in
3764 EVAL_NORMAL mode when noside is EVAL_AVOID_SIDE_EFFECTS.
3765
d3353bbd
JB
37662008-01-04 Joel Brobecker <brobecker@adacore.com>
3767
3768 * ada-exp.y (chop_separator): New function.
3769 (write_selectors): Rewrite to re-use chop_separator.
3770 (ada_nget_field_index, get_symbol_field_type): New functions.
3771 (write_var_or_type): Add support for "ptype TYPENAME.FIELD"
3772 expressions.
3773
82cf6c60
TJB
37742008-01-03 Thiago Jung Bauermann <bauerman@br.ibm.com>
3775
3776 * symtab.c (find_pc_sect_line): Use SYMBOL_VALUE_ADDRESS instead
3777 of SYMBOL_VALUE when working with function symbols.
3778
b3dbf008
JB
37792008-01-03 Joel Brobecker <brobecker@adacore.com>
3780
3781 * ada-lang.c (resolve_subexp): Add handling of OP_REGISTER
3782 expressions. These expressions do not need to be rewriten.
3783
02eb380e
JB
37842008-01-03 Joel Brobecker <brobecker@adacore.com>
3785
3786 * dwarf2read.c (read_enumeration_type): Flag type as stub if
3787 the given die is a declaration.
3788
abb68b3e
JB
37892008-01-03 Joel Brobecker <brobecker@adacore.com>
3790
3791 * ada-lang.c (ada_array_bound_from_type): Make non-static.
3792 Handle properly the case when the index type is an enumerated type.
3793 Do not return the subtype of the bounds type, just return the
3794 bounds type directly - this is not needed and is more consistent
3795 with what we do for arrays when no XA parallel type exists.
3796
f192137b
JB
37972008-01-03 Joel Brobecker <brobecker@adacore.com>
3798
3799 * ada-lang.c (static_unwrap_type): Add forward declaration.
3800 (template_to_static_fixed_type): Fields of dynamic types sometimes
3801 also need to be unwrapped. Take this into account.
3802 (ada_to_fixed_type_1): Renamed from ada_to_fixed_type.
3803 (ada_to_fixed_type): New wrapper around ada_to_fixed_type_1.
3804 * ada-typeprint.c (ada_print_type): Get the typename from
3805 the original type, not the base type.
3806
1ed6ede0
JB
38072008-01-03 Jerome Guitton <guitton@adacore.com>
3808
3809 * ada-lang.c (ada_value_struct_elt, to_fixed_array_type)
3810 (to_fixed_array_type, ada_to_fixed_value_create, unwrap_value):
3811 Update calls to ada_to_fixed_type.
3812 (ada_template_to_fixed_record_type_1): Ditto, but without looking
3813 for the tag.
3814 (ada_to_fixed_type): Add check_tag parameter; do not look for
3815 tag if null. When looking for a tag, use a fixed record type.
3816 * ada-lang.h (ada_to_fixed_type): Add check_tag parameter.
3817 * ada-valprint.c (printable_val_type, ada_value_print): Update
3818 calls to ada_to_fixed_type.
3819
542a88d0
LM
38202008-01-03 Luis Machado <luisgpm@br.ibm.com>
3821
3822 * doublest.c (convert_floatformat_to_doublest): Call
3823 floatformat_to_doublest instead of floatformat_to_double and use
3824 DOUBLEST variables.
3825 (convert_doublest_to_floatformat): Call floatformat_from_doublest
3826 instead of floatformat_from_double and use DOUBLEST variables.
3827
dc2bbab2
NH
38282008-01-03 Nick Hudson <nick.hudson@dsl.pipex.com>
3829
3830 * MAINTAINERS (Write After Approval): Add self.
3831
8b60591b
JB
38322008-01-03 Joel Brobecker <brobecker@adacore.com>
3833
3834 * symfile.c (set_initial_language): Make non-static.
3835 * symfile.h (set_initial_language): Add declaration.
3836 * language.c: #include "symfile.h".
3837 (set_language): Call set_initial_language if the frame language
3838 could not be determined.
3839
ceef53c1
JB
38402008-01-03 Paul N. Hilfinger <hilfinger@adacore.com>
3841
3842 * eval.c (evaluate_subexp_for_address): Provide frame address to
3843 locate_var_value only if it will be needed.
3844
ef29ce1a
JK
38452008-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3846
3847 * linux-nat.c (linux_child_follow_fork): Call also CHECK_FOR_THREAD_DB.
3848
0a07e705
JB
38492008-01-02 Joel Brobecker <brobecker@adacore.com>
3850
3851 * ada-lang.c (ada_evaluate_subexp): Modify the value returned
3852 when noside is EVAL_AVOID_SIDE_EFFECTS to be an lval_memory.
3853 This is needed to make sure that any other treatment applied
3854 to the resulting value does not fail for spurious reason,
3855 such as trying to take the address of this value.
3856
f58b38bf
JB
38572008-01-02 Joel Brobecker <brobecker@adacore.com>
3858
3859 * ada-lang.c (ada_value_equal): Dereference reference types when
3860 comparing arrays.
3861
9b254dd1
DJ
38622008-01-01 Daniel Jacobowitz <dan@codesourcery.com>
3863
3864 Updated copyright notices for most files.
3865
33605d39
CF
38662008-01-01 Christopher Faylor <me+gdb@cgf.cx>
3867
3868 * win32-nat.c (psapi_module_handle): Remove static.
3869 (get_module_name): Rename from psapi_get_dll_name. Revamp slightly to
3870 return first module found if base_address is zero. Don't initialize
3871 psapi function pointers here. Convert to cygwin paths when
3872 appropriate.
3873 (win32_pid_to_exec_file): Use Cygwin's /proc interface to determine
3874 executable name. Use get_module_name when that fails or when
3875 !__CYGWIN__.
3876 (_initialize_psapi): New function. Initialize psapi stuff before it is
3877 needed or issue a warning if it is not found. Move psapi_module_handle
3878 here.
3879
29480c32
JB
38802008-01-01 Joel Brobecker <brobecker@adacore.com>
3881
3882 * ada-lang.c (ada_remove_trailing_digits): New function.
3883 (ada_remove_po_subprogram_suffix): New function.
3884 (ada_decode): Improve. Move the description of the algorithm
3885 directly inside the code, instead of in the function global
3886 description.
3887
969a1360
JB
38882008-01-01 Joel Brobecker <brobecker@adacore.com>
3889
3890 * ada-valprint.c (ada_val_print_1) [TYPE_CODE_REF]: Ignore deref_ref
3891 and always print the dereferenced value.
3892
b7789565
JB
38932008-01-01 Joel Brobecker <brobecker@adacore.com>
3894
3895 * ada-lang.c (ada_evaluate_subexp, case BINOP_SUB): Add handling
3896 of the case where the first argument is a reference.
3897 (ada_evaluate_subexp, case BINOP_ADD): Likewise.
3898
73fb9985
JB
38992008-01-01 Joel Brobecker <brobecker@adacore.com>
3900
3901 Implement support for Ada interface types.
3902
3903 * ada-lang.c (ada_is_dispatch_table_ptr_type): New function.
3904 (ada_is_ignored_field): Ignore fields that are a dispatch table
3905 of a tagged type.
3906
636265b6
JB
39072008-01-01 Joel Brobecker <brobecker@adacore.com>
3908
3909 * top.c (print_gdb_version): Update copyright year.
3910
9d200a2e 39112008-01-01 Joel Brobecker <brobecker@adacore.com>
b7589f7d 3912
9d200a2e
JB
3913 * ChangeLog-2007: New ChangeLog rotation.
3914 * ChangeLog: Reset for 2008.
3915 * config/djgpp/fnchange.lst: Add entries for ChangeLog-2006 and
3916 ChangeLog-2007.
b7589f7d 3917
9d200a2e 3918For older changes see ChangeLog-2007.
c906108c
SS
3919\f
3920Local Variables:
3921mode: change-log
3922left-margin: 8
3923fill-column: 74
3924version-control: never
57da7796 3925coding: utf-8
c906108c 3926End:
This page took 1.065205 seconds and 4 git commands to generate.