*** empty log message ***
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e254ef6a
DE
12010-08-26 Doug Evans <dje@google.com>
2
3 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
4 (dw2_forget_cached_source_info): Rename local cu to per_cu.
5 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
6 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
7 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
8 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
9 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
10 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
11 (write_psymtabs_to_index): Ditto.
12
ae53ffa4
PA
132010-08-26 Pedro Alves <pedro@codesourcery.com>
14
15 * NEWS: Mention libthread_db debugging with core files.
16
c6da4cef
DE
172010-08-26 Doug Evans <dje@google.com>
18
19 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
20 forward decl. Pass pst->dirname to dwarf_decode_lines.
21 (psymtab_include_file_name): New function.
22 (dwarf_decode_lines): Call it. Update comments.
23
cd02d79d
PA
242010-08-25 Pedro Alves <pedro@codesourcery.com>
25
26 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
27 compilation unit being different from target die's.
28
673bfd45
DE
292010-08-24 Doug Evans <dje@google.com>
30
31 PR symtab/11942
32 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
33 debug_types_type_hash.
34 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
35 All uses updated.
36 (lookup_die_type): Renamed from tag_type_to_tag. First look in
37 appropriate type_hash table. All callers updated.
38 (allocate_signatured_type_table): Renamed from
39 allocate_signatured_type_hash_table. All callers updated.
40 (create_signatured_type_table_from_index): Renamed from
41 create_signatured_type_hash_from_index. All callers updated.
42 (read_die_type): Add comment. Move actual reading to ...
43 (read_die_type_1): ... here. New function.
44 (follow_die_ref_or_sig): Tweak comment.
45 (set_die_type): Rewrite to use appropriate choice of
46 debug_info_type_hash or debug_types_type_hash.
47 (get_die_type_at_offset): New function.
48 (get_die_type): Call it.
49
e8fd65ef
JK
502010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
51
52 * python/py-type.c (typy_richcompare): Initialize worklist.
53
9779414d
DJ
542010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
55 Kazu Hirata <kazu@codesourcery.com>
56 Jonathan Larmour <jifl@eCosCentric.com>
57
58 * arm-tdep.c: Include features/arm-with-m.c.
59 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
60 call this function.
61 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
62 Check is_m after force-mode.
63 (arm_gdbarch_init): Check the binary before the target description.
64 Add check for M profile attribute. If we have an M-profile device,
65 but no target register description, use arm-with-m. Recognize the
66 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
67 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
68 * arm-tdep.h (XPSR_T): Define.
69 (struct gdbarch_tdep): Add is_m member.
70 * features/arm-m-profile.xml, features/arm-with-m.c,
71 features/arm-with-m.xml: New files.
72
9dc481d3
DE
732010-08-23 Doug Evans <dje@google.com>
74
75 * dwarf2read.c (read_structure_type): Add comment.
76 (read_enumeration_type): Add comment.
77 (process_enumeration_scope): Move definition of some locals
78 closer to their use.
79 (read_namespace_type): Add comment.
e71ec853 80 (set_die_type): Fix typo in comment.
9dc481d3 81
f9ffd4bb
TT
822010-08-23 Tom Tromey <tromey@redhat.com>
83
84 PR python/11145:
85 * python/py-value.c: Include expression.h.
86 (valpy_do_cast): New function.
87 (valpy_cast): Use it.
88 (valpy_dynamic_cast): New function.
89 (valpy_reinterpret_cast): Likewise.
90 (value_object_methods): Add dynamic_cast, reinterpret_cast.
91
96f73ba5
TT
922010-08-23 Tom Tromey <tromey@redhat.com>
93
94 PR python/11391:
95 * python/py-value.c (valpy_nonzero): Don't throw error for other
96 Value types.
97
d839c8a4
TT
982010-08-23 Tom Tromey <tromey@redhat.com>
99
100 PR python/10676:
101 * python/py-type.c: Include bcache.h, vec.h.
102 (struct type_equality_entry): New.
103 (compare_strings): New function.
104 (check_types_equal): Likewise.
105 (check_types_worklist): Likewise.
106 (typy_richcompare): Likewise.
107 (type_object_type): Set tp_richcompare field.
108
05d0e1e7
TT
1092010-08-23 Tom Tromey <tromey@redhat.com>
110
111 PR python/10953:
112 * python/py-type.c (typy_fields): Call check_typedef.
113 (typy_template_argument): Add TRY_CATCH.
114
702c2711
TT
1152010-08-23 Tom Tromey <tromey@redhat.com>
116
117 PR python/11915:
118 * python/py-type.c (typy_array): New function.
119 (type_object_methods): Add "array".
120
4a532131
PA
1212010-08-20 Pedro Alves <pedro@codesourcery.com>
122
123 * python/python.c: Include "serial.h".
124 (gdbpy_event_fds): Change type to `struct serial *' a array from
125 int array.
126 (gdbpy_run_events): Change parameters. Use serial_readchar in
127 place of read.
128 (gdbpy_post_event): Use serial_write in place of write.
129 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
130 serial_async in place of add_file_handler.
131
58f07bae
PA
1322010-08-20 Pedro Alves <pedro@codesourcery.com>
133
134 * serial.h (gdb_pipe, serial_pipe): Declare.
135 * serial.c (serial_interface_lookup): Take a const char pointer.
136 (serial_fdopen): Rename to ...
137 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
138 Call the OPS' fdopen function if there is one.
139 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
140 (serial_pipe): New.
141 (struct serial_ops) <fdopen>: New field.
142
143 * ser-mingw.c (free_pipe_state):
144 (free_pipe_state): Close output on non-pex pipes.
145 (pipe_windows_fdopen): New.
146 (gdb_pipe): New.
147 (_initialize_ser_windows): Register pipe_windows_fdopen.
148 * ser-go32.c (gdb_pipe): New.
149 * ser-pipe.c (pipe_close): Close file descriptor even if there's
150 no state pointer.
151 (pipe_ops): Delete.
152 (gdb_pipe): New.
153
3da10d80
KS
1542010-08-20 Keith Seitz <keiths@redhat.com>
155
156 PR symtab/11465:
157 * dwarf2read.c (struct delayed_method_info): New struct.
158 (struct dwarf2_cu): Add vector method_list.
159 (scan_partial_symbols): Count methods for union, class, structure,
160 and interface types.
161 (add_to_method_list): New function.
162 (free_delayed_list): New function.
163 (compute_delayed_physnames): New function.
164 (process_full_comp_unit): Make a cleanup for the CU's delayed
165 physname list, compute the delayed physnames, and free the
166 the list.
167 (dwarf2_add_member_fn): For C++ and Java, delay the computation
168 of the physname until after the CU is read.
169
170 * dwarf2read.c (read_structure_type): Check if the current
171 DIE's type was already completed after dwarf2_full_name
172 was called.
ca11e899
SS
1732010-08-19 Stan Shebs <stan@codesourcery.com>
174
175 * NEWS: Mention some additional changes.
176
4d2dc20a
TT
1772010-08-19 Tom Tromey <tromey@redhat.com>
178
179 * Makefile.in (install-python): Add DESTDIR.
180
d30f5e1f
DE
1812010-08-19 Doug Evans <dje@google.com>
182
183 PR exp/11926
184 * parser-defs.h (parse_float, parse_c_float): Declare.
185 * parse.c (parse_float, parse_c_float): New function.
186 * c-exp.y (parse_number): Call parse_c_float.
187 * objc-exp.y (parse_number): Ditto.
188 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
189 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
190
2837d59e
JB
1912010-08-19 Joel Brobecker <brobecker@adacore.com>
192
193 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
194 the arguments in the correct order.
195 * symtab.c (maybe_add_partial_symtab_filename): Declare
196 the arguments in the correct order.
197
35633fef
JK
1982010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
199
200 * varobj.c (varobj_create): Replace variable old_fi with old_id,
201 initialize it by null_frame_id, wrap its usage by get_frame_id,
202 frame_id_p and frame_find_by_id.
203
94f7449c
TT
2042010-08-18 Tom Tromey <tromey@redhat.com>
205
206 PR python/11900:
207 * configure: Rebuild.
208 * configure.ac: Add install-python to CONFIG_INSTALL.
209 * Makefile.in (install-python): New.
210
f3574227
DE
2112010-08-18 Doug Evans <dje@google.com>
212
213 * gdb_assert.h (gdb_assert_not_reached): New macro.
214 (gdb_assert_fail): Fix typo in comment.
215 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
216 gdb_assert (0).
217 * darwin-nat.c (darwin_check_new_threads): Ditto.
218 * dwarf2read.c (dwarf2_get_section_info): Ditto.
219 (munmap_section_buffer): Ditto.
220 * m32c-tdep.c (make_types): Ditto.
221 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
222 * macroexp.c (get_character_constant): Ditto.
223 (get_string_literal): Ditto.
224 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
225 (mep_pseudo_cr_index, mep_register_type): Ditto.
226 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
227 (mep_get_insn, mep_analyze_prologue): Ditto.
228 * objfiles.c (qsort_cmp): Ditto.
229 * prologue-value.c (pv_is_identical): Ditto.
230 * record.c (record_get_loc): Ditto.
231 * value.c (value_static_field): Ditto.
232 * xtensa-tdep.c (call0_track_op): Ditto.
233
c92817ce
TT
2342010-08-18 Tom Tromey <tromey@redhat.com>
235
236 PR symtab/11919:
237 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
238 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
239 name-copying lower. Document exception behavior.
240 * completer.c (expression_completer): Catch exceptions from
241 parse_field_expression.
242
856d6f99
PA
2432010-08-18 Pedro Alves <pedro@codesourcery.com>
244
245 PR corefile/8210
246
247 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
248 workaround on core files.
249 (try_thread_db_load_1): Don't try enabling thread event reporting
250 on core files.
251 (thread_db_load): Allow thread_db on core files.
252 (attach_thread): Don't check thread signals on core files, nor try
253 really attaching to the thread, nor enabling thread event event
254 reporting.
255 (thread_db_detach): Don't try disabing thread event reporting or
256 removing thread event breakpoints when debugging a core file.
257 (find_new_threads_callback): Don't try enabling thread event
258 reporting on core files.
259 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
260 debugging a core file.
261 (thread_db_find_new_threads): Don't update thread
262 cores (processors) when debugging a core (dump).
263
261b8d08
PA
2642010-08-18 Pedro Alves <pedro@codesourcery.com>
265
266 PR corefile/8210
267
268 * corelow.c (add_to_thread_list): Don't use
269 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
270 (get_core_register_section): Don't use
271 gdbarch_core_reg_section_encodes_pid.
272
273 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
274 * gdbarch.h, gdbarch.c: Regenerate.
275 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
276 gdbarch_core_reg_section_encodes_pid.
277 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
278 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
279 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
280
f9b42018
YQ
2812010-08-18 Yao Qi <yao@codesourcery.com>
282
283 * MAINTAINERS : Add myself under Write After Approval.
284
def98928
TT
2852010-08-17 Tom Tromey <tromey@redhat.com>
286
287 * NEWS: Mention template parameter support.
288
0807b50c
PA
2892010-08-17 Pedro Alves <pedro@codesourcery.com>
290
291 PR breakpoints/11371
292
293 * breakpoint.c (decref_bp_location): Assert the reference count is
294 sane.
295
f431efe5
PA
2962010-08-17 Pedro Alves <pedro@codesourcery.com>
297
298 PR breakpoints/11371
299
300 * breakpoint.c (breakpoint_init_inferior): Decrement the
301 location's reference count instead of deleting right away.
302 (bpstat_free): Decrement the location's reference count. Make
303 static.
304 (bpstat_copy): Increment the location's reference count.
305 (bpstat_find_breakpoint): Adjust.
306 (bpstat_num): Adjust.
307 (print_it_typical): Adjust. Use the breakpoint pointer in the
308 bpstat instead of the location's owner.
309 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
310 Adjust to record the location's owner in the bpstat.
311 (watchpoint_check): Use the breakpoint pointer in the bpstat
312 instead of the location's owner.
313 (bpstat_check_breakpoint_conditions): Don't handle
314 bp_watchpoint_scope here. Use the breakpoint pointer in the
315 bpstat instead of the location's owner.
316 (bpstat_stop_status): Defer inferior function calls to after
317 building the bpstat list. Handle bp_watchpoint_scope here. Use
318 the breakpoint pointer in the bpstat instead of the location's
319 owner.
320 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
321 the location's owner.
322 (free_bp_location): Don't walk bpstats clearing locations.
323 (incref_bp_location): New.
324 (decref_bp_location): New.
325 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
326 instead of the location's owner.
327 (update_global_location_list): Clear the location's owner, and
328 decrement the location's reference count instead of deleting it
329 right away.
330 (breakpoint_retire_moribund): Decrement the location's reference
331 count instead of deleting it right away.
332 (bpstat_remove_bp_location): Delete.
333 (bpstat_remove_breakpoint): New.
334 (bpstat_remove_bp_location_callback): Delete.
335 (bpstat_remove_breakpoint_callback): New.
336 (delete_breakpoint): Iterate over all threads' stop_bpstat's
337 clearing references to the breakpoint that is being deleted.
338
339 * breakpoint.h (struct bp_location) <refc>: New field.
340 <owner>: Update comments.
341 (bpstat_free): Delete declaration.
342 (struct bpstats): Change the type of the breakpoint_at field to
343 struct breakpoint point, from struct bp_location pointer. Add new
344 field bp_location_at.
345
14c0d4e1
TT
3462010-08-16 Tom Tromey <tromey@redhat.com>
347
348 * NEWS: Fix typo.
349
b56df873
TT
3502010-08-16 Tom Tromey <tromey@redhat.com>
351
352 * NEWS: Mention watch -location.
353
d63d0675
JK
3542010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
355
356 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
357 EXP_STRING_REPARSE to EXP_STRING.
358 (watch_command_1): Set also EXP_STRING_REPARSE.
359 (delete_breakpoint): Free also EXP_STRING_REPARSE.
360 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
361 Update comment for exp_string.
362
06a64a0b
TT
3632010-08-16 Tom Tromey <tromey@redhat.com>
364
365 * value.c (release_value): Clear 'next' pointer.
366 * breakpoint.c (watch_command_1): Add 'just_location' argument.
367 (watch_command_wrapper): Update.
368 (watch_maybe_just_location): New function.
369 (watch_command): Update.
370 (rwatch_command_wrapper): Update.
371 (rwatch_command): Update.
372 (awatch_command_wrapper): Update.
373 (awatch_command): Update.
374 (check_for_argument): New function.
375 (_initialize_breakpoint): Update help text.
376
f96b8fa0
UW
3772010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
378
379 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
380 typedef'ed function types correctly.
381
4eb54052
TT
3822010-08-13 Tom Tromey <tromey@redhat.com>
383
384 * python/python-internal.h (gdbpy_get_hook_function): Don't
385 declare.
386
44be957e
JK
3872010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
388
389 * cli-logging.c (logging_overwrite, logging_redirect): Make them
390 static.
391
76d8b686
KW
3922010-08-13 Ken Werner <ken.werner@de.ibm.com>
393
394 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
395 the format strings to be compatible with Python 2.4.
396
8dedea02
VP
3972010-08-13 Vladimir Prus <vladimir@codesourcery.com>
398
399 Easier and more stubborn MI memory read commands.
400
401 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
402 and data-write-memory-bytes.
403 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
404 (mi_cmd_data_write_memory_bytes): New.
405 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
406 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
407 New.
408 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
409 * target.c (target_read_until_error): Remove.
410 (read_whatever_is_readable, free_memory_read_result_vector)
411 (read_memory_robust): New.
412 * target.h (target_read_until_error): Remove.
413 (struct memory_read_result, free_memory_read_result_vector)
414 (read_memory_robust): New.
415
1d9ec526
HZ
4162010-08-13 Hui Zhu <teawater@gmail.com>
417
418 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
419 (read_comp_unit): Initialize back_to.
420
98bfdba5
PA
4212010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
422 Pedro Alves <pedro@codesourcery.com>
423
424 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
425 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
426 (struct partial_die_info) <has_template_arguments>: New field.
427 <num_attrs>: Change type to unsigned char.
428 <building_fullname>: New field.
429 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
430 allocate a CU if we don't have one already. Add a cleanup for the
431 CU.
432 (partial_die_full_name): Handle template arguments not in
433 DW_AT_name.
434 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
435 (load_full_comp_unit): Only allocate a CU if we don't have one
436 already.
437 (do_ui_file_peek_last): New.
438 (dwarf2_compute_name): Handle template parameters not in
439 DW_AT_name.
440 (read_comp_unit): Read and free abbrevs if not read yet.
441 (load_partial_dies): Handle template arguments not in DW_AT_name.
442 (find_partial_die): If we have a CU, but no a partial dies yet,
443 also read in the CU.
444 (dwarf2_const_value_attr): New, abstracted out from
445 dwarf2_const_value.
446 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
447 dwarf2_const_value_attr.
448 (determine_prefix): Detect and break loops created by RCVT's debug
449 info.
450 (maybe_queue_comp_unit): Bail out early if reading partial
451 symbols.
452 (follow_die_offset): Load full CU if we have no dies.
453 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
454 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
455
ca5c20b6
PM
4562010-08-11 Tom Tromey <tromey@redhat.com>
457 Phil Muldoon <pmuldoon@redhat.com>
458
459 * python/python.c (gdbpy_run_events): New function.
460 (gdbpy_post_event): Likewise.
461 (gdbpy_initialize_events): Likewise.
462 (_initialize_python): Call gdbpy_initialize_events.
463
7346b668
KW
4642010-08-11 Ken Werner <ken.werner@de.ibm.com>
465
466 * gdb/valarith.c (vector_binop): New function.
467 (scalar_binop): Likewise.
468 (value_binop): Call scalar_binop or vector_binop depending on the types.
469 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
470 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
471 to pointers.
472 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
473
62183e15
TT
4742010-08-11 Brad Roberts <braddr@puremagic.com>
475
476 * d-lang.c (extract_identifiers): Handle multiple digits.
477
39d7b0e2
JK
4782010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
479
480 Code cleanup.
481 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
482 Rename to dummy_frame_unwind.
483 (dummy_frame_unwind): Remove.
484 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
485 * frame-unwind.c (frame_unwind_init): Use address of
486 dummy_frame_unwind and inline_frame_unwind.
487 * frame.c (create_sentinel_frame): Use address of
488 sentinel_frame_unwind.
489 * inline-frame.c (inline_frame_unwinder): Rename to
490 inline_frame_unwind.
491 (inline_frame_unwind): Remove.
492 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
493 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
494 sentinel_frame_unwind.
495 (sentinel_frame_unwind): Remove.
496 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
497 struct.
498
9f9a8002
JK
4992010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
500
501 Code cleanup.
502 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
503 and returned value. New comment from frame-unwind.h.
504 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
505 Extend the comment.
506 * frame.c (get_frame_id, frame_unwind_register_value)
507 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
508 (get_frame_type, frame_unwind_arch): Do not use the return value of
509 frame_unwind_find_by_frame.
510
cb2e07a6
PM
5112010-08-11 Phil Muldoon <pmuldoon@redhat.com>
512 Thiago Jung Bauermann <bauerman@br.ibm.com>
513 Tom Tromey <tromey@redhat.com>
514
515 * python/python.c (gdbpy_solib_address): New function.
516 (gdbpy_decode_line): Likewise.
517
c29c521f
TT
5182010-08-10 Tom Tromey <tromey@redhat.com>
519
520 Revert gdb-add-index addition:
521 * Makefile.in (install-only): Don't install gdb-add-index.
522 * gdb-add-index.sh: Remove.
523
0c012db1
KB
5242010-08-09 Kevin Buettner <kevinb@redhat.com>
525
526 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
527 `target_has_execution' check with `to_has_memory' check.
528 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
529 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
530 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
531
db04efe6
KB
5322010-08-09 Kevin Buettner <kevinb@redhat.com>
533
534 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
535 (resume_siggnal, resume_step): Move these static globals...
536 (struct sim_inferior_data): ...into this new struct.
537 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
538 New static globals.
539 (gdb_callback, callbacks_initialized): Move these globals to
540 a point earlier in the file.
541 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
542 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
543 (gdbsim_close_inferior, gdbsim_resume_inferior)
544 (gdbsim_stop_inferior): New functions.
545 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
546 New constants.
547 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
548 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
549 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
550 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
551 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
552 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
553 new local variable `sim_data' in each of these functions. Use
554 `sim_data' to reference former globals `program_loaded',
555 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
556 `resume_step'.
557 (gdbsim_open): Remove local variable `argv'. Put results of call
558 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
559 make a cleanup for it. Free it though when a sim instance cannot
560 be obtained.
561 (gdbsim_close): Free sim_argv and null it out as appropriate.
562 Close sim instances in all inferiors.
563 (gdbsim_cntrl_c): Stop all inferiors.
564 (gdbsim_wait):
565 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
566
e37fd15a
SW
5672010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
568
569 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
570 function after symbol construction is complete.
571 Do the same for template symbol addition to template_symbols list.
572
45c58896
SW
5732010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
574
575 * symtab.c (symbol_get_demangled_name): Remove assertion and
576 return NULL when language_specific.cplus_specific is not initialized.
577 * stabsread.c (define_symbol): Set the name before calling
578 cp_scan_for_anonymous_namespaces.
579
33e5013e
SW
5802010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
581
582 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
583 SYMBOL_SET_LANGUAGE.
584 (symbol_init_language_specific): Renamed to symbol_set_language.
585 * symtab.c (symbol_init_language_specific): Removed redundant check
586 for language_cplus.
587 Renamed to symbol_set_language.
588 * stabsread.c (define_symbol): Updated.
589 (read_enum_type): Updated
590 * psymtab.c (add_psymbol_to_bcache): Updated.
591 * minsyms.c (install_minimal_symbols): Updated.
592 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
593 SYMBOL_LANGUAGE to set the language.
594 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
595 * mdebugread.c (new_symbol): Ditto.
596 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
597 * dwarf2read.c (new_symbol_full): Ditto.
598 * jv-lang.c (add_class_symbol): Ditto.
599
5da1313b
JK
6002010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
601
602 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
603 (make_cleanup_restore_page_info)
604 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
605 * gdbcmd.h (execute_command_to_string): New declaration.
606 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
607 (make_cleanup_restore_ui_file): Move to utils.c
608 (execute_gdb_command) <to_string>: Move ...
609 * top.c (execute_command_to_string): ... here. Call
610 set_batch_flag_and_make_cleanup_restore_page_info.
611 * utils.c (make_cleanup_restore_integer): New source file blank line.
612 (make_cleanup_restore_uinteger): New.
613 (struct restore_ui_file_closure, do_restore_ui_file)
614 (make_cleanup_restore_ui_file): Move here from python/python.c.
615 (init_page_info) <batch_flag>
616 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
617 (set_batch_flag_and_make_cleanup_restore_page_info): New.
618
c820c52a
PA
6192010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
620
621 * thread.c (add_thread_silent): Use null_ptid instead of
622 minus_one_ptid while getting rid of stale inferior_ptid.
623
8da614df
CV
6242010-08-06 Corinna Vinschen <vinschen@redhat.com>
625
626 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
627 Throughout, call read_encoded_value with ptr_size rather than addr_size.
628 (decode_frame_entry_1): Remove redundant setting of
629 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
630 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
631 on examined frame section. Add comment to explain why.
632 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
633 comment to explain usage.
634 * gdbarch.c: Regenerate.
635 * gdbarch.h: Regenerate.
636
637 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
638
e4195b40
JK
6392010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
640
641 Code cleanup.
642 * varobj.c (varobj_create): Move variables fi, old_fi and block to
643 a more inner block.
644
a3217aa0
PA
6452010-08-05 Pedro Alves <pedro@codesourcery.com>
646
647 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
648 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
649 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
650 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
651 linux-tdep.o to gdb_target_obs.
652
e2b4a699
MK
6532010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
654
655 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
656 argument.
657
50e8a0d5
HZ
6582010-08-05 Hui Zhu <teawater@gmail.com>
659
660 * mips-linux-tdep.c(regset.h): New include.
661 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
662 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
663 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
664 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
665 mips_linux_regset_from_core_section): New functions.
666 (fetch_core_registers, regset_core_fns): Deleted.
667 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
668 Deleted regset_core_fns.
669 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
670 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
671 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
672 and fpregset64.
673
70728992
PA
6742010-08-04 Pedro Alves <pedro@codesourcery.com>
675
676 * s390-tdep.c: Include linux-tdep.h.
677 (s390_gdbarch_init): Call linux_init_abi.
678
a5ee0f0c
PA
6792010-08-04 Pedro Alves <pedro@codesourcery.com>
680
681 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
682 instead of printing "Thread" here.
683 * linux-tdep.c: Include inferior.h.
684 (linux_core_pid_to_str): New.
685 (linux_init_abi): New.
686 * linux-tdep.h (linux_init_abi): Declare.
687 * alpha-linux-tdep.c: Include linux-tdep.h.
688 (alpha_linux_init_abi): Call linux_init_abi.
689 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
690 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
691 * frv-linux-tdep.c: Include linux-tdep.h
692 (frv_linux_init_abi): Call linux_init_abi.
693 * hppa-linux-tdep.c: Include linux-tdep.h
694 (hppa_linux_init_abi): Call linux_init_abi.
695 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
696 * ia64-linux-tdep.c: Include linux-tdep.h.
697 (ia64_linux_init_abi): Call linux_init_abi.
698 * m32r-linux-tdep.c: Include linux-tdep.h.
699 (m32r_linux_init_abi): Call linux_init_abi.
700 * m68klinux-tdep.c: Include linux-tdep.h.
701 (m68k_linux_init_abi): Call linux_init_abi.
702 * microblaze-linux-tdep.c: Include linux-tdep.h.
703 (microblaze_linux_init_abi): Call linux_init_abi.
704 * mips-linux-tdep.c: Include linux-tdep.h.
705 (mips_linux_init_abi): Call linux_init_abi.
706 * mn10300-linux-tdep.c: Include linux-tdep.h.
707 (am33_linux_init_osabi): Call linux_init_abi. Rename the
708 'gdbinfo' parameter to 'info'.
709 * ppc-linux-tdep.c: Include linux-tdep.h.
710 (ppc_linux_init_abi): Call linux_init_abi.
711 * sh-linux-tdep.c: Include linux-tdep.h.
712 (sh_linux_init_abi): Call linux_init_abi.
713 * sparc-linux-tdep.c: Include linux-tdep.h.
714 (sparc32_linux_init_abi): Call linux_init_abi.
715 * sparc64-linux-tdep.c: Include linux-tdep.h.
716 (sparc64_linux_init_abi): Call linux_init_abi.
717 * xtensa-linux-tdep.c: Include linux-tdep.h.
718 (xtensa_linux_init_abi): Call linux_init_abi.
719 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
720 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
721 callback.
722
bc043ef3
DE
7232010-08-03 Doug Evans <dje@google.com>
724
725 * breakpoint.c (bpdisp_text): Constify bpdisps.
726 * solib-svr4.c (solib_break_names): Constify.
727 (bkpt_names, main_name_list): Constify.
728 (match_main): Constify soname arg.
63cdd227
DE
729 (bfd_lookup_symbol): Remove unnecessary forward decl.
730 Constify symname arg.
bc043ef3
DE
731 (enable_break): Constify bkpt_namep.
732 * symtab.c (search_symbols): Constify types, types2, types3, types4.
733 (symtab_symbol_info): Constify classnames.
734
585d1eb8
PM
7352010-08-03 Phil Muldoon <pmuldoon@redhat.com>
736
737 * NEWS: Document Python value inferior function calls.
738
2de00c64
DE
7392010-08-02 Doug Evans <dje@google.com>
740
741 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
742
02d868e8
PP
7432010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
744
745 * linux-thread-db.c (libthread_db_debug): New variable.
746 (thread_db_find_new_threads_silently): Control verbosity with it.
747 (try_thread_db_load_1, try_thread_db_load): Likewise.
748 (find_new_threads_once): Likewise.
749 (_initialize_thread_db): Set/show it.
750
a19cae16
JK
7512010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
752
753 * common/signals.c (signals): Move the content to signals.def.
754 Include it. Remove the INDENT comments.
755
c2bbed2a
TT
7562010-07-30 Tom Tromey <tromey@redhat.com>
757
758 * Makefile.in (install-only): Install gdb-add-index.
759 * gdb-add-index.sh: New file.
760
f32b2f09
CR
7612010-07-31 Renquan Cheng <crq@gcc.gnu.org>
762
763 * MAINTAINERS: Add myself for write after approval privileges.
764
1276c759
JK
7652010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
766
767 * symfile.c (addr_section_name): New function.
768 (addrs_section_compar): Use it.
769 (addr_info_make_relative): Use it. Move variable sect_name into a more
770 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
771
420697bb
TT
7722010-07-30 Tom Tromey <tromey@redhat.com>
773
774 * configure: Rebuild.
775 * configure.ac: Add missing case for Python 2.7.
776
d0d99561
DD
7772010-07-29 DJ Delorie <dj@redhat.com>
778
779 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
780 conditions.
781
0b29bdde
PA
7822010-07-29 Pedro Alves <pedro@codesourcery.com>
783
784 * PROBLEMS: Remove mention of all problems.
785
110ed339
PA
7862010-07-28 Pedro Alves <pedro@codesourcery.com>
787
788 PR build/11848
789 * configure.ac: Check for wresize.
790 * configure, config.in: Regenerate.
791 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
792 with HAVE_WRESIZE.
793
326fd672
TT
7942010-07-28 Tom Tromey <tromey@redhat.com>
795
796 PR python/11060:
797 * python/py-type.c (typy_legacy_template_argument): New function,
798 extracted from typy_template_argument.
799 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
800 value when needed.
801
4ac8c4da
TT
8022010-07-28 Oleg Nesterov <oleg@redhat.com>
803
804 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
805
053315c2
TT
8062010-07-27 Tom Tromey <tromey@redhat.com>
807
808 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
809
3ce3b1ba
PA
8102010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
811
812 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
813 handling DW_AT_object_pointer, and workaround GCC PR 43053.
814
2bb4f988
TT
8152010-07-28 Tom Tromey <tromey@redhat.com>
816
817 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
818
74232302
JB
8192010-07-28 Joel Brobecker <brobecker@adacore.com>
820
821 * remote.c (remote_download_tracepoint): Add missing gettext markup.
822 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
823
385d04dc
JB
8242010-07-28 Joel Brobecker <brobecker@adacore.com>
825
826 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
827 down, just before the block that parse the breakpoint addr_string.
828
34eaf542
TT
8292010-07-28 Tom Tromey <tromey@redhat.com>
830
831 PR c++/9946:
832 * symfile.c (reread_symbols): Clear template_symbols.
833 * symtab.h (struct symbol) <is_cplus_template_function>: New
834 field.
835 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
836 (struct template_symbol): New.
837 * symtab.c (lookup_symbol_aux_local): Use
838 cp_lookup_symbol_imports_or_template.
839 * objfiles.h (struct objfile) <template_symbols>: New field.
840 * objfiles.c (relocate_one_symbol): New function.
841 (objfile_relocate1): Use it. Relocate isolated symbols.
842 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
843 template_arguments>: New fields.
844 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
845 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
846 (TYPE_TEMPLATE_ARGUMENT): Likewise.
847 (lookup_typename): Update.
848 * gdbtypes.c (lookup_typename): Constify "block" argument.
849 * dwarf2read.c: Include vec.h.
850 (symbolp): New typedef.
851 (read_func_scope): Read template arguments. Allocate a
852 template_symbol when needed.
853 (read_structure_type): Read template arguments.
854 (new_symbol_full): New function, from new_symbol. Handle
855 DW_TAG_template_type_param and DW_TAG_template_value_param.
856 (new_symbol): Rewrite as wrapper.
857 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
858 * cp-namespace.c: Include language.h.
859 (search_symbol_list): New function.
860 (cp_lookup_symbol_imports_or_template): Likewise.
861
d27b3be4
PA
8622010-07-28 Balazs Kezes <rlblaster@gmail.com>
863
864 * tui/tui-win.c (make_visible_with_new_height): Resize and move
865 the command window to the new size and position.
866
0036e657
PA
8672010-07-28 Balazs Kezes <rlblaster@gmail.com>
868
a782f43e 869 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
870 coordinates.
871
36900355
PA
8722010-07-28 Balazs Kezes <rlblaster@gmail.com>
873
a782f43e 874 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 875 after a detecting a resize.
a782f43e 876 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
877 call.
878
db5e03ae
PA
8792010-07-28 Pedro Alves <pedro@codesourcery.com>
880
881 * configure.ac: Check for resize_term.
882 * configure, config.in: Regenerate.
883
b71fff68
JB
8842010-07-27 Joel Brobecker <brobecker@adacore.com>
885
886 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
887
9b1c24c8
PA
8882010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
889
890 * dwarf2read.c (read_string): Rename to ...
891 (read_direct_string): ... this.
892 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
893 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
894
00390b84
JK
8952010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
896
897 * linux-nat.c (linux_nat_lp_status_is_event): New function.
898 (count_events_callback, select_event_lwp_callback)
899 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
900
26ab7092
JK
9012010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
902
903 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
904 (_initialize_ia64_linux_nat): Install it.
905 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
906 (linux_nat_set_status_is_event): New.
907 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
908 cancel_breakpoints_callback, linux_nat_filter_event)
909 (linux_nat_wait_1): Use linux_nat_status_is_event.
910 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
911
283e6a52
TT
9122010-07-27 Tom Tromey <tromey@redhat.com>
913
914 * NEWS: Mention labels, .gdb_index.
915
53a71c06
CR
9162010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
917
918 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 919 "start,+length" form of arguments.
53a71c06
CR
920 * NEWS: Add "Changed commands" (disassemble) section for "Changes
921 since GDB 7.1"; and merge two separated paragraphs of disassemble
922 description in "Changes in GDB 7.0".
923
c63a1f86
JK
9242010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
925
926 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
927 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
928 (fputs_maybe_filtered): Do not do filtering also on
929 ! INPUT_FROM_TERMINAL_P.
930
abebb8b0
JB
9312010-07-27 Joel Brobecker <brobecker@adacore.com>
932
933 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
934 in warning message.
935
5374244e
PM
9362010-07-27 Phil Muldoon <pmuldoon@redhat.com>
937
938 * python/py-value.c (valpy_call): New Function.
939
ac0b195c
KW
9402010-07-27 Ken Werner <ken.werner@de.ibm.com>
941
872e696d 942 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
943 types_list_elements variables.
944
09d8bd00
TT
9452010-07-26 Tom Tromey <tromey@redhat.com>
946
947 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
948 TLS with DW_OP_const4u or DW_OP_const8u.
949
9fe70b4f
TJB
9502010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
951
952 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
953 VSX registers contents.
954
caac4577
JG
9552010-07-26 Jerome Guitton <guitton@adacore.com>
956
957 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
958 its adress is null. Add comment to explain why.
959 (new_symbol): Ditto.
960
857d11d0
JK
9612010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
962
963 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
964 the host signal first.
965
1fd400ff
TT
9662010-07-23 Tom Tromey <tromey@redhat.com>
967
968 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
969 type_comp_units>: New fields.
970 (dw2_get_cu): New function.
971 (create_cus_from_index): Remove unused argument.
972 (create_signatured_type_hash_from_index): New function.
973 (create_addrmap_from_index): Update.
974 (dwarf2_read_index): Handle version 2.
975 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
976 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
977 (dw2_print_stats, dw2_expand_all_symtabs)
978 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
979 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
980 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
981 (allocate_signatured_type_hash_table): New function.
982 (add_signatured_type_cu_to_list): Likewise.
983 (create_debug_types_hash_table): Use them. Set type_comp_units.
984 (read_signatured_type): Ensure section data is available.
985 (add_address_entry): Don't record empty ranges.
986 (struct signatured_type_index_data): New.
987 (write_one_signatured_type): New function.
988 (write_psymtabs_to_index): Write type CUs.
989 (save_gdb_index_command): Update comment.
990 (process_type_comp_unit): Move inititalization of
991 from_debug_types...
992 (create_debug_types_hash_table): ... here.
993
3a674486
JK
9942010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
995
996 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
997 cleanup and generating of gdb script to it.
998 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
999 and terminal size. Convert $tmpfile to a series of -ex-es.
1000
54ec275a
KS
10012010-07-23 Keith Seitz <keiths@redhat.com>
1002
1003 * symtab.c (basic_lookup_transparent_type): Call pre-expand
1004 hook for STATIC_BLOCK types, too.
1005
8fd447e6
KS
10062010-07-23 Keith Seitz <keiths@redhat.com>
1007
1008 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
1009 and vector definition.
1010
25b72dde
JK
10112010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1012
1013 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
1014
96d19272
JK
10152010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1016
1017 * dwarf2read.c: Include completer.h.
1018 (save_gdb_index_command): Use matching usage command name.
1019 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
1020 Set filename_completer for it.
1021
ca1f3406
TT
10222010-07-22 Tom Tromey <tromey@redhat.com>
1023
1024 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
1025 type signature's per-CU data.
1026
ba25b921
PA
10272010-07-22 Pedro Alves <pedro@codesourcery.com>
1028
1029 * NEWS: Mention target reported shared libraries support by
1030 default.
1031
23bd0f7c
PA
10322010-07-21 Pedro Alves <pedro@codesourcery.com>
1033
1034 PR symtab/11827
1035
1036 Revert:
1037 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
1038 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
1039 and DW_TAG_volatile_type.
1040 (new_symbol): Likewise.
1041
883df6dd
SW
10422010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
1043
1044 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
1045 function symbols before overload resolution.
1046
269b11a2
PA
10472010-07-21 Pedro Alves <pedro@codesourcery.com>
1048
1049 * breakpoint.c (bptype_string): New, abstracted out from
1050 print_one_breakpoint_location.
1051 (print_one_breakpoint_location): Adjust.
1052 (breakpoint_1): Adjust the type column width dynamically.
1053
569b05a5
JK
10542010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1055
1056 * symfile.c (find_separate_debug_file_by_debuglink): Remove
1057 a gdb_assert call, new comment.
1058
ad34eb2f
JK
10592010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1060
1061 * linux-nat.c (linux_handle_extended_wait): Handle case when
1062 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
1063
33355866
JK
10642010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1065
1066 Code cleanup.
1067 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
1068 linux_nat_wait_1. Use always LP->STATUS afterwards.
1069
26590820
HZ
10702010-07-20 Hui Zhu <teawater@gmail.com>
1071
1072 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
1073 (inf_ptrace_attach): Ditto.
1074
c0edd9ed
JK
10752010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1076
1077 Make core files the process_stratum.
1078 * corefile.c (core_target): New variable.
1079 (core_file_command): Remove variable t, use core_target.
1080 * corelow.c (core_ops): Make it static.
1081 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
1082 * defs.h (make_cleanup_unpush_target): New prototype.
1083 * gdbarch.h: Regenerate.
1084 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
1085 * gdbcore.h (core_target): New declaration.
1086 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
1087 variables ops_already_pushed and back_to. Use push_target,
1088 make_cleanup_unpush_target and discard_cleanups calls.
1089 * record.c (record_open): Replace core_stratum by a core_bfd check.
1090 * target.c (target_is_pushed): New function.
1091 (find_core_target): Remove.
1092 * target.h (enum strata) <core_stratum>: Remove.
1093 (target_is_pushed): New declaration.
1094 (find_core_target): Remove declaration.
1095 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
1096 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
1097
f02253f1
HZ
10982010-07-19 Hui Zhu <teawater@gmail.com>
1099
1100 * breakpoint.c (single_step_breakpoints_inserted): New
1101 function.
1102 * breakpoint.h (single_step_breakpoints_inserted): Extern.
1103 * infrun.c (maybe_software_singlestep): Add check code.
1104 * record.c (record_resume): Add code for software single step.
1105 (record_wait): Ditto.
1106
78768c4a
JK
11072010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1108
1109 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
1110 a more inner block. Remove its unused declaration initializer.
1111
431e49aa
TJB
11122010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
1113
1114 * NEWS: Mention support for the new ptrace interface and hardware
1115 accelerated watchpoint conditions on powerpc-linux.
1116
bd91e7ae
OS
11172010-07-16 Ozkan Sezer <sezeroz@gmail.com>
1118
1119 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
1120 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
1121 and host_address_to_string() and %s for pointers.
1122 (debug_to_remove_breakpoint): Likewise.
1123 (debug_to_region_ok_for_hw_watchpoint): Likewise.
1124 (debug_to_can_accel_watchpoint_condition): Likewise.
1125 (debug_to_stopped_data_address): Likewise.
1126 (debug_to_watchpoint_addr_within_range): Likewise.
1127 (debug_to_insert_hw_breakpoint): Likewise.
1128 (debug_to_remove_hw_breakpoint): Likewise.
1129 (debug_to_insert_watchpoint): Likewise.
1130 (debug_to_remove_watchpoint): Likewise.
1131
29df156d
SW
11322010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1133
1134 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
1135 argument.
1136 (cplus_specific): New struct.
1137 * symtab.c (symbol_set_demangled_name): Updated.
1138 Use cplus_specific for cplus symbols.
1139 (symbol_get_demangled_name): Retrive the name from the cplus_specific
1140 struct for cplus symbols.
1141 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
1142 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
1143 * symtab.c (symbol_init_cplus_specific): New function.
1144
b250c185
SW
11452010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1146
1147 * symtab.h (symbol_set_demangled_name): New function.
1148 (symbol_get_demangled_name): New function.
1149 * symtab.c (symbol_set_demangled_name): New function.
1150 (symbol_get_demangled_name): New function.
1151 (symbol_init_language_specific): Use demangled_name setter and getter.
1152 (symbol_set_names): Ditto.
1153 (symbol_natural_name): Ditto.
1154 (symbol_demangled_name): Ditto.
1155 * dwarf2read.c (new_symbol): Ditto.
1156
afa16725
SW
11572010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
1158
1159 * symtab.h: Renamed cplus_specific to mangled_lang.
1160 * symtab.c (symbol_init_language_specific): Updated.
1161 (symbol_set_names): Updated.
1162 (symbol_natural_name): Updated.
1163 (symbol_demangled_name): Updated.
1164 * ada-lang.c (ada_decode_symbol): Updated.
1165 * dwarf2read.c (new_symbol): Updated.
1166
3cbaedff
KW
11672010-07-14 Ken Werner <ken.werner@de.ibm.com>
1168
1169 * valops.c (value_assign): Do not call to value_coerce_to_target.
1170 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
1171
c932f1be
KW
11722010-07-14 Ken Werner <ken.werner@de.ibm.com>
1173
1174 * MAINTAINERS: Add myself for write after approval privileges.
1175
91158a56
TT
11762010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
1177
1178 * c-valprint.c (c_val_print): Add embedded_offset to address in
1179 call to val_print_array_elements.
1180
b3b272e1
TT
11812010-07-13 Tom Tromey <tromey@redhat.com>
1182
1183 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
1184
bb3fa9d0
TT
11852010-07-13 Tom Tromey <tromey@redhat.com>
1186
1187 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
1188 objfile.
1189
dd786858
TT
11902010-07-13 Tom Tromey <tromey@redhat.com>
1191
1192 * symfile.c (set_initial_language): Update.
1193 (deduce_language_from_filename): Argument type now const.
1194 * symtab.h (find_main_filename): Update.
1195 (deduce_language_from_filename): Update.
1196 * symtab.c (find_main_filename): Make result const.
1197 * dwarf2read.c (dw2_find_symbol_file): Change return type.
1198 * psymtab.c (find_symbol_file_from_partial): Change return type.
1199 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
1200 Make result const.
1201
9291a0cd
TT
12022010-07-13 Tom Tromey <tromey@redhat.com>
1203
1204 * breakpoint.c (save_cmdlist): No longer static.
1205 * gdbcmd.h (save_cmdlist): Declare.
1206 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
1207 OBJF_READNOW on objfile if readnow_symbol_files.
1208 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
1209 (elf_sym_fns_gdb_index): New global.
1210 * dwarf2read.c: Include exceptions.h.
1211 (offset_type): New.
1212 (struct mapped_index): New.
1213 (dwarf2_per_cu_data_ptr): New typedef.
1214 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
1215 New fields.
1216 (GDB_INDEX_SECTION): New define.
1217 (struct dwarf2_per_cu_quick_data): New.
1218 (struct dwarf2_per_cu_data) <objfile>: New field.
1219 <psymtab>: Removed.
1220 <v>: New field.
1221 (byte_swap): New function.
1222 (MAYBE_SWAP): New macro.
1223 (INDEX_SUFFIX): New macro.
1224 (dw2_do_instantiate_symtab): New function.
1225 (dw2_instantiate_symtab): Likewise.
1226 (create_cus_from_index): Likewise.
1227 (create_addrmap_from_index): Likewise.
1228 (mapped_index_string_hash): Likewise.
1229 (find_slot_in_mapped_hash): Likewise.
1230 (dwarf2_read_index): Likewise.
1231 (dw2_setup): Likewise.
1232 (dw2_require_line_header): Likewise.
1233 (dw2_require_full_path): Likewise.
1234 (dw2_find_last_source_symtab): Likewise.
1235 (dw2_forget_cached_source_info): Likewise.
1236 (dw2_lookup_symtab): Likewise.
1237 (dw2_lookup_symbol): Likewise.
1238 (dw2_do_expand_symtabs_matching): Likewise.
1239 (dw2_pre_expand_symtabs_matching): Likewise.
1240 (dw2_print_stats): Likewise.
1241 (dw2_dump): Likewise.
1242 (dw2_relocate): Likewise.
1243 (dw2_expand_symtabs_for_function): Likewise.
1244 (dw2_expand_all_symtabs): Likewise.
1245 (dw2_expand_symtabs_with_filename): Likewise.
1246 (dw2_find_symbol_file): Likewise.
1247 (dw2_map_ada_symtabs): Likewise.
1248 (dw2_expand_symtabs_matching): Likewise.
1249 (dw2_find_pc_sect_symtab): Likewise.
1250 (dw2_map_symbol_names): Likewise.
1251 (dw2_map_symbol_filenames): Likewise.
1252 (dw2_has_symbols): Likewise.
1253 (dwarf2_gdb_index_functions): New global.
1254 (dwarf2_initialize_objfile): New function.
1255 (process_psymtab_comp_unit): Update.
1256 (add_partial_subprogram): Likewise.
1257 (dwarf2_psymtab_to_symtab): Likewise.
1258 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
1259 (process_full_comp_unit): Update.
1260 (find_file_and_directory): New function.
1261 (read_file_scope): Use find_file_and_directory.
1262 (dwarf2_per_cu_objfile): Update.
1263 (dwarf2_per_cu_addr_size): Update.
1264 (dwarf2_per_cu_offset_size): Update.
1265 (dwarf2_free_objfile): Free the index, if needed.
1266 (dwarf2_per_objfile_free): Unmap the index, if needed.
1267 (struct strtab_entry): New.
1268 (hash_strtab_entry): New function.
1269 (eq_strtab_entry): Likewise.
1270 (create_strtab): Likewise.
1271 (add_string): Likewise.
1272 (struct symtab_index_entry): New.
1273 (struct mapped_symtab): New.
1274 (hash_symtab_entry): New function.
1275 (eq_symtab_entry): Likewise.
1276 (delete_symtab_entry): Likewise.
1277 (create_index_table): Likewise.
1278 (create_mapped_symtab): Likewise.
1279 (cleanup_mapped_symtab): Likewise.
1280 (find_slot): Likewise.
1281 (hash_expand): Likewise.
1282 (add_index_entry): Likewise.
1283 (add_indices_to_cpool): Likewise.
1284 (write_hash_table): Likewise.
1285 (add_address_entry): Likewise.
1286 (write_psymbols): Likewise.
1287 (write_obstack): Likewise.
1288 (unlink_if_set): Likewise.
1289 (write_psymtabs_to_index): Likewise.
1290 (save_gdb_index_command): Likewise.
1291 (_initialize_dwarf2_read): Install "save gdb-index"
1292 command.
1293 (create_all_comp_units): Initialize 'objfile' field of CU.
1294 (dwarf2_locate_sections): Check for .gdb_index.
1295 * psymtab.h (dwarf2_gdb_index_functions): Declare.
1296 * symfile.h (dwarf2_initialize_objfile): Declare.
1297
58b6ab13
TT
12982010-07-13 Tom Tromey <tromey@redhat.com>
1299
1300 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
1301 (basic_lookup_transparent_type): Likewise.
1302 * symfile.h (struct quick_symbol_functions)
1303 <pre_expand_symtabs_matching>: New field.
1304 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
1305 (psym_functions): Update.
1306
0f5238ed
TT
13072010-07-13 Tom Tromey <tromey@redhat.com>
1308
1309 PR breakpoints/8357:
1310 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
1311 * linespec.c (decode_line_1): Update comment. Call decode_label.
1312 (decode_label): New function.
1313 (symbol_found): Handle LOC_LABEL.
1314 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
1315 domain. Call add_symbol_to_list.
1316
9aa1f1e3
TT
13172010-07-13 Tom Tromey <tromey@redhat.com>
1318
1319 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
1320 * dwarf2loc.c (find_location_expression): Use
1321 dwarf2_per_cu_text_offset.
1322 (dwarf2_evaluate_loc_desc): Likewise.
1323 (dwarf2_loc_desc_needs_frame): Likewise.
1324 (compile_dwarf_to_ax): Likewise.
1325 (loclist_describe_location): Likewise.
1326 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
1327 (dwarf2_per_cu_objfile): Update comment.
1328
953ac07e
JK
13292010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1330
1331 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
1332 * p-lang.c (pascal_printstr): Likewise.
1333
f04e4012
TT
13342010-07-09 Tom Tromey <tromey@redhat.com>
1335
1336 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
1337 'hint' if it is NULL.
1338
f4dfd9c0
HZ
13392010-07-09 Hui Zhu <teawater@gmail.com>
1340
1341 * source.c (print_source_lines_base): Add check for noprint.
1342
7e6e39e5
JB
13432010-07-08 Joel Brobecker <brobecker@adacore.com>
1344
1345 * python/python-config.py: Resync with Python 2.7 version of this
1346 script.
1347
76b8507d
JB
13482010-07-08 Joel Brobecker <brobecker@adacore.com>
1349
1350 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
1351
797054e6
JB
13522010-07-07 Joel Brobecker <brobecker@adacore.com>
1353
1354 * NEWS: Create a new section for the next release branch.
1355 Rename the section of the current branch, now that it has
1356 been cut.
1357
c80befee 13582010-07-07 Joel Brobecker <brobecker@adacore.com>
1359
1360 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
1361 * version.in: Bump version to 7.2.50.20100707-cvs.
1362
ac56253d
TT
13632010-07-07 Tom Tromey <tromey@redhat.com>
1364
1365 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
1366 LOC_COMPUTED symbol.
1367 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
1368 (dwarf2_loc_desc_needs_frame): Likewise.
1369 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
1370 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
1371 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
1372 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
1373 'offset' argument.
1374 (struct dwarf2_frame_cache) <text_offset>: New field.
1375 (dwarf2_frame_cache): Set new field.
1376 (dwarf2_frame_prev_register): Update.
1377 (dwarf2_frame_sniffer): Update.
1378 (dwarf2_frame_base_sniffer): Update.
1379 (dwarf2_frame_find_fde): Add 'out_offset' argument.
1380
0cf6dd15
TJB
13812010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
1382 Thiago Jung Bauermann <bauerman@br.ibm.com>
1383
1384 Support for hw accelerated condition watchpoints in booke powerpc.
1385
1386 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
1387 and move to eval.c. Change callers.
1388 (insert_bp_location): Pass watchpoint condition in
1389 target_insert_watchpoint.
1390 (remove_breakpoint_1) Pass watchpoint condition in
1391 target_remove_watchpoint.
1392 (watchpoint_locations_match): Call
1393 target_can_accel_watchpoint_condition.
1394 * eval.c: Include wrapper.h.
1395 (fetch_subexp_value): Moved from breakpoint.c.
1396 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
1397 Formatting fix.
1398 (can_use_watchpoint_cond_accel): New function.
1399 (calculate_dvc): Likewise.
1400 (num_memory_accesses): Likewise.
1401 (check_condition): Likewise.
1402 (ppc_linux_can_accel_watchpoint_condition): Likewise
1403 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
1404 check_condition and calculate_dvc.
1405 (ppc_linux_remove_watchpoint): Likewise.
1406 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
1407 ppc_linux_can_accel_watchpoint_condition
1408 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
1409 condition.
1410 (debug_to_remove_watchpoint): Likewise.
1411 (debug_to_can_accel_watchpoint_condition): New function.
1412 (update_current_target): Set to_can_accel_watchpoint_condition.
1413 (setup_target_debug): Set to_can_accel_watchpoint_condition.
1414 * target.h: Add opaque declaration for struct expression.
1415 (struct target_ops) <to_insert_watchpoint>,
1416 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
1417 <to_can_accel_watchpoint_condition>: New member.
1418 condition. Update all callers and implementations.
1419 (target_can_accel_watchpoint_condition): New macro.
1420 * value.c (free_value_chain): New function.
1421 * value.h (fetch_subexp_value): New prototype.
1422 (free_value_chain): Likewise.
1423
2f2241f1
UW
14242010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
1425
1426 * linux-nat.c (linux_nat_do_thread_registers): Use section size
1427 from gdbarch_core_regset_sections also for .reg if present.
1428
1429 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
1430 section size for .reg.
1431 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
1432 (ppc_linux_vmx_regset_sections): Likewise.
1433 (ppc_linux_fp_regset_sections): Likewise.
1434 (ppc64_linux_vsx_regset_sections): New variable.
1435 (ppc64_linux_vmx_regset_sections): Likewise.
1436 (ppc64_linux_fp_regset_sections): Likewise.
1437 (ppc_linux_init_abi): Install core_regset_section lists appropriate
1438 for current word size.
1439
1fd7cdc2
JB
14402010-07-06 Joel Brobecker <brobecker@adacore.com>
1441
1442 * server.c (myresume): Make static.
1443
11763c18
TT
14442010-07-06 Tom Tromey <tromey@redhat.com>
1445
1446 * configure, config.in: Rebuild.
1447 * configure.ac (HAVE_LIBPYTHON2_7): New define.
1448 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
1449
a6cc4789
AS
14502010-07-06 Andreas Schwab <schwab@linux-m68k.org>
1451
1452 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
1453 "clear".
1454
f9e9243a
UW
14552010-07-06 Ken Werner <ken.werner@de.ibm.com>
1456
1457 * gdbtypes.h (floatformats_ieee_half): Add declaration.
1458 * gdbtypes.c (floatformats_ieee_half): New variable.
1459 * doublest.c (floatformat_from_length): Set format to
1460 gdbarch_half_format if length matches.
1461 * gdbarch.sh (half_bit): New architecture method.
1462 (half_format): Likewise.
1463 * gdbarch.h: Regenerate.
1464 * gdbarch.c: Likewise.
1465
4e5799b6
JK
14662010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1467 Joel Brobecker <brobecker@adacore.com>
1468
1469 Fix re-run of PIE executable, PR shlibs/11776.
1470 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
1471 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
1472
86e4bafc
JK
14732010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1474 Joel Brobecker <brobecker@adacore.com>
1475
1476 * auxv.c (memory_xfer_auxv): Update attach comment.
1477 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
1478 svr4_relocate_main_executable.
1479 (svr4_solib_create_inferior_hook): Make the call to
1480 svr4_relocate_main_executable unconditional.
1481
3cd07d20
JK
14822010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1483 Joel Brobecker <brobecker@adacore.com>
1484
1485 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
1486
0a1e94c7
JK
14872010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1488 Joel Brobecker <brobecker@adacore.com>
1489
1490 Fix attaching to PIEs prelinked on the disk after the process was
1491 started.
1492 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
1493 Verify it against bfd_get_arch_size. Try to match arbitrary
1494 displacement for the phdrs comparison.
1495
5387647f
TT
14962010-07-02 Tom Tromey <tromey@redhat.com>
1497
1498 PR exp/11780:
1499 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
1500 value as optimized-out.
1501
38b6c3b3
TJB
15022010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
1503 Thiago Jung Bauermann <bauerman@br.ibm.com>
1504
1505 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
1506 represent?" question in comment. Change comment to a proper sentence.
1507
a17ac5b0
TT
15082010-07-02 Ken Werner <ken.werner@de.ibm.com>
1509
1510 * c-valprint.c (c_val_print): Fix printing of character vectors.
1511
bddaafad
JK
15122010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1513
1514 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
1515 create_breakpoint prototype.
1516
d41c0fc8
PA
15172010-07-01 Pedro Alves <pedro@codesourcery.com>
1518
1519 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
1520 usefulness suggestion of multiple breakpoints at same location.
1521
dc10affe
PA
15222010-07-01 Pedro Alves <pedro@codesourcery.com>
1523
1524 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
1525
cabe9ab6
PA
15262010-07-01 Pedro Alves <pedro@codesourcery.com>
1527
1528 * dwarf2loc.c (locexpr_tracepoint_var_ref)
1529 (loclist_tracepoint_var_ref): Handle optimized out values.
1530
cce7e648
PA
15312010-07-01 Pedro Alves <pedro@codesourcery.com>
1532
1533 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
1534 unnecessary space in string.
1535 * filesystem.c (_initialize_filesystem): Ditto.
1536 * frame.c (_initialize_frame): Ditto.
1537 * infcmd.c (step_once): Ditto.
1538 * infrun.c (_initialize_infrun): Ditto.
1539 * linux-nat.c (linux_child_follow_fork): Ditto.
1540 * maint.c (maintenance_deprecate): Ditto.
1541 * memattr.c (_initialize_mem): Ditto.
1542 * mips-tdep.c (_initialize_mips_tdep): Ditto.
1543 * monitor.c (monitor_open): Ditto.
1544 * procfs.c (procfs_xfer_memory): Ditto.
1545 * reverse.c (bookmarks_info): Ditto.
1546 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
1547 * stack.c (_initialize_stack): Ditto.
1548 * tracepoint.c (_initialize_tracepoint): Ditto.
1549 * xtensa-tdep.c (xtensa_supply_gregset,
1550 xtensa_regset_from_core_section): Ditto.
1551
b65c7efe
TT
15522010-07-01 Tom Tromey <tromey@redhat.com>
1553
1554 * value.h (struct lval_funcs) <check_any_valid>: Rename from
1555 check_all_valid.
1556 * value.c (value_entirely_optimized_out): Invert result. Update
1557 for new function name.
1558
0fb4aa4b
PA
15592010-07-01 Pedro Alves <pedro@codesourcery.com>
1560
1561 Static tracepoints support.
1562
1563 * NEWS: Mention new support for static tracepoints.
1564 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
1565 qXfer:statictrace:read.
1566 (New features in the GDB remote stub, GDBserver): Mention static
1567 tracepoints support using an UST based backend.
1568 (New commands): Mention "info static-tracepoint-markers" and
1569 "strace".
1570 * breakpoint.c (is_marker_spec): New.
1571 (is_tracepoint): Handle static tracepoints.
1572 (validate_commands_for_breakpoint): Static tracepoints can't do
1573 while-stepping.
1574 (static_tracepoints_here): New.
1575 (bpstat_what): Handle static tracepoints.
1576 (print_one_breakpoint_location, allocate_bp_location, mention):
1577 Ditto.
1578 (create_breakpoint_sal): Ditto.
1579 (decode_static_tracepoint_spec): New.
1580 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
1581 `type_wanted'. Adjust. Handle static tracepoint marker
1582 locations.
1583 (break_command_1): Adjust.
1584 (update_static_tracepoint): New.
1585 (update_breakpoint_locations): Handle static tracepoints.
1586 (breakpoint_re_set_one): Handle static tracepoint marker
1587 locations.
1588 (disable_command, enable_command): Handle static tracepoints.
1589 (trace_command, ftrace_command): Adjust.
1590 (strace_command): New.
1591 (create_tracepoint_from_upload): Adjust.
1592 (save_breakpoints): Handle static tracepoints.
1593 (_initialize_breakpoint): Install the "strace" command.
1594 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
1595 (struct breakpoint): New fields static_trace_marker_id and
1596 static_trace_marker_id_idx.
1597 (breakpoints_here_p): Declare.
1598 (create_breakpoint): Adjust.
1599 (static_tracepoints_here): Declare.
1600 * remote.c (struct remote_state) <static_tracepoints>: New field.
1601 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
1602 (remote_static_tracepoint_marker_at): New.
1603 (remote_static_tracepoint_markers_by_strid): New.
1604 (remote_static_tracepoint_feature): New.
1605 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
1606 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
1607 (remote_supports_static_tracepoints): New.
1608 (remote_download_tracepoint): Download static tracepoints.
1609 (init_remote_ops): Install remote_static_tracepoint_marker_at and
1610 remote_static_tracepoint_markers_by_strid.
1611 (_initialize_remote): Install set|show remote static-tracepoints,
1612 and set|show remote read-sdata-object commands.
1613 * target.c (update_current_target): Inherit and default
1614 to_static_tracepoint_marker_at, and
1615 to_static_tracepoint_markers_by_strid.
1616 * target.h (static_tracepoint_marker): Forward declare.
1617 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
1618 (static_tracepoint_marker_p): New typedef.
1619 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
1620 (struct target_ops): New fields to_static_tracepoint_marker_at and
1621 to_static_tracepoint_markers_by_strid.
1622 (target_static_tracepoint_marker_at)
1623 (target_static_tracepoint_markers_by_strid): New.
1624 * tracepoint.c: Include source.h.
1625 (validate_actionline): Handle $_sdata.
1626 (struct collection_list): New field strace_data.
1627 (add_static_trace_data): New.
1628 (clear_collection_list): Clear strace_data.
1629 (stringify_collection_list): Account for a possible static trace
1630 data collection.
1631 (encode_actions_1): Encode an $_sdata collection.
1632 (parse_tracepoint_definition): Handle static tracepoints.
1633 (parse_static_tracepoint_marker_definition): New.
1634 (release_static_tracepoint_marker): New.
1635 (print_one_static_tracepoint_marker): New.
1636 (info_static_tracepoint_markers_command): New.
1637 (sdata_make_value): New.
1638 (_initialize_tracepoint): Create the $_sdata convenience variable.
1639 Add the "info static-tracepoint-markers" command.
1640 Mention $_sdata in the "collect" command's help output.
1641 * tracepoint.h (struct static_tracepoint_marker): New.
1642 (parse_static_tracepoint_marker_definition)
1643 (release_static_tracepoint_marker): Declare.
1644 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1645 * python/py-breakpoint.c (bppy_new): Adjust.
1646
aac63f0f
JB
16472010-06-30 Joel Brobecker <brobecker@adacore.com>
1648
1649 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
1650 including Python.h.
1651
e68994a7
DE
16522010-06-29 Doug Evans <dje@google.com>
1653
3863f96c
DE
1654 PR gdb/11702
1655 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
1656 DW_AT_external is present.
1657
254e6b9e
DE
1658 PR gdb/11702
1659 * NEWS: Add entry.
1660 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
1661 create a symbol for the field and record the value.
1662 (new_symbol): Handle DW_TAG_member.
1663 * gdbtypes.c (field_is_static): Remove FIXME.
1664 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
1665 only ignore LOC_CONST symbols that are enums.
1666
6e70227d
DE
1667 * dwarf2read.c: Remove trailing whitespace.
1668
e68994a7
DE
1669 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
1670 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
1671 (struct main_type, field loc): Delete dwarf_block.
1672 (FIELD_DWARF_BLOCK): Delete.
1673 (SET_FIELD_DWARF_BLOCK): Delete.
1674 (TYPE_FIELD_DWARF_BLOCK): Delete.
1675 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
1676 Update.
1677
a480d2f6
HZ
16782010-06-29 Hui Zhu <teawater@gmail.com>
1679
1680 * record.c (set_record_pic_cmdlist,
1681 show_record_pic_cmdlist): New variables.
1682 (set_record_pic_command,
1683 show_record_pic_command): New functions.
1684 (record_pic_function, record_pic_line, record_pic_enum,
1685 set_record_pic_type, record_pic_hide_nofunction,
1686 record_pic_hide_nosource, record_pic_hide_same): New variables.
1687 (record_pic_fputs): New function.
1688 (function_list, node_list, edge_list): New struct.
1689 (function_list, node_list, edge_list): New variables.
1690 (record_pic_cleanups, record_pic_node,
1691 record_pic_edge, cmd_record_pic): New functions.
1692 (_initialize_record): Add new commands for record pic.
1693
a0d7a4ff
JK
16942010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
1697 ALLOCATE_CPLUS_STRUCT_TYPE.
1698
595939de
PM
16992010-06-28 Phil Muldoon <pmuldoon@redhat.com>
1700 Tom Tromey <tromey@redhat.com>
1701 Thiago Jung Bauermann <bauerman@br.ibm.com>
1702
1703 * value.c (pack_unsigned_long): New function.
1704 (value_from_ulongest): New function.
1705 * value.h (value_from_ulongest): Declare.
1706 * python/python.c (_initialize_python): Call
1707 gdbpy_initialize_thread and gdbpy_initialize_inferior.
1708 * python/python-internal.h: Define thread_object.
1709 (gdbpy_inferiors, gdbpy_selected_thread)
1710 (frame_info_to_frame_object, create_thread_object)
1711 (find_thread_object, find_inferior_object)
1712 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
1713 (gdbpy_is_value_object, get_addr_from_python): Declare.
1714 * python/py-value.c (builtin_type_upylong): Define.
1715 (convert_value_from_python): Add logic for ulongest.
1716 (gdbpy_is_value_object): New function.
1717 * python/py-utils.c (get_addr_from_python): New function.
1718 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
1719 (gdbpy_selected_frame): Use PyObject over frame_info.
1720 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
1721 py-infthread.
1722 (SUBDIR_PYTHON_SRCS): Likewise.
1723 (py-inferior.o): New Rule.
1724 (py-infthread.o): New Rule.
1725 * python/py-inferior.c: New File.
1726 * python/py-infthread.c: New File.
1727
98751a41
JK
17282010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1729
1730 * c-typeprint.c (c_type_print_base): For no fields check include also
1731 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
1732 * dwarf2read.c (struct typedef_field_list)
1733 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
1734 (dwarf2_add_typedef): New.
1735 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
1736 Copy also FI.TYPEDEF_FIELD_LIST.
1737 * gdbtypes.h (struct typedef_field)
1738 (struct cplus_struct_type) <typedef_field, typedef_field_count>
1739 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
1740 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
1741
41f62f39
JK
17422010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1743
1744 * cp-namespace.c (cp_lookup_nested_type): New variable
1745 concatenated_name. Turn the current return condition into a reverse
1746 one. Call also lookup_static_symbol_aux on the constructed qualified
1747 name.
1748 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
1749 other files into a called ...
1750 (lookup_static_symbol_aux): ... new function here.
1751 * symtab.h (lookup_static_symbol_aux): New prototype.
1752 * valops.c (value_maybe_namespace_elt): Call also
1753 lookup_static_symbol_aux if we failed otherwise.
1754
af53d231
JK
17552010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1756
1757 Fix PR c++/11703 and PR gdb/1448.
1758 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
1759 FIRST_ITER check.
1760
9655fd1a
JK
17612010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1762
1763 Fix modification of cplus_struct_default.
1764 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
1765 Call ALLOCATE_CPLUS_STRUCT_TYPE.
1766 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
1767
9279c692
JB
17682010-06-28 Joel Brobecker <brobecker@adacore.com>
1769
1770 * NEWS: Add entry announcing the python directory.
1771
d3f41bb1
TT
17722010-06-28 Tom Tromey <tromey@redhat.com>
1773
1774 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
1775
23e7acfb
DE
17762010-06-28 Doug Evans <dje@google.com>
1777
1778 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
1779 All callers updated.
1780
6036c742
JK
17812010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1782
1783 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
1784 obstack_begin after each obstack_free.
1785
9f18a3b3
DE
17862010-06-27 Doug Evans <dje@google.com>
1787
1596cb5d
DE
1788 * value.c (value_static_field): Use `switch' instead of `if'.
1789 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
1790
9f18a3b3
DE
1791 * valops.c (search_struct_field): Fix typo in error message.
1792
43dabe42
UW
17932010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
1794
1795 * dwarf2expr.c (execute_stack_op): Place preprocessor
1796 directives at the start of the source line.
1797
0f3bb72e
PH
17982010-06-25 Paul Hilfinger <hilfinger@adacore.com>
1799
6036c742
JK
1800 * defs.h (make_command_stats_cleanup): Declare.
1801 (set_display_time): Declare.
1802 (set_display_space): Declare.
1803 * event-top.c (command_handler): Use make_command_stats_cleanup.
1804 * main.c (display_time, display_space): Move definitions to utils.c.
1805 (captured_main): Use make_command_stats_cleanup to get start-up
1806 statistics.
1807 Use set_display_time and set_display_space for processing OPT_STATISTICS
1808 case.
1809 * maint.c (maintenance_time_display): Use set_display_time.
1810 (maintenance_space_display): Use set_display_space.
1811 * top.c (execute_command): Remove obsolete 'maint time' code.
1812 (command_loop): Use make_command_stats_cleanup.
1813 * utils.c (struct cmd_stats): Structure for storing initial time
1814 and space usage.
1815 (display_time, display_space): Move definitions here from utils.c.
1816 (set_display_time): New function.
1817 (set_display_space): New function.
1818 (make_command_stats_cleanup): New function.
1819 (report_command_stats): New auxiliary function for
1820 make_command_stats_cleanup.
0f3bb72e 1821
070c8028
UW
18222010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1823
1824 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
1825 hosts where CORE_ADDR is long long.
1826
bc9f0842
TT
18272010-06-25 Tom Tromey <tromey@redhat.com>
1828
1829 PR python/10808:
1830 * python/python.c (execute_gdb_command): Add keywords. Accept
1831 "to_string" argument.
1832 (struct restore_ui_file_closure): New.
1833 (restore_ui_file): New function.
1834 (make_cleanup_restore_ui_file): Likewise.
1835 (GdbMethods) <execute>: Update.
1836
c0cc4c83
UW
18372010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1838
1839 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
1840 during inferior call stack frame setup.
1841
f1d8ee66
UW
18422010-06-25 Ken Werner <ken.werner@de.ibm.com>
1843
1844 * solib-spu.c: Include "exception.h".
1845 (ocl_program_data_key): New variable.
1846 (append_ocl_sos): New function.
1847 (ocl_enable_break): Likewise.
1848 (spu_current_sos): Call append_ocl_sos.
1849 (spu_solib_loaded): Call ocl_enable_break.
1850 (_initialize_spu_solib): Register ocl_program_data_key.
1851
19c0c0f8
UW
18522010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1853
1854 * cp-support.c (reset_directive_searched): New function.
1855 (make_symbol_overload_list_using): Prevent recursive calls.
1856
0f6a939d
PM
18572010-06-25 Phil Muldoon <pmuldoon@redhat.com>
1858
1859 * printcmd.c (print_variable_and_value): Print error message on
1860 caught exception.
1861
f2c7657e
UW
18622010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
1863
1864 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
1865 of stack values.
1866 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
1867 "value" member.
1868 (dwarf_expr_push): Change input type to ULONGEST.
1869 (dwarf_expr_fetch): Change return type to ULONGEST.
1870 (dwarf_expr_fetch_address): Add prototype.
1871 (dwarf2_read_address): Remove prototype.
1872 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
1873 Truncate stack values to ctx->addr_size bytes.
1874 (dwarf_expr_fetch): Change return value to ULONGEST.
1875 (dwarf_expr_fetch_address): New function.
1876 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
1877 when appropriate. Update for struct dwarf_expr_piece changes.
1878 (dwarf2_read_address): Remove.
1879 (unsigned_address_type): Remove.
1880 (signed_address_type): Remove.
1881 (execute_stack_op): Use dwarf_expr_fetch_address instead of
1882 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
1883 values. Perform operations on ULONGEST instead of on GDB values,
1884 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
1885 values and DW_OP_deref results as unsigned integers.
1886 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
1887 changes.
1888 (write_pieced_value): Likewise.
1889 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
1890 dwarf_expr_fetch when appropriate.
1891 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
1892 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
1893 instead of dwarf_expr_fetch when appropriate.
1894
b1d61bc9
PM
18952010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
1896
1897 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
1898
b14285f6
JB
18992010-06-24 Joel Brobecker <brobecker@adacore.com>
1900
1901 * python/python.c (_initialize_python): Add new "constant"
1902 PYTHONDIR in gdb module. Insert this path at the head of
1903 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
1904 exec its __init__.py script if it exists in that directory.
1905
fd60dc69
KB
19062010-06-24 Kevin Buettner <kevinb@redhat.com>
1907
1908 * rx-tdep.c (RX_ACC_REGNUM): Define.
1909 (RX_NUM_REGS): Redefine to 26.
1910 (rx_register_name): Add register "acc". Change order of several
1911 registers. Change name of "vct" register to "fintv" to match RX
1912 documentation.
1913 (rx_register_type): Add case for RX_ACC_REGNUM.
1914
18430289
TT
19152010-06-24 Tom Tromey <tromey@redhat.com>
1916
1917 * psymtab.c (lookup_partial_symbol): Mark definition as static.
1918
40618926
JK
19192010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1920 Tom Tromey <tromey@redhat.com>
1921
1922 Fix GDB startup on readonly filesystem.
1923 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
1924
628fe4e4
JK
19252010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1926 Pedro Alves <pedro@codesourcery.com>
1927
1928 Fix PR 9436.
1929 * breakpoint.c (handle_jit_event): New function.
1930 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
1931 jit, err, table and bs_class. New variables shlib_event, jit_event,
1932 this_action and bptype. Change bs_class assignments to this_action
1933 assignments. new unhandled bptype internal error. Move here
1934 shlib_event and jit_event handling from handle_inferior_event.
1935 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
1936 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
1937 BPSTAT_WHAT_CHECK_JIT.
1938 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
1939 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
1940 (handle_inferior_event): Reinitialize frame and gdbarch after
1941 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
1942 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
1943 gdbarch when frame gets reinitialized.
1944
f1421989
HZ
19452010-06-24 Hui Zhu <teawater@gmail.com>
1946
1947 * printcmd.c (ui_printf): New function.
1948 (printf_command): Call ui_printf.
1949 (_initialize_printcmd): New command "eval".
1950
d03285ec
UW
19512010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
1952
1953 * infrun.c (handle_inferior_event): Handle presence of single-step
1954 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
1955 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
1956 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
1957 * breakpoint.c (detach_single_step_breakpoints): New function.
1958 (detach_breakpoints): Call it.
1959 (cancel_single_step_breakpoints): New function.
1960 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
1961
1962 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
1963 (spu_gdbarch_init): Install it.
1964
38f6b338
JK
19652010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1966
1967 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
1968 * configure: Regenerate.
1969
bb08c432
HZ
19702010-06-22 Hui Zhu <teawater@gmail.com>
1971
1972 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
1973 (i386_process_record): Ditto.
1974 * record.c (record_memory_query): New variable.
1975 (_initialize_record): New command "set record memory-query".
1976 * record.h (record_memory_query): New extern.
1977
b55078be
DE
19782010-06-21 Doug Evans <dje@google.com>
1979
1980 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
1981 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
1982 (i386_syscall_p): Change type of lengthp to int.
1983 (i386_displaced_step_fixup): Handle kernels that run one past a
1984 syscall insn.
1985 * i386-linux-tdep.c (i386_linux_init_abi): Use
1986 i386_displaced_step_copy_insn instead of
1987 simple_displaced_step_copy_insn.
1988
75079b2b
TT
19892010-06-21 Tom Tromey <tromey@redhat.com>
1990
1991 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
1992 (dwarf_type_encoding_name): Likewise.
1993
b00fdb78
TT
19942010-06-21 Tom Tromey <tromey@redhat.com>
1995
1996 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
1997 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
1998 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
1999 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
2000 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
2001 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
2002 * dwarf2read.c (tag_type_to_type): Create a new error type on
2003 failure.
2004 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
2005 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
2006
84951ab5
MS
20072010-06-21 Michael Snyder <msnyder@vmware.com>
2008
2009 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
2010 not add_abbrev_prefix_cmd, for "enable breakpoints".
2011
d4a087c7
UW
20122010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
2013
2014 * dwarf2loc.c (find_location_expression): Add relocation offset
2015 to base-address-selection entry base addresses. Read addresses
2016 (and offsets) as signed/unsigned integers, depending on the
2017 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
2018 (loclist_describe_location): Likewise.
2019 (disassemble_dwarf_expression): Read DW_OP_addr operand as
2020 unsigned integer. Do not call dwarf2_read_address.
2021 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
2022
13def385
UW
20232010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2024
2025 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
2026 value instead of hard-coded SPU_LS_SIZE.
2027 (spu_software_single_step): Likewise.
2028 * spu-tdep.h (SPU_LS_SIZE): Remove.
2029
d2ed6730
UW
20302010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
2031
2032 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
2033 limit on local store memory accesses.
2034 * spu-linux-nat.c (spu_xfer_partial): Likewise.
2035 * spu-tdep.c (spu_lslr): Remove.
2036 (spu_pointer_to_address): Do not truncate addresses.
2037 (spu_integer_to_address): Likewise.
2038 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
2039 * spu-tdep.h: Add comments.
2040 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
2041 (SPU_OVERLAY_LMA): Define.
2042
6aed2dbc
SS
20432010-06-18 Stan Shebs <stan@codesourcery.com>
2044
a61408f8
SS
2045 * osdata.c (get_osdata): Warn separately if target does not report
2046 type list.
2047 (info_osdata_command): Allow empty type, report error if target
2048 does not return available types of OS data.
2049 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
2050 types if no annex supplied.
2051
6aed2dbc
SS
2052 * thread.c (thread_id_make_value): Make a value representing the
2053 current thread.
2054 (_initialize_thread): Create $_thread.
2055
ec61707d
JB
20562010-06-17 Joel Brobecker <brobecker@adacore.com>
2057
2058 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
2059 last local variable declaration. No real code change.
2060
60606b2c
TT
20612010-06-17 Tom Tromey <tromey@redhat.com>
2062
2063 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
2064 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
2065 temporary obstack.
2066
65d79d4b
SDJ
20672010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
2068 Jan Kratochvil <jan.kratochvil@redhat.com>
2069
2070 * breakpoint.c: Include parser-defs.h.
2071 (watchpoint_exp_is_const): New function.
2072 (watch_command_1): Call watchpoint_exp_is_const to check
2073 if the expression is constant.
2074
0407b3f1
AS
20752010-06-15 Andreas Schwab <schwab@linux-m68k.org>
2076
2077 * configure.ac: Check for RDYNAMIC also for cross builds.
2078 * configure: Regenerate.
2079
98d64339
PA
20802010-06-15 Pedro Alves <pedro@codesourcery.com>
2081
2082 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2083 (SFILES): Remove solib-null.c, add solib-target.c.
2084 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
2085 (ALLDEPFILES): Remove solib-target.c.
2086 * solib-target.c (_initialize_solib_target): Set
2087 current_target_so_ops to solib_target_so_ops if not already set.
2088 * solib-null.c: Delete.
2089
6a271cae
PA
20902010-06-14 Pedro Alves <pedro@codesourcery.com>
2091
2092 * NEWS: Mention GDBserver's JIT compilation of tracepoint
2093 bytecode.
2094
1e9beacb
UW
20952010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2096
2097 * cp-valprint.c (cp_print_static_field): Members of
2098 dont_print_stat_array_obstack are of type "struct type *".
2099 (_initialize_cp_valprint): Likewise.
2100
21a176fb
UW
21012010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
2102
2103 * frame.c (frame_register_unwind): Do not access contents
2104 of "optimized out" unwound register value.
2105
25b524e8
JK
21062010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2107
2108 * ada-lang.h (ada_print_type): Make varstring const.
2109 * ada-typeprint.c (print_func_type): Make name const.
2110 (ada_print_type): Make varstring const.
2111 * c-lang.h (c_print_type): Make varstring const.
2112 * c-typeprint.c (c_print_type): Likewise.
2113 * f-lang.h (f_print_type): Likewise.
2114 * f-typeprint.c (f_print_type): Likewise.
2115 * jv-lang.h (java_print_type): Likewise.
2116 * jv-typeprint.c (java_print_type): Likewise.
2117 * language.c (unk_lang_print_type): Likewise.
2118 * language.h (struct language_defn) <la_print_type>: Likewise.
2119 * m2-lang.h (m2_print_type): Likewise.
2120 * m2-typeprint.c (m2_print_type): Likewise.
2121 * p-lang.h (pascal_print_type): Likewise.
2122 * p-typeprint.c (pascal_print_type): Likewise.
2123
d914c394
SS
21242010-06-11 Stan Shebs <stan@codesourcery.com>
2125
2126 Add per-operation permission flags.
2127
2128 * target.h (struct target_ops): New method to_set_permissions.
2129 (target_set_permissions): New macro.
2130 (target_insert_breakpoint): Change macro to function.
2131 (target_remove_breakpoint): Ditto.
2132 (target_stop): Ditto.
2133 (may_write_registers): Declare.
2134 (may_write_memory): Declare.
2135 (may_insert_breakpoints): Declare.
2136 (may_insert_tracepoints): Declare.
2137 (may_insert_fast_tracepoints): Declare.
2138 (may_stop): Declare.
2139 * target.c (may_write_registers, may_write_registers_1): New globals.
2140 (may_write_memory, may_write_memory_1): New globals.
2141 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
2142 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
2143 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
2144 globals.
2145 (may_stop, may_stop_1): New global.
2146 (target_xfer_partial): Test for write permission.
2147 (target_store_registers): Ditto.
2148 (target_insert_breakpoint): New function.
2149 (target_remove_breakpoint): New function.
2150 (target_stop): New function.
2151 (_initialize_targets): Add new set/show variables.
2152 (set_write_memory_permission): New function.
2153 (update_target_permissions): New function.
2154 (set_target_permissions): New function.
2155 (update_current_target): Default to_set_permissions.
2156 (_initialize_targets): Use new globals and setter function.
2157 * tracepoint.c (start_tracing): Test for permission.
2158 * inferior.h (update_observer_mode): Declare.
2159 * infrun.c (non_stop_1): Define earlier.
2160 (observer_mode, observer_mode_1): New globals.
2161 (set_observer_mode, show_observer_mode): New functions.
2162 (update_observer_mode): New function.
2163 (_initialize_infrun): Define "set observer" command.
2164 * remote.c (PACKET_QAllow): New optional packet.
2165 (remote_protocol_features): Add QAllow.
2166 (remote_set_permissions): New function.
2167 (remote_start_remote): Call it.
2168 (init_remote_ops): Add it to target vector.
2169 (_initialize_remote): Add config command for QAllow.
2170
aec5aa8b
TT
21712010-06-11 Tom Tromey <tromey@redhat.com>
2172
2173 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
2174 DW_AT_vtable_elem_location even when GCC extension is seen.
2175
0e03807e
TT
21762010-06-11 Tom Tromey <tromey@redhat.com>
2177
2178 PR gdb/9977, PR exp/11636:
2179 * value.h (value_offset): Update.
2180 (struct lval_funcs) <check_validity>: New field.
2181 <copy_closure>: Make argument const.
2182 (value_computed_closure): Update.
2183 (value_contents_for_printing): Declare.
2184 (value_bits_valid): Likewise.
2185 (val_print): Likewise.
2186 (set_value_component_location): Update.
2187 (value_entirely_optimized_out): Declare.
2188 * value.c (value_offset): Argument now const.
2189 (require_not_optimized_out): New function.
2190 (value_contents_for_printing): New function.
2191 (value_contents_all): Call require_not_optimized_out.
2192 (value_contents): Likewise.
2193 (value_bits_valid): New function.
2194 (value_computed_closure): Argument now const.
2195 (set_value_component_location): Make 'whole' argument const.
2196 (value_entirely_optimized_out): New function.
2197 (value_bitsize): Argument now 'const'.
2198 (value_bitpos): Likewise.
2199 (value_type): Likewise.
2200 * valprint.h (val_print_array_elements): Update.
2201 * valprint.c (val_print): Add 'val' argument. Use
2202 valprint_check_validity.
2203 (valprint_check_validity): New function.
2204 (value_check_printable): Use value_entirely_optimized_out.
2205 (common_val_print): Update.
2206 (value_print): Likewise.
2207 (val_print_array_elements): Add 'val' argument.
2208 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
2209 value_bits_valid. Reinit frame cache for lval_computed.
2210 * sh64-tdep.c (sh64_do_register): Update.
2211 * scm-valprint.c (scm_val_print): Add 'val' argument.
2212 * scm-lang.h (scm_val_print): Update.
2213 * python/python.h (apply_val_pretty_printer): Update.
2214 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
2215 argument. Call set_value_component_location.
2216 * printcmd.c (print_scalar_formatted): Update.
2217 * p-valprint.c (pascal_val_print): Add 'val' argument.
2218 (pascal_object_print_value_fields): Likewise.
2219 (pascal_object_print_value): Likewise.
2220 (pascal_object_print_static_field): Update.
2221 * p-lang.h (pascal_val_print): Update.
2222 (pascal_object_print_value_fields): Update.
2223 * mt-tdep.c (mt_registers_info): Update.
2224 * mi/mi-main.c (get_register): Update.
2225 (mi_cmd_data_evaluate_expression): Use common_val_print.
2226 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
2227 (m2_print_unbounded_array): Likewise.
2228 (m2_val_print): Likewise.
2229 * m2-lang.h (m2_val_print): Update.
2230 * language.h (struct language_defn) <la_val_print>: Add 'val'
2231 argument.
2232 (LA_VAL_PRINT): Likewise.
2233 * language.c (unk_lang_val_print): Add 'val' argument.
2234 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
2235 (java_val_print): Likewise.
2236 * jv-lang.h (java_val_print): Add 'val' argument.
2237 * infcmd.c (default_print_registers_info): Update.
2238 * f-valprint.c (f77_print_array_1): Add 'val' argument.
2239 (f77_print_array): Likewise.
2240 (f_val_print): Likewise.
2241 * f-lang.h (f_val_print): Add 'val' argument.
2242 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
2243 value_bitpos.
2244 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
2245 set_value_optimized_out.
2246 (write_pieced_value): Use value_bitsize and value_bitpos.
2247 <default>: Don't exit loop.
2248 (check_pieced_value_validity): New function.
2249 (pieced_value_funcs): Reference check_pieced_value_validity,
2250 check_pieced_value_invalid.
2251 (copy_pieced_value_closure): Update.
2252 (check_pieced_value_bits): New function.
2253 (check_pieced_value_invalid): New function.
2254 * d-valprint.c (dynamic_array_type): Add 'val' argument.
2255 (d_val_print): Likewise.
2256 * d-lang.h (d_val_print): Update.
2257 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
2258 (cp_print_value_fields_rtti): Likewise.
2259 (cp_print_value): Likewise.
2260 (cp_print_static_field): Update.
2261 * c-valprint.c (c_val_print): Add 'val' argument.
2262 (c_value_print): Update.
2263 * c-lang.h (c_val_print): Update.
2264 (cp_print_value_fields): Likewise.
2265 (cp_print_value_fields_rtti): Likewise.
2266 * ada-valprint.c (struct ada_val_print_args): Remove.
2267 (val_print_packed_array_elements): Add 'val' argument.
2268 (ada_val_print): Likewise. Rewrite.
2269 (ada_val_print_stub): Remove.
2270 (ada_val_print_array): Add 'val' argument.
2271 (ada_val_print_1): Likewise.
2272 (print_variant_part): Likewise.
2273 (ada_value_print): Update.
2274 (print_record): Add 'val' argument.
2275 (print_field_values): Likewise.
2276 * ada-lang.h (ada_val_print): Update.
2277
3cf03773
TT
22782010-06-11 Tom Tromey <tromey@redhat.com>
2279
2280 * vec.h (VEC_cleanup): New macro.
2281 (DEF_VEC_ALLOC_FUNC_I): Update.
2282 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2283 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2284 * dwarf2loc.c (struct axs_var_loc): Remove.
2285 (unimplemented): New function.
2286 (translate_register): Likewise.
2287 (access_memory): Likewise.
2288 (compile_dwarf_to_ax): Likewise.
2289 (dwarf2_tracepoint_var_loc): Remove.
2290 (dwarf2_tracepoint_var_access): Likewise.
2291 (dwarf2_tracepoint_var_ref): Likewise.
2292 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
2293 (loclist_tracepoint_var_ref): Likewise.
2294 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
2295 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
2296 require_composition. No longer static.
2297 (execute_stack_op): Update.
2298 * ax-gdb.h (trace_kludge): Declare.
2299
2bdf28a0
JK
23002010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2301
2302 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
2303 (should_be_inserted): Return zero also on NULL OWNER.
2304 (breakpoint_program_space_exit): New OWNER comment.
2305 (insert_breakpoint_locations): Extend comment for OWNER.
2306 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
2307 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
2308 New OWNER comment.
2309 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
2310 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
2311 (bpstat_check_location): New assert on OWNER.
2312 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
2313 and B initializations to the code block. New assert on them.
2314 (print_one_breakpoint_location): New OWNER comment.
2315 (watchpoint_locations_match): Assert on OWNER.
2316 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
2317 initializations to the code block. New assert on OWNER.
2318 (set_breakpoint_location_function): New assert on OWNER.
2319 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
2320 (bp_location_compare, update_global_location_list)
2321 (update_global_location_list): New OWNER comment.
2322
5b9a19af
UW
23232010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2324
2325 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
2326
669211f5
UW
23272010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2328
2329 * config/nm-linux.h (struct target_ops): Remove forward declaration.
2330 (lin_thread_get_thread_signals): Remove prototype.
2331 (GET_THREAD_SIGNALS): Remove.
2332 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
2333 * linux-thread-db.c (check_thread_signals): Directly call
2334 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
2335
b7a8b4ef
UW
23362010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
2337
2338 * gregset.h (GDB_FPXREGSET_T): Remove.
2339 (gdb_fpxregset_t): Likewise.
2340 (supply_fpxregset): Remove prototype.
2341 (fill_fpxregset): Likewise.
2342 * i386-linux-nat.c (supply_fpxregset): Remove.
2343 (fill_fpxregset): Likewise.
2344 (fetch_fpxregs): Inline supply_fpxregset call.
2345 (store_fpxregs): Inline fill_fpxregset call.
2346
2347 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
2348 * config/i386/nm-linux.h: Remove file.
2349
82892036
MS
23502010-06-09 Michael Snyder <msnyder@vmware.com>
2351
2352 * target.c (update_current_target): Fix spelling error in comment.
2353 (target_mourn_inferior): Fix spelling error in error message.
2354
5ddb52fa
PH
23552010-06-08 Paul Hilfinger <hilfingr@adacore.com>
2356
2357 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
2358 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
2359
0f2caa1b
MS
23602010-06-08 Michael Snyder <msnyder@vmware.com>
2361
2362 * remote.c (remote_close): Set inferior_ptid to null_ptid.
2363
3bebe2f2
JK
23642010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2365
2366 * configure.ac <"${have_libpython}" != no>: New workaround of
2367 python#4434.
2368 * configure: Regenerate.
2369
eaaffdf4
HZ
23702010-06-08 Hui Zhu <teawater@gmail.com>
2371
2372 * record.c (record_wait): Move signal out of replay code.
2373
5c631832
JK
23742010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2375
2376 Fix PR 10640.
2377 * dwarf2-frame.c (no_dwarf_call): New function.
2378 (execute_stack_op): Set CTX->DWARF_CALL.
2379 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
2380 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
2381 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
2382 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
2383 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
2384 (needs_frame_dwarf_call): New function.
2385 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
2386 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
2387 Update the comment. Move variables die, offset and error call to ...
2388 (follow_die_ref): ... a new function.
2389 (dwarf2_fetch_die_location_block): New function.
2390 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
2391
17ea53c3
JK
23922010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
2395 (dwarf_expr_tls_address): Use per_cu instead of objfile.
2396 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
2397 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
2398 this change.
2399 (struct needs_frame_baton): New field per_cu.
2400 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
2401 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
2402
245040d7
SW
24032010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2404
2405 * cp-support.c (make_symbol_overload_list_namespace): Only search
2406 static and global blocks.
2407 (make_symbol_overload_list_block): New function.
2408 (make_symbol_overload_list): Separate namespace search from block
2409 search.
2410 (make_symbol_overload_list_qualified): Use
2411 make_symbol_overload_list_block.
2412
4c3376c8
SW
24132010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
2414
2415 * value.h: Created oload_search_type enum.
2416 (find_overload_match): Use oload_search_type enum.
2417 * valops.c (find_overload_match): Support combined member and
2418 non-member search.
2419 * eval.c (evaluate_subexp_standard): Calls to
2420 find_overload_match now use oload_search_type enum.
2421 (oload_method_static): Verify index is a proper value.
2422 * valarith.c (value_user_defined_cpp_op): Search for and handle
2423 both member and non-member operators.
2424 (value_user_defined_cpp_op): New function.
2425 (value_user_defined_op): New function.
2426 (value_x_unop): Use value_user_defined_op.
2427 (value_x_binop): Ditto.
2428 * cp-support.c (make_symbol_overload_list_using): Added block
2429 iteration.
2430 Add check for namespace aliases and imported declarations.
2431
ee55da67
JK
24322010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2433
2434 * breakpoint.h (owner): Extend the comment.
2435
1a2ab13a
JK
24362010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2437
2438 Clear stale specific bp_location from former whole breakpoint.
2439 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
2440 code ...
2441 (free_bp_location): ... here. Rename there the called function to
2442 bpstat_remove_bp_location_callback.
2443 (bpstat_remove_breakpoint_callback): Rename to ...
2444 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
2445 to struct bp_location. Change the called function to
2446 bpstat_remove_bp_location. Create new declaration for the function.
2447 (bpstat_remove_breakpoint): Rename to ...
2448 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
2449 code for the new parameter type.
2450
16d6b4b7
NS
24512010-06-07 Nathan Sidwell <nathan@codesourcery.com>
2452
2453 * README: Make version-agnostic.
2454
7e314c57
JK
24552010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2456
2457 Fix duplicate types for single DIE.
2458 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
2459 set_die_type.
2460 (read_array_type): Remove type initialization. Recheck get_die_type
2461 after initial die_type. Move set_die_type before set_descriptive_type.
2462 (read_set_type): New variable domain_type. Recheck get_die_type after
2463 initial die_type. Move attr initialization later.
2464 (read_tag_pointer_type, read_tag_reference_type): New variable
2465 target_type. Recheck get_die_type after initial die_type.
2466 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
2467 die_type and die_containing_type.
2468 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
2469 Recheck get_die_type after initial die_type.
2470 (read_subrange_type): Recheck get_die_type after initial die_type.
2471 Move set_die_type before set_descriptive_type.
2472 (set_die_type): Extend the function comment. Call complaint if DIE has
2473 some type already set.
2474
2f296114
VP
24752010-06-05 Vladimir Prus <vladimir@codesourcery.com>
2476
2477 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
2478 for current naming of thread groups (iN, not N).
2479
554794dc
SDJ
24802010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
2481
2482 * ada-lang.c (ada_operator_length): Constify `struct expression'.
2483 * parse.c (operator_length): Likewise.
2484 (operator_length_standard): Likewise.
2485 * parser-defs.h (operator_length): Likewise.
2486 (operator_length_standard): Likewise.
2487 (struct exp_descriptor <operator_length>): Likewise.
2488
967cf477
DE
24892010-06-04 Doug Evans <dje@google.com>
2490
bddaacb9 2491 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
2492 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
2493 * python/python-internal.h (gdbpy_enabled_cst): Declare.
2494 * python/python.c (gdbpy_enabled_cst): Define.
2495 (_initialize_python): Initialize gdbpy_enabled_cst.
2496 * NEWS: Add entry.
2497
2dec564e
JK
24982010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2499
2500 * breakpoint.c (update_global_location_list): Fix comment typo.
2501
44b5680a
HZ
25022010-06-04 Hui Zhu <teawater@gmail.com>
2503
2504 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
2505
e7a30f46
DE
25062010-06-03 Doug Evans <dje@google.com>
2507
2508 * configure.ac: Don't fail if python is unusable when
2509 configured with --with-python=auto.
2510 * configure: Regenerate.
2511
84b4420f
SW
25122010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
2513
2514 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
2515
df178451
PM
25162010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
2517
2518 * valprint.h (get_array_bounds): Change low and high parameter types
2519 to LONGEST *.
0407b3f1 2520 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
2521 compute bounds.
2522 (val_print_array_elements): Adapt to change above.
2523 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
2524 * p-valprint.c (pascal_val_print): Likewise.
2525
fd5700c7
JK
25262010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2527
2528 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
2529 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
2530 .F08.
2531
f55ee35c
JK
25322010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2533
2534 Support DW_TAG_module as separate namespaces.
2535 * dwarf2read.c (typename_concat): New parameter physname.
2536 (read_module_type): New function and declaration.
2537 (scan_partial_symbols): Scan also DW_TAG_module children.
2538 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
2539 to typename_concat backward compatible physname value 0.
2540 (partial_die_full_name, read_namespace_type): Pass to typename_concat
2541 backward compatible physname value 0.
2542 (add_partial_module, read_module): Remove FIXME comment.
2543 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
2544 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
2545 DIEs under DW_TAG_module.
2546 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
2547 DW_AT_MIPS_linkage_name first, extend it for language_fortran
2548 && physname and return there instead of just setting NAME. Extend
2549 the main block for language_fortran. Pass physname parameter to the
2550 typename_concat call.
2551 (read_import_statement, read_func_scope, get_scope_pc_bounds)
2552 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
2553 (new_symbol): Fill in cplus_specific.demangled_name if it is still
2554 missing from SYMBOL_SET_NAMES in the language_fortran case.
2555 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
2556 variables.
2557 (read_type_die) <DW_TAG_module>: New.
2558 (MAX_SEP_LEN): Increase to 7.
2559 (typename_concat): New parameter physname. New variable lead. Support
2560 also language_fortran.
2561 * f-exp.y (yylex): Consider : also as a symbol name character class.
2562 * f-lang.c: Include cp-support.h.
2563 (f_word_break_characters, f_make_symbol_completion_list): New functions.
2564 (f_language_defn): Use cp_lookup_symbol_nonlocal,
2565 f_word_break_characters and f_make_symbol_completion_list.
2566 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
2567 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
2568 * symtab.c (symbol_init_language_specific): Support language_fortran.
2569 (symbol_find_demangled_name): New comment on language_fortran.
2570 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
2571 for language_fortran.
2572 (lookup_symbol_aux_local): Check imports also for language_fortran.
2573 (default_make_symbol_completion_list): Rename to ...
2574 (default_make_symbol_completion_list_break_on): ... this name. New
2575 parameter break_on, use it.
2576 (default_make_symbol_completion_list): New stub.
2577 * symtab.h (default_make_symbol_completion_list_break_on): New
2578 prototype.
2579
cb91c06a
JB
25802010-06-02 Joel Brobecker <brobecker@adacore.com>
2581
2582 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
2583 to error.
2584
5c315b68
JK
25852010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2586
2587 * dwarf2read.c (typename_concat): Add const to the variable sep.
2588
9eae7c52
TT
25892010-06-02 Tom Tromey <tromey@redhat.com>
2590
2591 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
2592 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
2593 type is const. Add 'def' argument. Add missing operators, remove
2594 unhandled ones.
2595 (decode_locdesc): Update.
2596 (dwarf2_always_disassemble): New global.
2597 (show_dwarf2_always_disassemble): New function.
2598 (_initialize_dwarf2_read): Add always-disassemble.
2599 (dwarf2_per_cu_offset_size): New function.
2600 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
2601 (piece_end_p): New function.
2602 (locexpr_describe_location_piece): Replace 'size' argument with
2603 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
2604 some constants. Remove errors.
2605 (disassemble_dwarf_expression): New function.
2606 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
2607 Add 'offset_size' argument.
2608 (loclist_describe_location): Change output formatting.
2609 * dwarf2expr.h (dwarf_stack_op_name): Declare.
2610
7d3fe98e
SW
26112010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
2612
2613 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
2614 anonymous type case.
2615
e77813c8
PM
26162010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
2617
2618 * dwarf2read.c (read_subrange_type): Handle missing base type
2619 according to Dwarf-2 specifications.
2620
7cf3118a
SDJ
26212010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
2622
2623 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
2624 BINOP_EXCL.
2625 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
2626 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
2627 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
2628 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
2629 UNOP_CHMAX, UNOP_CHMIN.
2630 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
2631 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
2632 UNOP_CHMIN>: Remove opcodes.
2633
ae4d0c03
PM
26342010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
2635
2636 * dwarf2read.c (read_func_scope): Do not complain for
2637 external function if bounds are not found.
2638
fa593d66
PA
26392010-06-01 Pedro Alves <pedro@codesourcery.com>
2640
2641 * NEWS: Mention gdbserver fast tracepoints support.
2642
cd44747c
PM
26432010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
2644
2645 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
2646 New macros.
2647 (windows_set_console_info): New function.
2648 (windows_create_inferior): Call windows_set_console_info
2649 if NEW_CONSOLE is true.
2650 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
2651 (_initialize_loadable): Initialize GetConsoleFontSize and
2652 GetCurrentConsoleFont.
2653
f6528abd
JK
26542010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2655
2656 * Makefile.in (RDYNAMIC): New.
2657 (SFILES): Add proc-service.list.
2658 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
2659 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
2660 * config/arm/linux.mh: Likewise.
2661 * config/i386/linux.mh: Likewise.
2662 * config/i386/linux64.mh: Likewise.
2663 * config/ia64/linux.mh: Likewise.
2664 * config/m32r/linux.mh: Likewise.
2665 * config/m68k/linux.mh: Likewise.
2666 * config/mips/linux.mh: Likewise.
2667 * config/pa/linux.mh: Likewise.
2668 * config/powerpc/linux.mh: Likewise.
2669 * config/powerpc/ppc64-linux.mh: Likewise.
2670 * config/s390/s390.mh: Likewise.
2671 * config/sparc/linux.mh: Likewise.
2672 * config/sparc/linux64.mh: Likewise.
2673 * config/xtensa/linux.mh: Likewise.
2674 * configure.ac: New RDYNAMIC on native host and GCC.
2675 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
2676 * configure: Regenerate.
2677 * proc-service.list: New.
2678
ca2a87a0
JK
26792010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2680
2681 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
2682 CONTENT.
2683
1e225492
JK
26842010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2685
2686 * linux-nat.c (linux_nat_wait_1): Do not call
2687 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
2688 TARGET_WAITKIND_SIGNALLED.
2689
e802dbe0
JB
26902010-05-27 Joel Brobecker <brobecker@adacore.com>
2691
2692 * ada-lang.c (ada_inferior_data): New struct.
2693 (ada_inferior_data): New static global.
2694 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
2695 (ada_get_tsd_type): New functions.
2696 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
2697 to look the tsd type up.
2698 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
2699 event. Set ada_inferior_data.
2700
176a6961
PA
27012010-05-27 Pedro Alves <pedro@codesourcery.com>
2702
2703 * remote.c (unpack_varlen_hex): Remove forward declaration.
2704 (remote_console_output): Make static, and add forward declaration.
2705 * remote.h: Drop FIXME comment.
2706 (unpack_varlen_hex): Declare.
2707 (remote_console_output, remote_cisco_objfile_relocate)
2708 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
2709 Delete declarations.
2710 * tracepoint.c: Include "remote.h".
2711 (unpack_varlen_hex): Delete declaration.
2712
88bfdde4
TT
27132010-05-27 Tom Tromey <tromey@redhat.com>
2714
2715 * dwarf2loc.c (struct piece_closure) <refc>: New field.
2716 (allocate_piece_closure): Initialize refc.
2717 (copy_pieced_value_closure): Use refc.
2718 (free_pieced_value_closure): Likewise.
2719
8c6363cf
TT
27202010-05-27 Tom Tromey <tromey@redhat.com>
2721
2722 * arm-tdep.c (push_stack_item): 'contents' now const.
2723 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
2724 value_contents_writeable. Introduce new temporary.
2725
7ecb917e
TT
27262010-05-27 Tom Tromey <tromey@redhat.com>
2727
2728 * findcmd.c (parse_find_args): Use value_contents, not
2729 value_contents_raw.
2730
f42a0a33
TT
27312010-05-27 Tom Tromey <tromey@redhat.com>
2732
2733 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
2734 const. Use value_contents, not value_contents_writeable.
2735
12b795ad
JB
27362010-05-27 Joel Brobecker <brobecker@adacore.com>
2737
2738 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
2739 by call to value_contents.
2740
5a2e11c7
OS
27412010-05-27 Ozkan Sezer <sezeroz@gmail.com>
2742
2743 * MAINTAINERS: Add myself for write after approval privileges.
2744
ec685c5e
DE
27452010-05-26 Doug Evans <dje@google.com>
2746
0c4a4063
DE
2747 Allow python to find its files if moved from original location.
2748 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
2749 (GDB_AC_WITH_DIR): Call it.
2750 * configure.ac: Define WITH_PYTHON_PATH if we can find the
2751 python installation directory.
2752 * config.in: Regenerate.
2753 * configure: Regenerate.
2754 * defs.h (python_libdir): Declare.
2755 * main.c (python_libdir): Define.
2756 (captured_main): Initialize python_libdir.
2757 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
2758 call Py_SetProgramName to make sure python can find its libraries
2759 and modules.
2760
ec685c5e
DE
2761 * configure.ac: Try to use python's distutils to fetch compilation
2762 parameters.
2763 * configure: Regenerate.
2764 * python/python-config.py: New file.
2765
363a6e9f
OS
27662010-05-26 Ozkan Sezer <sezeroz@gmail.com>
2767
2768 * ser-tcp.c (net_open): Check error return from socket() call by its
2769 equality to -1 not by it being negative.
2770 (net_close): Likewise.
2771
dde08ee1
PA
27722010-05-26 Pedro Alves <pedro@codesourcery.com>
2773
2774 * NEWS: Mention the `qRelocInsn' feature.
2775 * gdbarch.sh (relocate_instruction): New.
2776 * amd64-tdep.c (rip_relative_offset): New.
2777 (append_insns): New.
2778 (amd64_relocate_instruction): New.
2779 (amd64_init_abi): Install it.
2780 * i386-tdep.c (append_insns): New.
2781 (i386_relocate_instruction): New.
2782 (i386_gdbarch_init): Install it.
2783 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
2784 * gdbarch.h, gdbarch.c: Regenerate.
2785
947bb88f
TT
27862010-05-26 Tom Tromey <tromey@redhat.com>
2787
2788 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
2789 (struct dwarf2_loclist_baton) <data>: Likewise.
2790 * dwarf2loc.c (find_location_expression): Constify return type.
2791 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
2792 (dwarf2_loc_desc_needs_frame): Likewise.
2793 (loclist_read_variable): Constify.
2794 (loclist_describe_location): Likewise.
2795 (loclist_tracepoint_var_ref): Likewise.
2796
0d45f56e
TT
27972010-05-25 Tom Tromey <tromey@redhat.com>
2798
2799 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
2800 (dwarf_expr_frame_base_1): Likewise.
2801 (read_pieced_value): Update.
2802 (needs_frame_frame_base): Constify.
2803 (dwarf2_tracepoint_var_loc): Likewise.
2804 (dwarf2_tracepoint_var_access): Likewise.
2805 (locexpr_describe_location_piece): Likewise.
2806 (locexpr_describe_location_1): Likewise.
2807 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
2808 Constify.
2809 (data): Now const.
2810 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
2811 (dwarf_expr_eval, read_uleb128, read_sleb128)
2812 (dwarf2_read_address): Update.
2813 * dwarf2expr.c (dwarf_expr_eval): Constify.
2814 (read_uleb128): Likewise.
2815 (read_sleb128): Likewise.
2816 (dwarf2_read_address): Likewise.
2817 (require_composition): Likewise.
2818 (execute_stack_op): Likewise.
2819 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
2820 "const gdb_byte *".
2821 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
2822 Now const.
2823 (no_get_frame_base): Constify.
2824 (execute_stack_op): Likewise.
2825 (execute_cfa_program): Likewise.
2826 (read_encoded_value): Likewise.
2827
07ca107c
DE
28282010-05-25 Doug Evans <dje@google.com>
2829
e34838f0
DE
2830 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
2831
01f69b38
DE
2832 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
2833 * event-loop.c: ... here.
2834 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
2835 `error' for clarity.
2836 (tui_getc): Pass correct value for `error' parameter to
2837 tui_readline_output.
2838
07ca107c
DE
2839 Add python gdb.GdbError and gdb.string_to_argv.
2840 * NEWS: Document them.
2841 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
2842 the exception is gdb.GdbError. Print a second traceback if there's
2843 an error computing the error message.
2844 (gdbpy_string_to_argv): New function.
2845 * python/py-utils.c (gdbpy_obj_to_string): New function.
2846 (gdbpy_exception_to_string): New function.
2847 * python/python-internal.h (gdbpy_string_to_argv): Declare.
2848 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
2849 (gdbpy_gdberror_exc): Declare.
2850 * python/python.c (gdbpy_gdberror_exc): New global.
2851 (_initialize_python): Initialize gdbpy_gdberror_exc and create
2852 gdb.GdbError.
2853 (GdbMethods): Add string_to_argv.
2854
5572ce1f
PM
28552010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2856
2857 * windows-nat.c (display_selector): Call GetLastError to give better
2858 failure explanation.
2859
acd5838a
PA
28602010-05-24 Pedro Alves <pedro@codesourcery.com>
2861
2862 * config.in: Regenerate.
2863
b26a4dcb
JK
28642010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2865
2866 Code cleanup.
2867 * target.c (push_target): Return only void. Remove the return value
2868 comment.
2869 * target.h (push_target): Return only void.
2870
f434ba03
PA
28712010-05-23 Pedro Alves <pedro@codesourcery.com>
2872
2873 Update gnulib from latest git.
2874 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2875
2876 * gnulib/memcmp.c: Removed.
2877 * gnulib/memchr.valgrind: New.
2878 * gnulib/stddef.in.h: New.
2879 * gnulib/Makefile.am: Updated.
2880 * gnulib/memchr.c: Updated.
2881 * gnulib/memmem.c: Updated.
2882 * gnulib/stdint.in.h: Updated.
2883 * gnulib/str-two-way.h: Updated.
2884 * gnulib/string.in.h: Updated.
2885 * gnulib/wchar.in.h: Updated.
2886
2887 * gnulib/extra/link-warning.h: Removed.
2888 * gnulib/extra/c++defs.h: New.
2889 * gnulib/extra/warn-on-use.h: New.
2890 * gnulib/extra/arg-nonnull.h: Updated.
2891
2892 * gnulib/m4/extensions.m4: Updated.
2893 * gnulib/m4/gnulib-cache.m4: Updated.
2894 * gnulib/m4/gnulib-common.m4: Updated.
2895 * gnulib/m4/gnulib-comp.m4: Updated.
2896 * gnulib/m4/gnulib-tool.m4: Updated.
2897 * gnulib/m4/include_next.m4: Updated.
2898 * gnulib/m4/longlong.m4: Updated.
2899 * gnulib/m4/memchr.m4: Updated.
2900 * gnulib/m4/memmem.m4: Updated.
2901 * gnulib/m4/stdint.m4: Updated.
2902 * gnulib/m4/string_h.m4: Updated.
2903 * gnulib/m4/memcmp.m4: Removed.
2904 * gnulib/m4/onceonly_2_57.m4: Removed.
2905 * gnulib/m4/00gnulib.m4: New.
2906 * gnulib/m4/mmap-anon.m4: New.
2907 * gnulib/m4/multiarch.m4: New.
2908 * gnulib/m4/onceonly.m4: New.
2909 * gnulib/m4/stddef_h.m4: New.
2910 * gnulib/m4/warn-on-use.m4: New.
2911 * gnulib/m4/wchar.m4: Removed.
2912 * gnulib/m4/wchar_h.m4: New.
2913 * gnulib/m4/wchar_t.m4: New.
2914 * gnulib/m4/wint_t.m4: New.
2915
2916 * aclocal.m4: Regenerate.
2917 * config.in: Likewise.
2918 * configure: Likewise.
2919 * gnulib/Makefile.in: Likewise.
2920
d3b1e874
TT
29212010-05-21 Tom Tromey <tromey@redhat.com>
2922
2923 * dwarf2loc.c (extract_bits_primitive): New function.
2924 (extract_bits): Likewise.
2925 (insert_bits): Likewise.
2926 (copy_bitwise): Likewise.
2927 (read_pieced_value): Do all operations in bits.
2928 (write_pieced_value): Likewise.
2929 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
2930 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
2931 Always use xrealloc to resize piece array.
2932 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
2933 <DW_OP_piece>: Update.
2934 <DW_OP_bit_piece>: New case.
2935
cb826367
TT
29362010-05-21 Tom Tromey <tromey@redhat.com>
2937
2938 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
2939 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
2940 * dwarf2expr.h (enum dwarf_value_location)
2941 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
2942 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
2943 (add_piece): Handle empty piece.
2944 (execute_stack_op) <DW_OP_piece>: Handle
2945 DWARF_VALUE_OPTIMIZED_OUT.
2946
74de6778
TT
29472010-05-21 Tom Tromey <tromey@redhat.com>
2948
2949 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
2950 evaluate_subexp, not evaluate_subexp_with_coercion.
2951
f346a30d
PM
29522010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2953
2954 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
2955 attribute.
2956
afd74c5f
TT
29572010-05-21 Tom Tromey <tromey@redhat.com>
2958
2959 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
2960 offset.
2961 (write_pieced_value): Likewise.
2962
90e7c2c5
PM
29632010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2964
2965 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2966 and DW_TAG_volatile_type.
2967 (new_symbol): Likewise.
2968
8148cf8d
PM
29692010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
2970
2971 * p-valprint.c (pascal_val_print): Call get_array_bounds
2972 to obtain the number of elements in an array.
2973
3a1d4620
DE
29742010-05-19 Doug Evans <dje@google.com>
2975
0bf0f8c4
DE
2976 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
2977
3a1d4620
DE
2978 * python.c (source_python_script): Add comment.
2979 (source_python_script_for_objfile): Remove unnecessary call to
2980 gdbpy_print_stack.
2981
dc21167c
JK
29822010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2983 Sergio Durigan Junior <sergiodj@redhat.com>
2984
2985 Code cleanup.
2986 * parse.c (exp_iterate): Use operator_length wrapper function.
2987
5b4ee69b
MS
29882010-05-18 Michael Snyder <msnyder@vmware.com>
2989
2990 * ada-lang.c: White space.
2991 * ada-typeprint.c: White space.
2992 * ada-valprint.c: White space.
2993 * addrmap.c: White space.
2994 * auxv.c: White space.
2995 * ax-gdb.c: White space.
2996
e17c9e56
HZ
29972010-05-18 Hui Zhu <teawater@gmail.com>
2998
2999 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
3000 for oldfp.
3001 (inferior_call_waitpid): Move make_cleanup out of check.
3002 Check the return of waitpid.
3003 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
3004
a109c7c1
MS
30052010-05-17 Michael Snyder <msnyder@vmware.com>
3006
1c5313c5
MS
3007 * tui/tui.c: White space.
3008 * tui/tui-data.c: White space.
3009 * tui/tui-disasm.c: White space.
3010 * tui/tui-file.c: White space.
3011 * tui/tui-interp.c: White space.
3012 * tui/tui-main.c: White space.
3013 * tui/tui-out.c: White space.
3014 * tui/tui-regs.c: White space.
3015 * tui/tui-source.c: White space.
3016 * tui/tui-stack.c: White space.
3017 * tui/tui-win.c: White space.
3018 * tui/tui-winsource.c: White space.
3019
f4a14ae6
MS
3020 * procfs.c: White space.
3021
d59b6f6c
MS
3022 * python/py-auto-load.c: White space.
3023 * python/py-block.c: White space.
3024 * python/py-breakpoint.c: White space.
3025 * python/py-cmd.c: White space.
3026 * python/py-function.c: White space.
3027 * python/py-lazy-string.c: White space.
3028 * python/py-objfile.c: White space.
3029 * python/py-param.c: White space.
3030 * python/py-prettyprint.c: White space.
3031 * python/py-progspace.c: White space.
3032 * python/py-symtab.c: White space.
3033 * python/python.c: White space.
3034 * python/py-type.c: White space.
3035 * python/py-utils.c: White space.
3036 * python/py-value.c: White space.
3037
102040f0
MS
3038 * mi/mi-cmd-break.c: White space.
3039 * mi/mi-cmd-env.c: White space.
3040 * mi/mi-cmds.c: White space.
3041 * mi/mi-cmd-stack.c: White space.
3042 * mi/mi-cmd-var.c: White space.
3043 * mi/mi-console.c: White space.
3044 * mi/mi-getopt.c: White space.
3045 * mi/mi-interp.c: White space.
3046 * mi/mi-main.c: White space.
3047 * mi/mi-out.c: White space.
3048 * mi/mi-parse.c: White space.
3049
cdb27c12
MS
3050 * cli/cli-cmds.c: White space.
3051 * cli/cli-decode.c: White space.
3052 * cli/cli-dump.c: White space.
3053 * cli/cli-interp.c: White space.
3054 * cli/cli-logging.c: White space.
3055 * cli/cli-script.c: White space.
3056 * cli/cli-setshow.c: White space.
3057
a109c7c1
MS
3058 * valarith.c: White space.
3059 * valops.c: White space.
3060 * valprint.c: White space.
3061 * value.c: White space.
3062 * varobj.c: White space.
3063 * xcoffread.c: White space.
3064 * xml-support.c: White space.
3065 * xml-tdesc.c: White space.
3066
3872d37d
AS
30672010-05-17 Andreas Schwab <schwab@redhat.com>
3068
3069 PR gdb/11092
3070 * c-lang.c (c_printstr): Compute real length of NUL terminated
3071 string at first.
3072
0cce5bd9
JB
30732010-05-17 Joel Brobecker <brobecker@adacore.com>
3074
3075 * parse.c (parse_exp_in_context): When block is not NULL, use
3076 its associated language to parse the expression instead of
3077 the current_language.
3078
5f19d646
JB
30792010-05-17 Joel Brobecker <brobecker@adacore.com>
3080
3081 * jv-lang.c (java_lookup_class): Remove commented out code.
3082 (type_from_class): Likewise.
3083 (java_op_print_tab): Remove commented-out elements.
3084
28c85d6c
JB
30852010-05-17 Joel Brobecker <brobecker@adacore.com>
3086
3087 * ada-lang.c (to_fixed_range_type): The the raw index type as
3088 argument instead of the raw type name. Remove orig_type parameter.
3089 Update calls throughout.
3090 (ada_fixup_array_indexes_type): New function.
3091 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
3092 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
3093 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
3094 Remove name parameter.
3095 (print_array_type): Add call to ada_fixup_array_indexes_type.
3096 Update calls to print_range_type.
3097 (ada_print_type): Update calls to print_range_type.
3098
d09039dd
PM
30992010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3100
3101 * dwarf2read.c (read_set_type): Set type length if
3102 DW_AT_byte_size attribute is present.
3103
7a081a30
PM
31042010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
3105
3106 * p-valprint.c (pascal_val_print): Handle set type if range limits
3107 are undefined but size is known.
3108
77382aee
PA
31092010-05-17 Pedro Alves <pedro@codesourcery.com>
3110
3111 * procfs.c: Reformat.
3112
433759f7
MS
31132010-05-16 Michael Snyder <msnyder@vmware.com>
3114
5d502164
MS
3115 * target.c: White space.
3116 * target-descriptions.c: White space.
3117 * target-memory.c: White space.
3118 * thread.c: White space.
3119 * top.c: White space.
3120 * tracepoint.c: White space.
3121 * trad-frame.c: White space.
3122 * tramp-frame.c: White space.
3123 * ui-file.c: White space.
3124 * ui-out.c: White space.
3125 * user-regs.c: White space.
3126 * utils.c: White space.
3127
433759f7
MS
3128 * scm-exp.c: White space.
3129 * scm-lang.c: White space.
3130 * scm-valprint.c: White space.
3131 * sentinel-frame.c: White space.
3132 * ser-base.c: White space.
3133 * ser-go32.c: White space.
3134 * serial.c: White space.
3135 * ser-mingw.c: White space.
3136 * ser-pipe.c: White space.
3137 * ser-tcp.c: White space.
3138 * ser-unix.c: White space.
3139 * solib.c: White space.
3140 * solib-darwin.c: White space.
3141 * solib-frv.c: White space.
3142 * solib-irix.c: White space.
3143 * solib-osf.c: White space.
3144 * solib-pa64.c: White space.
3145 * solib-som.c: White space.
3146 * solib-spu.c: White space.
3147 * solib-svr4.c: White space.
3148 * solib-target.c: White space.
3149 * source.c: White space.
3150 * stabsread.c: White space.
3151 * stack.c: White space.
3152 * std-regs.c: White space.
3153 * symfile.c: White space.
3154 * symmisc.c: White space.
3155 * symtab.c: White space.
3156
dd304d53
MS
31572010-05-16 Michael Snyder <msnyder@vmware.com>
3158
3159 * source.c (_initialize_source): Add "rev" as an abbreviation
3160 for the "reverse-search" command.
3161
a744cf53
MS
31622010-05-16 Michael Snyder <msnyder@vmware.com>
3163
123f5f96
MS
3164 * record.c: White space.
3165 * regcache.c: White space.
3166 * reggroups.c: White space.
3167 * remote-fileio.c: White space.
3168 * remote-m32r-sdi.c: White space.
3169 * remote-mips.c: White space.
3170 * remote-sim.c: White space.
a744cf53
MS
3171 * remote.c: White space.
3172 (process_g_packet): Remove orphan braces.
3173
b8d56208
MS
31742010-05-15 Michael Snyder <msnyder@vmware.com>
3175
ad3bbd48
MS
3176 * parse.c: White space.
3177 * p-lang.c: White space.
3178 * posix-hdep.c: White space.
3179 * printcmd.c: White space.
3180 * progspace.c: White space.
3181 * prologue-value.c: White space.
3182 * psymtab.c: White space.
3183 * p-typeprint.c: White space.
3184 * p-valprint.c: White space.
3185
5cc80db3
MS
3186 * objc-lang.c: White space.
3187 * objfiles.c: White space.
3188 * observer.c: White space.
3189 * osabi.c: White space.
3190 * osdata.c: White space.
3191
b8d56208
MS
3192 * m2-lang.c: White space.
3193 * m2-valprint.c: White space.
3194 * macrocmd.c: White space.
3195 * macroexp.c: White space.
3196 * macroscope.c: White space.
3197 * macrotab.c: White space.
3198 * main.c: White space.
3199 * maint.c: White space.
3200 * mdebugread.c: White space.
3201 * memattr.c: White space.
3202 * minsyms.c: White space.
3203 * monitor.c: White space.
3204
9a619af0
MS
32052010-05-14 Michael Snyder <msnyder@vmware.com>
3206
e0881a8e
MS
3207 * jv-lang.c: White space.
3208 * jv-typeprint.c: White space.
3209 * jv-valprint.c: White space.
3210 * language.c: White space.
3211 * libunwind-frame.c: White space.
3212 * linespec.c: White space.
3213 * linux-nat.c: White space.
3214 * linux-record.c: White space.
3215 * linux-thread-db.c: White space.
3216
abbb1732
MS
3217 * infcall.c: White space.
3218 * inf-child.c: White space.
3219 * infcmd.c: White space.
3220 * inferior.c: White space.
3221 * inf-loop.c: White space.
3222 * inflow.c: White space.
3223 * inline-frame.c: White space.
3224 * interps.c: White space.
3225
d8734c88
MS
3226 * gcore.c: White space.
3227 * gdb.c: White space.
3228 * gdbtypes.c: White space.
3229 * gnu-nat.c: White space.
3230 * gnu-v2-abi.c: White space.
3231 * gnu-v3-abi.c: White space.
3232
bb9bcb69
MS
3233 * findcmd.c: White space.
3234 * findvar.c: White space.
3235 * fork-child.c: White space.
3236 * frame-base.c: White space.
3237 * frame.c: White space.
3238 * frame-unwind.c: White space.
3239 * f-valprint.c: White space.
3240
d7f9d729
MS
3241 * elfread.c: White space.
3242 * environ.c: White space.
3243 * eval.c: White space.
3244 * event-loop.c: White space.
3245 * event-top.c: White space.
3246 * exceptions.c: White space.
3247 * exec.c: White space.
3248 * expprint.c: White space.
3249
9a619af0
MS
3250 * dbxread.c: White space.
3251 * dcache.c: White space.
3252 * disasm.c: White space.
3253 * doublest.c: White space.
3254 * dsrec.c: White space.
3255 * dummy-frame.c: White space.
3256 * dwarf2expr.c: White space.
3257 * dwarf2-frame.c: White space.
3258 * dwarf2loc.c: White space.
3259 * dwarf2read.c: White space.
3260
88d4aea7
PM
32612010-05-14 Phil Muldoon <pmuldoon@redhat.com>
3262
3263 PR python/11482
3264
3265 * python/py-value.c (valpy_hash): New function.
3266 (value_object_type): Register valpy_hash.
3267
7a298875 32682010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 3269 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
3270
3271 * linux-fork.c (gdbthread.h): New include.
3272 (fork_info): Add parent_ptid.
3273 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
3274 functions.
3275 (delete_checkpoint_command): Call inferior_call_waitpid.
3276 (checkpoint_command): Set parent_ptid.
3277
c14feecc
MS
32782010-05-13 Michael Snyder <msnyder@vmware.com>
3279
6595d32b
MS
3280 * dictionary.c: Re-indent to GNU coding standard.
3281
c5504eaf
MS
3282 * charset.c: White space.
3283 * c-lang.c: White space.
3284 * cli-out.c: White space.
3285 * coffread.c: White space.
3286 * complaints.c: White space.
3287 * completer.c: White space.
3288 * corefile.c: White space.
3289 * corelow.c: White space.
3290 * cp-abi.c: White space.
3291 * cp-namespace.c: White space.
3292 * cp-support.c: White space.
3293 * cp-valprint.c: White space.
3294 * c-typeprint.c: White space.
3295 * c-valprint.c: White space.
cc59ec59
MS
3296 * blockframe.c: White space.
3297 * breakpoint.c: White space.
3298 * buildsym.c: White space.
3299 * blockframe.c: White space.
b6de9da4 3300 * bcache.c: White space.
05c547f6
MS
3301 * gdbarch.sh: White space, add blank lines.
3302 * arch-utils.c: Ditto.
3303 * gdbarch.c: Regenerate.
1c4d3f96 3304 * frame.c: White space, add blank lines.
f89b749f
MS
3305 * stack.c: White space, add blank lines.
3306 (initialize_stack): Remove long-dead code.
c14feecc 3307
a2d33775
JK
33082010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3309
3310 Code cleanup.
3311 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
3312 (locexpr_read_variable, loclist_read_variable): Update the callers.
3313
33ac96f0
JK
33142010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 Code cleanup.
3317 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
3318 Remove check of NULL returned by tag_type_to_type.
3319 (die_containing_type): Remove variable type. Remove type_die variable
3320 initialization. Remove check of NULL returned by tag_type_to_type.
3321
f5a010c0
PM
33222010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3323
3324 PR exp/11530.
3325 * gdbtypes.c (lookup_struct_elt_type): Also lookup
3326 names of unnamed structures or unions.
3327
bf701c2c
PM
33282010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
3329
3330 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 3331 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
3332 find_procinfo_or_die call.
3333 (procfs_stopped_data_address): New function.
3334 (procfs_use_watchpoints): Register new watchpoint related function.
3335
d02691ef
TT
33362010-05-11 Tom Tromey <tromey@redhat.com>
3337
3338 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
3339
e0627e85
MS
33402010-05-10 Michael Snyder <msnyder@vmware.com>
3341
3342 * utils.c: White space cleanup.
3343
cc73bb8c
TT
33442010-05-10 Tom Tromey <tromey@redhat.com>
3345
3346 * eval.c (ptrmath_type_p): Add 'lang' argument.
3347 (evaluate_subexp_standard): Update.
3348 (evaluate_subexp_with_coercion): Update.
3349 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
3350
c02866a0
MS
33512010-05-10 Michael Snyder <msnyder@vmware.com>
3352
3353 * utils.c (do_fclose_cleanup) Restore local variable.
3354
06280d23
DE
33552010-05-09 Doug Evans <dje@google.com>
3356
3357 * record.c (init_record_core_ops): Rename record_core to record-core.
3358
fa07e785
JB
33592010-05-08 Joel Brobecker <brobecker@adacore.com>
3360
3361 Implement task switching on pa-hpux.
3362 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
3363 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
3364
4c680d1d
PM
33652010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3366
3367 * valops.c (find_overload_match): Add missing i18n markup.
3368
28e176a6
PM
33692010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
3370
3371 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
3372
48cb83fd
JK
33732010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3374
3375 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
3376 list for the obconcat call.
3377 * mdebugread.c (parse_symbol): Likewise.
3378 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
3379 Likewise.
3380 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
3381 New variable ap. Remove variables len and val.
3382 * symfile.h (obconcat): Likewise for the prototype.
3383
f92adf3c
MS
33842010-05-07 Michael Snyder <msnyder@vmware.com>
3385
3386 * python/python.c (execute_gdb_command): Remove unused variables.
3387 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 3388 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
3389 Remove unused variable.
3390 * python/py-cmd.c (cmdpy_function): Remove unused variable.
3391 (cmdpy_completer): Remove unused variable.
3392 * python/py-frame.c (frapy_find_sal): Remove unused variable.
3393 * python/py-function.c (fnpy_call): Remove unused variable.
3394 * python/py-objfile.c (objfile_to_objfile_object):
3395 Remove unused variable.
3396 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 3397 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
3398 Remove unused variable.
3399 (gdbpy_default_visualizer): Remove unused variable.
3400 * python/py-progspace.c (pspace_to_pspace_object):
3401 Remove unused variable.
0407b3f1 3402 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 3403 Remove unused variable.
0407b3f1 3404 * python/py-type.c (typy_template_argument):
f92adf3c
MS
3405 Remove unused variable.
3406 * python/py-value.c (valpy_string): Remove unused variable.
3407 (convert_value_from_python): Remove unused variables.
3408
d160942f
MS
34092010-05-07 Michael Snyder <msnyder@vmware.com>
3410
3411 * valops.c (value_cast_pointers): Restore unused variable 'type1',
3412 and use it to compute variable 't1'.
3413
587542ab
JB
34142010-05-07 Joel Brobecker <brobecker@adacore.com>
3415
3416 * ada-lang.c (assign_aggregate): Remove unused variable.
3417
7322dca9
SW
34182010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
3419
3420 PR C++/7943:
3421 * valops.c (find_overload_match): Handle fsym == NULL case.
3422 Add int no_adl argument.
3423 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
3424 when appropriate.
3425 Add int no_adl argument.
3426 (find_oload_champ_namespace): Add int no_adl argument.
3427 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
3428 expression.
3429 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
3430 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
3431 Evaluate arguments and use them to perform ADL lookup.
3432 Pass no_adl argument to find_overload_match.
3433 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
3434 * cp-support.h: Added prototype for
3435 make_symbol_overload_list_namespace.
3436 * cp-support.c (make_symbol_overload_list_namespace): New function.
3437 (make_symbol_overload_list_adl_namespace): New function.
3438 (make_symbol_overload_list_adl): New function.
3439 (make_symbol_overload_list_using): Moved code to add function to
3440 overload set to make_symbol_overload_list_namespace.
3441 * c-exp.y: create UNKNOWN_CPP_NAME token.
3442 Add parse rule for ADL functions.
3443 (classify_name): Recognize an UNKNOWN_CPP_NAME.
3444
3f1f6884
JK
34452010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3446
3447 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
3448 sentinel.
3449
3caf13b4
JB
34502010-05-07 Joel Brobecker <brobecker@adacore.com>
3451
3452 Implement task switching on solaris targets.
3453 * sol-thread.c (thread_db_find_thread_from_tid)
3454 (sol_get_ada_task_ptid): New functions.
3455 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
3456
94b0dee1
PA
34572010-05-07 Pedro Alves <pedro@codesourcery.com>
3458
3459 * remote.c (remote_query_supported_append): Use reconcat.
3460 (remote_query_supported): Install a cleanup. Use reconcat.
3461
1408c251
PA
34622010-05-07 Pedro Alves <pedro@codesourcery.com>
3463
3464 * gdbarch.sh (qsupported): Delete.
3465 * gdbarch.h, gdbarch.c: Regenerate.
3466 * remote.c (remote_query_supported): Remove use of
3467 gdbarch_qsupported.
3468
f8e50cfe
SDJ
34692010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
3470
3471 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
3472 function.
3473
8ea13695
MS
34742010-05-06 Michael Snyder <msnyder@vmware.com>
3475
c6913b7d
MS
3476 * xml-support.c (xinclude_start_include): Delete unused variable.
3477 (xml_process_xincludes): Delete unused variable.
3478 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
3479 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
3480 (tdesc_find_arch_register): Delete unused variable.
3481 (tdesc_use_registers): Delete unused variable.
3482 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
3483 * inferior.c (print_inferior): Delete unused variable.
3484 * record.c (record_open_1): Delete unused variable.
3485 (record_restore): Delete unused variable.
3486 (cmd_record_save): Delete unused variable.
3487 * gcore.c (derive_heap_segment): Delete unused variable.
3488 (objfile_find_memory_regions): Use unused variable.
3489 * jit.c (jit_inferior_init): Delete unused variable.
3490 * progspace.c (clone_program_space): Delete unused variable.
3491 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
3492
3493 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
3494 Delete unused variable.
3495 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
3496 * cp-support.c (mangled_name_to_comp): Delete unused variable.
3497 (method_name_from_physname): Delete unused variable.
3498 (cp_func_name): Delete unused variable.
3499 (cp_validate_operator): Delete unused variable.
0407b3f1 3500 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 3501 Delete unused variable.
0407b3f1 3502 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
3503 Delete unused variable.
3504 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
3505
1be757cf
MS
3506 * serial.c (serial_for_fd): Delete unused variable.
3507 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
3508 * top.c (execute_command): Delete unused variable.
3509 (init_main): Delete unused variable.
3510 * utils.c (do_fclose_cleanup): Delete unused variable.
3511 (do_all_inferior_continuations): Delete unused variable.
3512 (initialize_utils): Delete unused variable.
3513 (internal_problem_mode): Delete unused global.
3514 * frame.c (get_prev_frame): Delete unused global.
3515 (get_frame_locals_address): Delete unused global.
3516 (get_frame_args_address): Delete unused global.
3517
9216103f
MS
3518 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
3519 (pascal_type_print_varspec_prefix): Delete unused variable.
3520 * f-typeprint.c (f_type_print_base): Delete unused variable.
3521 (f_type_print_varspec_suffix): Delete unused variable.
3522 * m2-typeprint.c (m2_print_type): Delete unused variable.
3523 (m2_long_set): Delete unused variable.
3524 * ada-valprint.c (ada_val_print_1): Delete unused variable.
3525 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 3526 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
3527 Delete unused variable.
3528 (f77_create_arrayprint_offset_tbl): Delete unused variable.
3529 * m2-valprint.c (m2_val_print): Delete unused variable.
3530
34fa1d9d
MS
3531 * ui-out.c (ui_out_field_int): Delete unused variable.
3532 (ui_out_field_fmt_int): Delete unused variable.
3533 * varobj.c (varobj_list_children): Delete unused variable.
3534 (varobj_set_value): Delete unused variable.
3535 (install_new_value_visualizer): Delete unused variable.
3536 (varobj_set_visualizer): Delete unused variable.
3537 (varobj_update): Delete unused variable.
3538 (varobj_editable_p): Delete unused variable.
3539 (c_value_of_root): Delete unused variable.
3540 (cplus_describe_child): Delete unused variable.
3541
b5385fc0
MS
3542 * ada-lang.c (add_defn_to_vec): Delete unused variable.
3543 (decode_constrained_packed_array_type): Delete unused variable.
3544 (add_defn_to_vec): Delete unused variable.
3545 (symbol_completion_match): Delete unused variable.
3546 (value_tag_from_contents_and_address): Delete unused variable.
3547 (ada_evaluate_subexp): Delete unused variable.
3548 * c-lang.c (classify_type): Delete unused variable.
3549 * f-lang.c (f_printstr): Delete unused variable.
3550 * objc-lang.c (objc_printstr): Delete unused variable.
3551 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
3552 * jv-lang.c (type_from_class): ifdef unused variable.
3553 (java_class_name_from_physname): Delete unused variable.
3554 * m2-lang.c (m2_printstr): Delete unused variable.
3555
4fc06681
MS
3556 * objfiles.c (objfile_relocate): Delete unused variable.
3557 * maint.c (_initialize_maint_cmds): Delete unused variable.
3558 * demangle.c (_initialize_demangler): Delete unused variable.
3559 * corefile.c (reopen_exec_file): Delete unused variable.
3560 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
3561 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
3562
6b4398f7
MS
3563 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
3564 * memattr.c (mem_delete): Delete unused variable.
3565 (invalidate_target_mem_regions): Delete unused variable.
3566 * mem-break.c (default_memory_insert_breakpoint):
3567 Delete unused variable.
3568 * target.c (target_get_osdata): Delete unused variable.
3569 * parse.c (length_of_subexp): Delete unused variable.
3570 (prefixify_subexp): Delete unused variable.
3571 (exp_iterate): Delete unused variable.
3572 * reverse.c (delete_bookmark_command): Delete unused variable.
3573
308d96ed
MS
3574 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
3575 * macroexp.c (gather_arguments): Delete unused variable.
3576 (substitute_args): Delete unused variable.
3577 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
3578 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
3579 (_initialize_gdbarch): Delete unused variable.
3580 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 3581 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
3582 Delete unused variable.
3583 (_initialize_gdbarch_utils): Delete unused variable.
3584 * gdbtypes.c (make_cv_type): Delete unused variable.
3585 (make_type_with_address_space): Delete unused variable.
3586
167e4384
MS
3587 * linespec.c (decode_compound): Delete unused variable.
3588 * dictionary.c (iterator_next_hashed): Delete unused variable.
3589 * infcall.c (call_function_by_hand): Delete unused variable.
3590 * infcmd.c (step_1): Delete unused variable.
3591 (registers_info): Delete unused variable.
3592 (attach_command): Delete unused variable.
3593 * infrun.c (follow_exec): Delete unused variable.
3594 (handle_step_into_function_backwards): Delete unused variable.
3595 (_initialize_infrun): Delete unused variable.
3596 * stack.c (parse_frame_specification_1): Delete unused variable.
3597 (frame_info): Delete unused variable.
3598 (backtrace_command_1): Delete unused variable.
3599 (catch_info): Delete unused variable.
3600
8f78b329
MS
3601 * eval.c (evaluate_subexp_standard): Delete unused variable.
3602 * valops.c (value_cast_pointers): Delete unused variable.
3603 (value_dynamic_cast): Delete unused variable.
3604 (value_array): Delete unused variable.
3605 (find_overload_match): Delete unused variable.
3606 * valarith.c (value_subscript): Delete unused variable.
3607 (value_binop): Delete unused variable.
3608 * valprint.c (_initialize_valprint): Delete unused variable.
3609 * printcmd.c (print_command_1): Delete unused variable.
3610 (address_info): Delete unused variable.
3611 (printf_command): Delete unused variable.
3612
8ea13695
MS
3613 * auxv.c (target_auxv_search): Delete unused variable.
3614 * blockframe.c (get_frame_block): Delete unused variable.
3615 * regcache.c (regcache_cpy): Delete unused variable.
3616 (regcache_cpy_no_passthrough): Delete unused variable.
3617 * charset.c (wchar_iterate): Delete unused variable.
3618 (find_charset_names): Delete unused variable.
3619 (_initialize_charset): Delete unused variable.
0407b3f1 3620 * disasm.c (do_mixed_source_and_assembly):
8ea13695 3621 Delete unused variable.
0407b3f1 3622 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
3623 Delete unused variable.
3624 (set_substitute_path_command): Delete unused variable.
3625 * value.c (preserve_values): Delete unused variable.
3626 (value_from_double): Delete unused variable.
3627
afe38095
MS
36282010-05-05 Michael Snyder <msnyder@vmware.com>
3629
952a6d41
MS
3630 * psymtab.c (lookup_partial_symbol): Delete unused variable.
3631 (find_last_source_symtab_from_partial): Delete unused variable.
3632 * symfile.c (place_section): Delete unused variable.
3633 (default_symfile_offsets): Delete unused variable.
3634 (get_debug_link_info): Delete unused variable.
3635 (find_separate_debug_file_by_debuglink): Delete unused variable.
3636 (add_symbol_file_command): Delete unused variable.
3637 (symfile_find_segment_sections): Delete unused variable.
3638 * symmisc.c (free_symtab): Delete unused variable.
3639 (dump_symtab_1): Delete unused variable.
3640 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
3641 (find_pc_sect_symtab): Delete unused variable.
3642 (skip_prologue_using_lineinfo): Delete unused variable.
3643 (sources_info): Delete unused variable.
3644 (completion_list_add_name): Delete unused variable.
3645 (expand_line_sal): Delete unused variable.
3646
0407b3f1 3647 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
3648 Delete unused variables.
3649 (insert_catchpoint): Delete unused variable.
3650 (update_watchpoint): Delete unused variable.
3651 (insert_bp_location): Delete unused variable.
3652 (insert_breakpoint_locations): Delete unused variable.
3653 (remove_breakpoint_1): Delete unused variable.
3654 (software_breakpoint_inserted_here_p): Delete unused variable.
3655 (watchpoints_triggered): Delete unused variable.
3656 (bpstat_check_watchpoint): Delete unused variable.
3657 (bpstat_stop_status): Delete unused variable.
3658 (print_one_breakpoint_location): Delete unused variable.
3659 (allocate_bp_location): Delete unused variable.
3660 (create_breakpoint): Delete unused variable.
3661 (watch_command_1): Delete unused variable.
3662 (catch_exception_command_1): Delete unused variable.
3663 (catch_ada_exception_command): Delete unused variable.
3664 (delete_breakpoint): Delete unused variable.
3665 (breakpoint_re_set_one): Delete unused variable.
3666 (do_enable_breakpoint): Delete unused variable.
3667
eda5a4d7
PA
36682010-05-06 Pedro Alves <pedro@codesourcery.com>
3669
3670 * amd64-tdep.c: Include disasm.h.
3671 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
3672 (amd64_insn_length): Moved to disasm.c and renamed.
3673 (fixup_riprel): Adjust.
3674 * disasm.c (do_ui_file_delete): New.
3675 (gdb_insn_length): New.
3676 (gdb_buffered_insn_length_fprintf)
3677 (gdb_buffered_insn_length_init_dis)
3678 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
3679 renamed.
3680 * disasm.h (gdb_insn_length): Declare.
3681 (gdb_buffered_insn_length): Declare.
3682
02357a4a
PA
36832010-05-06 Pedro Alves <pedro@codesourcery.com>
3684
3685 * remote.c (clear_threads_parsing_context): New.
3686 (remote_threads_info): Delete unused null_cleanup. Install a
3687 cleanup to clear the threads_parsing_context in case parsing
3688 throws.
3689
8c5630cb
MS
36902010-05-05 Michael Snyder <msnyder@vmware.com>
3691
3692 * c-exp.y (parse_string_or_char): Delete unused variable.
3693 (c_lex): Delete unused variable.
3694 * cp-name-parser.y (cpname_lex): Delete unused variable.
3695 * ada-exp.y (find_primitive_type): Delete unused variable.
3696 (write_var_or_type): Delete unused variable.
3697 * jv-exp.y (java_parse): Delete unused variable.
3698 (push_expression_name): Delete unused variable.
3699 * p-exp.y (pascal_lex): Delete unused variable.
3700
46c162d4
PA
37012010-05-05 Pedro Alves <pedro@codesourcery.com>
3702
3703 * remote.c (remote_threads_info): Really revert previous previous
3704 change.
3705
0043e6a5
MS
37062010-05-05 Michael Snyder <msnyder@vmware.com>
3707
fa238c03
MS
3708 * elfread.c (elf_symtab_read): Delete unused variable.
3709 (find_separate_debug_file_by_buildid): Delete unused variables.
3710 (elf_symfile_read): Delete unused variable.
3711
3712 * coffread.c (coff_symfile_read): Delete unused variables.
3713
3714 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
3715 (read_pe_exported_syms): Delete unused variable.
3716
3717 * stabsread.c (define_symbol): Delete unused variable.
3718
3719 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
3720 (process_psymtab_comp_unit): Delete unused variable.
3721 (dwarf2_build_psymtabs_hard): Delete unused variable.
3722 (load_partial_comp_unit): Delete unused variable.
3723 (create_all_comp_units): Delete unused variable.
3724 (scan_partial_symbols): Delete unused variable.
3725 (add_partial_symbol): Delete unused variable.
3726 (add_partial_namespace): Delete unused variable.
3727 (add_partial_enumeration): Delete unused variable.
3728 (load_full_comp_unit): Delete unused variable.
3729 (process_full_comp_unit): Delete unused variable.
3730 (read_file_scope): Delete unused variable.
3731 (read_type_unit_scope): Delete unused variable.
3732 (process_structure_scope): Delete unused variable.
3733 (process_enumeration_scope): Delete unused variable.
3734 (read_tag_ptr_to_member_type): Delete unused variable.
3735 (read_typedef): Delete unused variable.
3736 (read_partial_die): Delete unused variable.
3737 (decode_locdesc): Delete unused variable.
3738 (zeroed_partial_die): Delete unused global variable.
3739
0407b3f1 3740 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 3741 Delete unused variable.
0407b3f1 3742 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
3743 Delete unused variable.
3744 (tui_check_register_values): Delete unused variable.
3745 (tui_register_format): Delete unused variable.
3746 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 3747 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
3748 Delete unused variables.
3749 (tui_vertical_data_scroll): Delete unused variables.
3750
75721c66
MS
37512010-05-05 Michael Snyder <msnyder@vmware.com>
3752
c31a71f4
MS
3753 * remote.c (remote_threads_info): Revert questionable part of
3754 the previous change.
3755
37562010-05-05 Michael Snyder <msnyder@vmware.com>
3757
3758 * mi/mi-out.c (mi_table_begin): Delete unused variable.
3759 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
3760 (mi_cmd_var_list_children): Delete unused variable.
3761 (varobj_update_one): Delete unused variable.
3762 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 3763 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
3764 Delete unused variable.
3765 (mi_cmd_stack_list_variables): Delete unused variable.
3766 (list_args_or_locals): Delete unused variable.
0407b3f1 3767 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
3768 Delete unused variables.
3769 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 3770 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
3771 Delete unused variable.
3772 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
3773 (mi_cmd_interpreter_exec): Delete unused variable.
3774 (mi_on_normal_stop): Delete unused variable.
3775 * mi/mi-main.c (run_one_inferior): Delete unused variable.
3776 (print_one_inferior): Delete unused variables.
3777 (mi_execute_command): Delete unused variable.
3778 (mi_cmd_execute): Delete unused variable.
3779 (timestamp): Delete unused variable.
3780
3781 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 3782 (restore_binary_file): Delete unused variable.
c31a71f4
MS
3783 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
3784 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
3785 (recurse_read_control_structure): Delete unused variable.
3786 (script_from_file): Delete unused variable.
c31a71f4 3787 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
3788 (disassemble_command): Delete unused variable.
3789
3790 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 3791 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
3792 Delete unused variables.
3793 (encode_actions_1): Delete unused variables.
3794 (start_tracing): Delete unused variable.
3795 (trace_status_mi): Delete unused variable.
3796 (tfind_1): Delete unused variable.
3797 (trace_find_pc_command): Delete unused variable.
3798 (trace_find_line_command): Delete unused variables.
3799 (trace_find_range_command): Delete unused variables.
3800 (trace_find_outside_command): Delete unused variables.
3801 (parse_tracepoint_definition): Delete unused variables.
3802 (tfile_fetch_registers): Delete unused variable.
3803
9128a503
MS
3804 * dcache.c (dcache_init): Delete unused variable.
3805 (dcache_info): Delete unused variable.
3806
aa369b55 3807 * remote.c (remote_threads_info): Delete unused variable.
9128a503 3808 (process_stop_reply) :Delete unused variable.
aa369b55
MS
3809 (remote_get_trace_status): Delete unused variables.
3810
9e9547e4
MS
3811 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
3812 (thread_from_lwp): Delete unused variable.
3813 (enable_thread_event_reporting): Delete unused variable.
3814 (check_for_thread_db): Delete unused variables.
3815 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 3816
9e9547e4
MS
3817 * linux-fork.c (info_checkpoints_command): Delete unused variables.
3818 (checkpoint_command): Delete unused variable.
3819 (linux_fork_context): Delete unused variables.
3820
fa238c03 3821 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
3822 (linux_tracefork_child): Delete unused variable.
3823 (linux_child_follow_fork): Delete unused variable.
3824 (linux_nat_detach): Delete unused variable.
3825 (linux_handle_extended_wait): Delete unused variable.
3826 (linux_nat_has_pending_sigint): Delete unused variable.
3827 (linux_nat_find_memory_regions): Delete unused variable.
3828 (linux_nat_make_corefile_notes): Delete unused variables.
3829 (linux_nat_info_proc_cmd): Delete unused variable.
3830 (linux_proc_pending_signals): Delete unused variable.
3831 (linux_nat_stop_lwp): Delete unused variables.
3832 (_initialize_linux_nat): Delete unused variable.
3833
fa238c03 3834 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 3835
0407b3f1 3836 * linux-record.c (record_linux_system_call):
e0f069a3
MS
3837 Delete unused variables.
3838
789d24f0
MS
3839 * corelow.c (core_xfer_partial): Delete unused variables.
3840
1cd337a5 3841 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 3842 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
3843 conditionally-used variable declarations.
3844
b00e3f56
MS
3845 * solib.c (solib_find): Delete unused variable.
3846 (free_so_symbols): Delete unused variable.
3847 (info_sharedlibrary_command): Delete unused variable.
3848 (reload_shared_libraries_1): Delete unused variable.
3849 (_initialize_solib): Delete unused variable.
3850
90f62196
MS
3851 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
3852 (i386_collect_xstateregset): Delete unused variable.
3853 * i387-tdep.c (i387_print_float_info): Delete unused variable.
3854
75721c66
MS
3855 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
3856 Delete unused variable 'type'.
3857
af33db37
JB
38582010-05-05 Joel Brobecker <brobecker@adacore.com>
3859
90f62196 3860 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
3861 ada-lang.c: Remove comment mentioning these macros.
3862 * m2-exp.y: Delete commented out code.
af33db37 3863
0497f5b0
JB
38642010-05-05 Joel Brobecker <brobecker@adacore.com>
3865
3866 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
3867 for array types.
3868 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
3869
6e39997a
PM
38702010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
3871
3872 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 3873 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
3874 ATTRIBUTE_UNUSED.
3875 (cleanup_kernel_helper_return): Likewise.
3876 * arm-tdep.c (copy_unmodified): Likewise.
3877 (copy_preload): Likewise.
3878 (copy_copro_load_store): Likewise.
3879 (cleanup_branch): Likewise.
3880 (copy_b_bl_blx): Likewise.
3881 (copy_bx_blx_reg): Likewise.
3882 (copy_alu_imm): Likewise.
3883 (copy_alu_reg): Likewise.
3884 (copy_alu_shifted_reg): Likewise.
3885 (cleanup_load): Likewise.
3886 (cleanup_store): Likewise.
3887 (cleanup_block_load_pc): Likewise.
3888 (cleanup_svc): Likewise.
3889 (copy_undef): Likewise.
3890 (copy_unpred): Likewise.
3891 * remote.c (register_remote_support_xml): Likewise.
3892
1412f70b
HZ
38932010-05-05 Hui Zhu <teawater@gmail.com>
3894
3895 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
3896
c4f7c687
MK
38972010-05-04 Mark Kettenis <kettenis@gnu.org>
3898
3899 * remote.c (register_remote_support_xml)
3900 (remote_query_supported_append, remote_query_supported): Add cast
3901 to NULL used as sentinel.
3902 * tracepoint.c (tvariables_info_1): Likewise.
3903 * utils.c (add_internal_problem_command): Likewise.
3904
63b4f126
MGD
39052010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3906
3907 * dwarf2loc.c (read_pieced_value, write_pieced_value,
3908 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
3909 registers gracefully.
3910
2f1bdd26
MGD
39112010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3912
0407b3f1 3913 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
3914 specific parts.
3915
e1c34c5d
PM
39162010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
3917
3918 PR exp/11349.
3919 * printcmd.c (x_command): Only dereference once implicitly for
3920 TYPE_CODE_REF.
3921
ae462839
DE
39222010-05-03 Doug Evans <dje@google.com>
3923
3924 * event-loop.c (gdb_timer): Delete unused global.
3925 (create_timer): Update.
3926
1ac77ea1
JK
39272010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3928
3929 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
3930 CURRENT->DECLARATION case.
3931 * cp-support.h (struct using_direct): Provide extended comment.
3932
7c54a108
MK
39332010-05-03 Mark Kettenis <kettenis@gnu.org>
3934
3935 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
3936 HPPABSD_SIZEOF_GREGS.
3937 (HPPAOBSD_SIZEOF_FPREGS): New define.
3938 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
3939 (hppaobsd_supply_fpregset): New function.
3940 (hppaobsd_gregset): Renamed from hppabsd_gregset.
3941 (hppaobsd_fpregset): New variable.
3942 (hppaobsd_regset_from_core_section): Handle floating-point registers.
3943 (_initialize_hppabsd_tdep): Remove spurious blank line.
3944
278582cb
PM
39452010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
3946
3947 PR pascal/11349.
3948 * p-valprint.c (pascal_value_print): Always dereference a value with
3949 type code TYPE_CODE_REF.
0407b3f1 3950
f0223081
PA
39512010-05-03 Pedro Alves <pedro@codesourcery.com>
3952
3953 * remote.c (remote_notice_signals): New.
3954 (remote_start_remote): In non-stop mode, update the remote end on
3955 which signals it can silently pass.
3956 (init_remote_ops): Install remote_notice_signals.
3957
c25c4a8b
JK
39582010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3959
3960 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
3961 * command.h (error_no_arg): ... here. Remove NORETURN, change
3962 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3963 * defs.h (NORETURN, ATTR_NORETURN): Remove.
3964 (perror_with_name, verror, error, error_stream, vfatal, fatal)
3965 (internal_verror, internal_error, nomem): Remove NORETURN, change
3966 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3967 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
3968 (throw_vfatal, throw_error): Remove NORETURN.
3969 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
3970 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
3971 (throw_error, deprecated_throw_reason): Remove NORETURN, change
3972 ATTR_NORETURN to ATTRIBUTE_NORETURN.
3973 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
3974 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
3975 NORETURN.
3976 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
3977 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
3978 ATTRIBUTE_NORETURN.
3979 * target.c (tcomplain): Likewise.
3980 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
3981 ATTRIBUTE_NORETURN.
3982 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
3983 (internal_error, perror_with_name, nomem): Remove NORETURN.
3984 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
3985 ATTRIBUTE_NORETURN.
3986
a0b31db1
JK
39872010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3988
3989 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3990 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
3991 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
3992 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3993 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
3994 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
3995 * complaints.h (complaint, internal_complaint): Likewise.
3996 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
3997 (ATTR_FORMAT): Remove.
3998 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
3999 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
4000 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
4001 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
4002 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
4003 (internal_error, internal_vwarning, internal_warning, warning)
4004 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
4005 * disasm.c (fprintf_disasm): Likewise.
4006 * exceptions.c (throw_it): Likewise.
4007 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
4008 (throw_error): Likewise.
4009 * language.h (type_error, range_error): Likewise.
4010 * linespec.c (cplusplus_error): Likewise.
4011 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
4012 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
4013 * monitor.c (monitor_debug): Likewise.
4014 * parser-defs.h (parser_fprintf): Likewise.
4015 * serial.h (serial_printf): Likewise.
4016 * tui/tui-hooks.c (tui_query_hook): Likewise.
4017 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
4018 (uo_message): Likewise.
4019 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
4020 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
4021 Likewise.
4022 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
4023
02a45ac0
PA
40242010-05-02 Pedro Alves <pedro@codesourcery.com>
4025
4026 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
4027 (cli_table_header, cli_begin, cli_end, cli_field_int)
4028 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
4029 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
4030 Delete forward declarations.
4031 (cli_ui_out_impl): Move below the callbacks.
4032 (_initialize_cli_out): Delete.
4033
1915ef4f
PA
40342010-05-02 Pedro Alves <pedro@codesourcery.com>
4035
4036 * README: Use consistent `GDB' and `GDBserver' spellings.
4037
0dfb946f
JK
40382010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
4041
4d533103
PA
40422010-05-01 Pedro Alves <pedro@codesourcery.com>
4043
4044 * infrun.c (prepare_for_detach): In non-stop, context switch to
4045 the thread that got the event before handling the event.
4046
705b5767
TT
40472010-04-30 Tom Tromey <tromey@redhat.com>
4048
4049 * symtab.c (symbol_set_names): Fix typo.
4050
3c0ee1a4
PM
40512010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4052
4053 * python/py-param.c (parm_constants): Avoid ARI warning
4054 by adding ARI comment.
4055 (parmpy_init): Likewise.
4056
ea1fae46
PM
40572010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4058
4059 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
4060 and created type for re-use.
4061
c24d0242
PM
40622010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
4063
4064 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
4065
a26d8d11
DE
40662010-04-29 Doug Evans <dje@google.com>
4067
4068 * ser-base.h (reschedule): Delete prototype.
4069 * ser-base.c (reschedule): Make static.
4070
f8624c62
MGD
40712010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4072
4073 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
4074 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 4075 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 4076 EABI.
0407b3f1 4077 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
4078 use.
4079
e66408ed
PA
40802010-04-29 Pedro Alves <pedro@codesourcery.com>
4081
4082 PR gdb/11557
4083
4084 * regcache.c (registers_changed): Rename to ...
4085 (registers_changed_ptid): ... this, and only delete register cache
4086 entries matching the ptid filter argument.
4087 (registers_changed): Reimplement on top of registers_changed_ptid.
4088 * regcache.h (registers_changed_ptid): Declare.
4089 * target.c (target_resume): Flush register caches.
4090
d7b32ed3 40912010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
4092 Tom Tromey <tromey@redhat.com>
4093 Thiago Jung Bauermann <bauerman@br.ibm.com>
4094
4095 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
4096 (SUBDIR_PYTHON_SRCS): Likewise.
4097 (py-parameter.o): New rule.
4098 * python/py-parameter.c: New file.
4099 * python/python-internal.h (gdbpy_initialize_parameter)
4100 (gdbpy_parameter, gdbpy_parameter_value)
4101 (gdbpy_parse_command_name): Declare.
4102 * python/py-cmd.c (parse_command_name): Rename to
4103 gdbpy_parse_command_name.
4104 (gdbpy_parse_command_name): Accept a starting list parameter and
4105 use over cmdlist.
4106 (cmdpy_init): Use gdbpy_parse_command_name.
4107 * python/python.c (parameter_to_python): Rename to
4108 gdbpy_parameter_to_python. Accept enum var_types and value.
4109 (gdbpy_parameter): Use gdbpy_parameter_value.
4110 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 4111
ce72ce41
MGD
41122010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4113
4114 * MAINTAINERS: Add myself for write after approval privileges.
4115
6aecb9c2
JB
41162010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
4117
4118 D language support.
4119 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
4120 (COMMON_OBS): Add d-lang.o d-valprint.o.
4121 (HFILES_NO_SRCDIR): Add d-lang.h.
4122 * NEWS: Mention D language support.
4123 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
4124 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
4125 * d-lang.c: New file.
4126 * d-lang.h: New file.
4127 * d-valprint.c: New file.
4128 * defs.h (enum language): Add language_d.
4129 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
4130 * language.c (binop_result_type, integral_type, character_type)
4131 (string_type, boolean_type, structured_type): Add language_d.
4132 * symfile.c (init_filename_language_table): Add language_d.
4133 * symtab.c: Include d-lang.h.
4134 (symbol_init_language_specific, symbol_find_demangled_name)
4135 (symbol_natural_name, lookup_symbol_in_language)
4136 (symbol_demangled_name, symbol_matches_domain): Add language_d.
4137
6f992fbf
JB
41382010-04-27 Joel Brobecker <brobecker@adacore.com>
4139
4140 * solib-svr4.c (solib_svr4_r_map): Expand function description.
4141
dde59185
JB
41422010-04-27 Joel Brobecker <brobecker@adacore.com>
4143
4144 * symfile.c (init_filename_language_table): Register .dg files
4145 with language_ada.
4146
d09ce91e
JB
41472010-04-27 Joel Brobecker <brobecker@adacore.com>
4148
4149 * gdbtypes.h (struct main_type): Expand comment about target_type
4150 field.
4151
67f1675e
JB
41522010-04-27 Pedro Alves <pedro@codesourcery.com>
4153 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
4154
4155 * symfile.c (reread_symbols): Also search for file in libraries.
4156 Update comment.
4157
dfd0fe27
JB
41582010-04-27 Joel Brobecker <brobecker@adacore.com>
4159
4160 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
4161 in terms of configuration.
4162
0133421a
JK
41632010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
4164
4165 * objfiles.c: Include solist.h.
4166 (free_all_objfiles): New variable so. Check stale solist objfiles.
4167 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
4168 and no_shared_libraries.
4169
e78f4312
JB
41702010-04-27 Joel Brobecker <brobecker@adacore.com>
4171
4172 ARI warning fix.
4173 * python/py-auto-load.c (source_section_scripts): Remove trailing
4174 new-line in i18n string.
4175
9214d371
DE
41762010-04-26 Doug Evans <dje@google.com>
4177
4178 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
4179
3f172e24
TT
41802010-04-26 Tom Tromey <tromey@redhat.com>
4181
4182 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
4183 command list.
4184
e790e06e
PM
41852010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4186
4187 Removal of config/i386/nm-i386sol2.h native configuration file.
4188 * config/i386/nm-i386sol2.h: Remove file.
4189 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
4190 * config/i386/sol2-64.mh: Idem.
88562582
PM
4191 * config/djgpp/fnchange.lst: Remove reference to that file.
4192 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 4193
b7da9e9f
PM
41942010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
4195
4196 PR breakpoints/11531.
4197 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
4198 macro definition and related comment.
4199 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
4200 (resume): Remove code and comment related to this macro.
4201
72f6eb52
JK
42022010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4203
4204 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
4205 Fix whitespace.
4206
ab38a727
PA
42072010-04-24 Pedro Alves <pedro@codesourcery.com>
4208
4209 * defs.h: Adjust comment.
4210 * filesystem.h, filesystem.c: New files.
4211 * Makefile.in (SFILES): Add filesystem.c.
4212 (COMMON_OBS): Add filesystem.o.
4213 * solib.c (solib_find): Handle DOS-based filesystems. Handle
4214 different target and host path flavours.
4215 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
4216 has_dos_based_file_system on the gdbarch.
4217 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
4218 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
4219 * i386-tdep.c (i386_go32_init_abi): Ditto.
4220 * gdbarch.sh (has_dos_based_file_system): New.
4221 * gdbarch.h, gdbarch.c: Regenerate.
4222 * NEWS: Mention improved support for remote targets with DOS-based
4223 filesystems. Mention new `set/show target-file-system-kind'
4224 commands.
4225
35c9c7ba
SS
42262010-04-23 Stan Shebs <stan@codesourcery.com>
4227
4228 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
4229 comments.
4230 (struct agent_reqs): Remove.
4231 (ax_reg_mask): Declare.
4232 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
4233 (free_agent_expr): Free reg_mask.
4234 (ax_print): Add scope and register mask info.
4235 (ax_reqs): Remove agent_reqs argument, use agent expression
4236 fields, and move part of register mask computation to...
4237 (ax_reg_mask): New function.
4238 * ax-gdb.c (gen_trace_static_fields): Call it.
4239 (gen_traced_pop): Ditto.
4240 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
4241 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
4242 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
4243 (gen_eval_for_expr): Ditto, and require an rvalue.
4244 (agent_command): Call ax_reqs.
4245 (agent_eval_command): Ditto.
4246 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
4247 (validate_action_line): Ditto.
4248 (collect_symbol): Ditto.
4249 (encode_actions_1): Ditto.
4250
492928e4
JK
42512010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
4252 Paul Pluzhnikov <ppluzhnikov@google.com>
4253 Jan Kratochvil <jan.kratochvil@redhat.com>
4254
4255 Fix deadlock on looped list of loaded shared objects.
4256 * solib-svr4.c (LM_PREV): New function.
4257 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
4258 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
4259 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
4260 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
4261
66d09542
DE
42622010-04-23 Doug Evans <dje@google.com>
4263
88a1906b
DE
4264 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
4265 python.
4266 * configure: Regenerate.
4267 * main.c: #include "python/python.h".
4268 (captured_main): Defer loading auto-loaded scripts until after
4269 local_gdbinit has been sourced.
4270 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
4271 (load_auto_scripts_for_objfile): New function.
4272 (auto_load_new_objfile): Call it.
4273 * python/python.h (gdbpy_global_auto_load): Declare.
4274 (load_auto_scripts_for_objfile): Declare.
4275
66d09542
DE
4276 Add support for auto-loading scripts from .debug_gdb_scripts section.
4277 * NEWS: Add entry for .debug_gdb_scripts.
4278 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
4279 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
4280 (py-auto-load.o): New rule.
4281 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
4282 * cli/cli-cmds.h (find_and_open_script): Update prototype.
4283 * python/py-auto-load.c: New file.
4284 * python/python-internal.h: #include <stdio.h>.
4285 (set_python_list, show_python_list): Declare.
4286 (gdbpy_initialize_auto_load): Declare.
4287 (source_python_script_for_objfile): Declare.
4288 * python/python.c: Remove #include of observer.h.
4289 (gdbpy_auto_load): Moved to py-auto-load.c.
4290 (GDBPY_AUTO_FILENAME): Ditto.
4291 (gdbpy_new_objfile): Delete.
4292 (source_python_script_for_objfile): New function.
4293 (set_python_list, show_python_list): Make externally visible.
4294 (_initialize_python): Move "auto-load" command to py-auto-load.c
4295 and observer_attach_new_objfile to py-auto-load.c.
4296
3a48e6ff 42972010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 4298
3a48e6ff
JG
4299 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
4300 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
4301 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
4302 New constants.
4303 (alpha_heuristic_analyze_probing_loop): New function.
4304 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
4305 and handle cases when a stack probe loop is generated.
4306 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
4307 (alpha_mdebug_max_frame_size_exceeded): New function.
4308 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
4309 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
4310 Return 0 when the maximum debuggable frame size has been exceeded.
4311
e4166a49
JB
43122010-04-23 Joel Brobecker <brobecker@adacore.com>
4313
4314 Fix ARI warning.
4315 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
4316
8bd10a10
CM
43172010-04-20 Chris Moller <cmoller@redhat.com>
4318
4319 PR 10179
4320
4321 * symtab.c (rbreak_command): Added code to include a filename
4322 specification in the rbreak argument.
4323 * NEWS: Added a brief description of filename-qualified rbreak.
4324
c0201579
JK
43252010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4326
4327 Fix crashes on dangling display expressions.
4328 * ada-lang.c (ada_operator_check): New function.
4329 (ada_exp_descriptor): Fill-in the field operator_check.
4330 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
4331 * jv-lang.c (exp_descriptor_java): Likewise.
4332 * m2-lang.c (exp_descriptor_modula2): Likewise.
4333 * scm-lang.c (exp_descriptor_scm): Likewise.
4334 * parse.c (exp_descriptor_standard): Likewise.
4335 (operator_check_standard): New function.
4336 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
4337 * parser-defs.h (struct exp_descriptor): New field operator_check.
4338 (operator_check_standard, exp_uses_objfile): New declarations.
4339 * printcmd.c: Remove the inclusion of solib.h.
4340 (display_uses_solib_p): Remove the function.
4341 (clear_dangling_display_expressions): Call lookup_objfile_from_block
4342 and exp_uses_objfile instead of display_uses_solib_p.
4343 * solist.h (struct so_list) <objfile>: New comment.
4344 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
4345 * symtab.h (lookup_objfile_from_block): New declaration.
4346 (struct general_symbol_info) <obj_section>: Extend the comment.
4347
6ffbb7ab
TJB
43482010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
4349 Thiago Jung Bauermann <bauerman@br.ibm.com>
4350
4351 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
4352 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
4353 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
4354 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
4355 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
4356 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
4357 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
4358 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
4359 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
4360 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
4361 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
4362 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
4363 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
4364 Define, in case <ptrace.h> doesn't provide it.
4365 (booke_debug_info): New variable.
4366 (max_slots_number): Ditto.
4367 (hw_break_tuple): New struct.
4368 (thread_points): Ditto.
4369 (ppc_threads): New variable.
4370 (PPC_DEBUG_CURRENT_VERSION): New define.
4371 (have_ptrace_new_debug_booke): New function.
4372 (ppc_linux_check_watch_resources): Renamed to ...
4373 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
4374 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
4375 (booke_cmp_hw_point): New function.
4376 (booke_find_thread_points_by_tid): Ditto.
4377 (booke_insert_point): Ditto.
4378 (booke_remove_point): Ditto.
4379 (ppc_linux_insert_hw_breakpoint): Ditto.
4380 (ppc_linux_remove_hw_breakpoint): Ditto.
4381 (get_trigger_type): Ditto.
4382 (ppc_linux_insert_watchpoint): Handle BookE processors.
4383 (ppc_linux_remove_watchpoint): Ditto.
4384 (ppc_linux_new_thread): Ditto.
4385 (ppc_linux_thread_exit): New function..
4386 (ppc_linux_stopped_data_address): Handle BookE processors.
4387 (ppc_linux_watchpoint_addr_within_range): Ditto.
4388 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
4389 to_remove_hw_breakpoint fields of the target operations struct.
4390 Add observe for the thread_exit event.
4391
be0d2954
L
43922010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4393
4394 * i386-linux-nat.c (regmap): Removed.
4395 (fetch_register): Replace regmap with
4396 i386_linux_gregset_reg_offset.
4397 (store_register): Likewise.
4398 (supply_gregset): Likewise.
4399 (fill_gregset): Likewise.
4400
4401 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
4402 global.
4403
4404 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
4405
f56dcb88
CM
44062010-04-22 Chris Moller <cmoller@redhat.com>
4407
4408 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
4409 method of popping recursion-detection stack with a method based on
4410 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
4411 the static array obstack rather than the static member obstack.)
4412
6cd6a2ae
L
44132010-04-22 H.J. Lu <hongjiu.lu@intel.com>
4414
4415 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
4416 (_initialize_amd64_linux_nat): Replace
4417 amd64_linux_gregset64_reg_offset with
4418 amd64_linux_gregset_reg_offset.
4419
4420 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
4421 global.
4422
4423 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
4424
621791b8
PM
44252010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4426
4427 PR stabs/11479.
4428 * stabsread.c (set_length_in_type_chain): New function.
4429 (read_struct_type): Call set_length_in_type_chain function.
4430 (read_enum_type): Idem.
4431
105c2d85
SS
44322010-04-21 Stan Shebs <stan@codesourcery.com>
4433 Nathan Sidwell <nathan@codesourcery.com>
4434
4435 * tracepoint.c (trace_save): Open in binary mode.
4436
9a22f0d0
PM
44372010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
4438
4439 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
4440 fields.
0407b3f1 4441 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
4442 builtin_char32 fields.
4443 * printcmd.c (decode_format): Set char size to '\0'
4444 for strings unless explicit size is given.
4445 (print_formatted): Correct calculation of NEXT_ADDRESS
4446 for 16 or 32 bit strings.
4447 (do_examine): Do not force byte size for strings.
4448 Use builtin_char16 and builtin_char32 types to display
0407b3f1 4449 16 or 32 bit-wide strings.
9a22f0d0
PM
4450 (x_command): Set LAST_SIZE to 'b' for string type.
4451
f335d1b3
L
44522010-04-21 H.J. Lu <hongjiu.lu@intel.com>
4453
4454 PR corefiles/11523
4455 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4456 XCR0 first.
4457
4458 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
4459 there is no .reg-xstate section.
4460 (i386_linux_core_read_description): Check XCR0 first.
4461
a9789a6b
MF
44622010-04-21 Mike Frysinger <vapier@gentoo.org>
4463
4464 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
4465 for len <= 8.
4466
0b66f317
CM
44672010-04-21 Chris Moller <cmoller@redhat.com>
4468
4469 PR 9167
4470 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
4471 method of popping recursion-detection stack with a method based on
4472 obstack_object_size().
0b66f317 4473
6e354e5e
PM
44742010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4475
4476 PR pascal/11492.
4477 * p-valprint.c (pascal_val_print): Fix default printing of integer
4478 arrays.
4479
57174f31
PM
44802010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
4481
4482 Fix compilation warning on gcc-4.1.2.
4483 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
4484 local variable`pc' to zero.
4485
6fbc7cd8
JB
44862010-04-20 Joel Brobecker <brobecker@adacore.com>
4487
4488 Implement thread support with core files on alpha-tru64.
4489 * dec-thread.c (dec_thread_find_new_threads): New function,
4490 extracted from resync_thread_list.
4491 (resync_thread_list): Add OPS parameter. Replace extracted-out
4492 code by call to dec_thread_find_new_threads.
4493 (dec_thread_wait): Update call to resync_thread_list.
4494 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
4495
438c98a1
JB
44962010-04-20 Joel Brobecker <brobecker@adacore.com>
4497
4498 * ada-lang.c (value_pointer): New function.
4499 (make_array_descriptor): Call value_pointer to convert addresses to
4500 pointers.
4501
2971b56b
JB
45022010-04-20 Joel Brobecker <brobecker@adacore.com>
4503
4504 * rs6000-aix-tdep.c: #include exceptions.h.
4505 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
4506 while reading the memory at ADDR, then ADDR cannot be a function
4507 descriptor.
4508
be942545
JB
45092010-04-20 Joel Brobecker <brobecker@adacore.com>
4510
4511 * ada-typeprint.c (ada_print_typedef): New function.
4512 * ada-lang.h (ada_print_typedef): Add declaration.
4513 * ada-lang.c (ada_language_defn): set la_print_typdef field
4514 to ada_print_typedef.
4515
1ca8fce0
JB
45162010-04-20 Joel Brobecker <brobecker@adacore.com>
4517
4518 * procfs.c (procfs_address_to_host_pointer): Only define when used.
4519
e9ef4f39
JB
45202010-04-20 Joel Brobecker <brobecker@adacore.com>
4521
4522 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
4523 (iterate_over_mappings): Adjust function profile. Add declaration.
4524 (insert_dbx_link_bpt_in_region, info_mappings_callback):
4525 Adjust accordingly.
4526
e294797a
JB
45272010-04-20 Joel Brobecker <brobecker@adacore.com>
4528
4529 * procfs.c (solib_mappings_callback): Move function up to avoid
4530 a compiler warning.
4531
a223f1e7
JB
45322010-04-20 Joel Brobecker <brobecker@adacore.com>
4533
4534 * procfs.c (find_signalled_thread, find_stop_signal): Move
4535 these functions down to define them only when used.
4536
0c3acc09
JB
45372010-04-20 Joel Brobecker <brobecker@adacore.com>
4538
4539 * valprint.c (common_val_print): Fix the value before extracting
4540 its contents.
4541 * ada-lang.c (ada_to_fixed_value): Make this function extern.
4542 * ada-lang.h (ada_to_fixed_value): New function declaration.
4543 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
4544 to avoid code duplication and fix a bug in the handling of
4545 fixed types contents.
4546
31ef98ae
TT
45472010-04-20 Tom Tromey <tromey@redhat.com>
4548
4549 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
4550 (read_partial_die): Likewise.
4551 (dwarf_attr_name): Likewise.
4552
ec31cde5 45532010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 4554
ec31cde5
CM
4555 PR 10867
4556
4557 * cp-valprint.c (global): Adding new static array recursion
4558 detection obstack.
4559 (cp_print_value_fields, cp_print_static_field): Added new static
4560 array recursion detection code.
4561
e0e0e543
MK
45622010-04-20 Mark Kettenis <kettenis@gnu.org>
4563
4564 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
4565 general-purpose register set should be 68 instead of 144.
4566 (i386_linux_sse_regset_sections): Likewise.
4567 (i386_linux_avx_regset_sections): Likewise.
4568
08922a10
SS
45692010-04-20 Stan Shebs <stan@codesourcery.com>
4570 Nathan Sidwell <nathan@codesourcery.com>
4571
4572 * dwarf2loc.c (struct axs_var_loc): New struct.
4573 (dwarf2_tracepoint_var_loc): New function.
4574 (dwarf2_tracepoint_var_access): New function.
4575 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
4576 with DW_OP_piece.
4577 (locexpr_describe_location_piece): New function.
4578 (locexpr_describe_location_1): New function.
4579 (locexpr_describe_location): Call it, update signature.
4580 (loclist_describe_location): Rewrite to loop over locations,
4581 update signature.
4582 * symtab.h (struct symbol_computed_ops): Add address to
4583 describe_location arguments, return void.
4584 * printcmd.c (address_info): Get context PC, pass to computed
4585 location description.
4586 * tracepoint.c (scope_info): Ditto.
4587 * ax-gdb.c (trace_kludge): Export.
4588
2dc7f7b3
TT
45892010-04-20 Tom Tromey <tromey@redhat.com>
4590
4591 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
4592 (struct dwarf2_cie) <segment_size>: New field.
4593 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
4594 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
4595 DW_FORM_exprloc.
4596 (read_attribute_value): Handle DW_FORM_flag_present,
4597 DW_FORM_sec_offset, DW_FORM_exprloc.
4598 (dump_die_shallow): Likewise.
4599 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
4600 (dwarf2_const_value): Handle DW_FORM_exprloc.
4601 (attr_form_is_block): Likewise.
4602 (struct line_header) <maximum_ops_per_instruction>: New field.
4603 (dwarf_decode_line_header): Set new field.
4604 (dwarf_decode_lines): Handle new field.
4605
ce4b0682
SDJ
46062010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4607
4608 * f-exp.y: Add new production to recognize the `logical*8' type.
4609 (LOGICAL_S8_KEYWORD): New token.
4610 * f-lang.c (enum f_primitive_types)
4611 <f_primitive_type_logical_s8>: New field.
4612 (f_language_arch_info): Handling `logical*8' type.
4613 (build_fortran_types): Building `logical*8' type.
4614 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
4615
ff9f22f1
DE
46162010-04-19 Doug Evans <dje@google.com>
4617
4618 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
4619 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
4620 (pipe_close): Ditto.
4621
437125bd
PM
46222010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4623
4624 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
4625
e8e6c82e
PM
46262010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
4627
4628 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
4629 type to void function.
4630
4136fdd2
SS
46312010-04-19 Stan Shebs <stan@codesourcery.com>
4632 Vladimir Prus <vladimir@codesourcery.com>
4633
4634 * tracepoint.c (tfind_1): Add missing newline, report exit from
4635 tfind mode as such.
4636 * target.c (update_current_target): Make default
4637 to_trace_find return -1.
4638
0c4b2e63
MF
46392010-04-19 Mike Frysinger <vapier@gentoo.org>
4640
4641 * objc-lang.c (find_methods): Move symname check up.
4642
78076abc
PA
46432010-04-19 Pedro Alves <pedro@codesourcery.com>
4644
4645 * ada-lang.c (print_recreate_exception)
4646 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
4647 not "catch unhandled".
4648
6149aea9
PA
46492010-04-19 Pedro Alves <pedro@codesourcery.com>
4650
4651 PR breakpoints/8554.
4652
4653 Implement `save-breakpoints'.
4654
4655 * breakpoint.c (save_cmdlist): New.
4656 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
4657 to save_cmdlist.
4658 (print_recreate_catch_fork): New.
4659 (catch_fork_breakpoint_ops): Install it.
4660 (print_recreate_catch_vfork): New.
4661 (catch_vfork_breakpoint_ops): Install it.
4662 (print_recreate_catch_syscall): New.
4663 (catch_syscall_breakpoint_ops): Install it.
4664 (print_recreate_catch_exec): New.
4665 (catch_exec_breakpoint_ops): Install it.
4666 (print_recreate_exception_catchpoint): New.
4667 (gnu_v3_exception_catchpoint_ops): Install it.
4668 (save_breakpoints): New, based on tracepoint_save_command, but
4669 handle all breakpoint types.
4670 (save_breakpoints_command): New.
4671 (tracepoint_save_command): Rename to...
4672 (save_tracepoints_command): ... this, and reimplement using
4673 save_breakpoints.
4674 (save_command): New.
4675 (_initialize_breakpoints): Install the "save" command prefix.
4676 Install the "save breakpoints" command. Make "save-tracepoints" a
4677 deprecated alias for "save tracepoints".
4678 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
4679 * ada-lang.c (print_recreate_exception): New.
4680 (print_recreate_catch_exception): New.
4681 (catch_exception_breakpoint_ops): Install it.
4682 (print_recreate_catch_exception_unhandled): New.
4683 (catch_exception_unhandled_breakpoint_ops): Install it.
4684 (print_recreate_catch_assert): New.
4685 (catch_assert_breakpoint_ops): Install it.
4686
4687 * NEWS: Mention the new `save breakpoints' command. Mention the
4688 new `save tracepoints' alias and that `save-tracepoints' is now
4689 deprecated.
4690
0a8fce9a
PA
46912010-04-18 Pedro Alves <pedro@codesourcery.com>
4692
4693 PR tui/9217
4694
4695 * tui/tui-out.c: Include cli-out.h.
4696 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4697 (tui_begin, tui_end, tui_field_int, tui_field_skip)
4698 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
4699 (tui_message, tui_wrap_hint, tui_flush): Delete forward
4700 declarations.
4701 (struct ui_out_data): Rename to...
4702 (struct tui_ui_out_data): ... this. Remove `stream' and
4703 `suppress_output' fields, and inherit cli_ui_out_data.
4704 (tui_out_data): New typedef.
4705 (tui_ui_out_impl): Don't initialize fields staticaly.
4706 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
4707 (tui_begin, tui_end): Delete.
4708 (tui_field_int): Adjust to delegate most work to the base type.
4709 (tui_field_skip): Delete.
4710 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
4711 delegate most work to the base type.
4712 (tui_spaces): Delete.
4713 (tui_text): Adjust to delegate most work to the base type.
4714 (tui_message): Delete.
4715 (tui_wrap_hint): Delete.
4716 (tui_flush): Delete.
4717 (out_field_fmt): Delete.
4718 (field_separator): Delete.
4719 (tui_out_new): Adjust to initialize the base type.
4720 (_initialize_tui_out): Initialize tui_ui_out_impl.
4721 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
4722 cli_ui_out_data.
4723 (cli_out_data): Adjust.
4724 (cli_ui_out_impl): Make extern.
4725 (cli_table_header, cli_field_int, cli_field_skip): Use
4726 uo_field_string instead of cli_field_string.
4727 (cli_redirect): Adjust to use cli_out_data.
4728 (cli_out_data_ctor): New.
4729 (cli_out_new): Use it.
4730 * cli-out.h (struct ui_file): Remove forward declaration.
4731 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
4732 (cli_ui_out_impl): Declare.
4733 (cli_out_data_ctor): Declare.
4734 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
4735 (uo_field_string): No longer static.
4736 (ui_out_data): Change return type to void pointer.
4737 (ui_out_new): Change `data' parameter type to void pointer.
4738 * ui-out.h (struct ui_out_data): Don't forward declare.
4739 (ui_out_data): Change return type to void pointer.
4740 (ui_out_new): Change `data' parameter type to void pointer.
4741 (uo_field_string): Declare.
4742
172240dd
PA
47432010-04-17 Pedro Alves <pedro@codesourcery.com>
4744
4745 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
4746 instead of always false.
4747
ed41462c
L
47482010-04-17 H.J. Lu <hongjiu.lu@intel.com>
4749
4750 PR corefiles/11511
4751 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
4752 orig_rax.
4753
cc60f2e3
PA
47542010-04-17 Pedro Alves <pedro@codesourcery.com>
4755
4756 * breakpoint.c (watchpoints_triggered): Use
4757 is_hardware_watchpoint.
4758 (watchpoints_triggered): Ditto.
4759 (bpstat_check_location): Use is_watchpoint and
4760 is_hardware_watchpoint.
4761 (bpstat_check_watchpoint): Use is_watchpoint and
4762 is_hardware_watchpoint.
4763 (bpstat_stop_status): Fix comment.
4764 (user_settable_breakpoint): Use is_watchpoint.
4765 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
4766 (disable_watchpoints_before_interactive_call_start): Use
4767 is_watchpoint.
4768 (enable_watchpoints_after_interactive_call_stop): Use
4769 is_watchpoint.
4770 (clear_command): Use is_watchpoint.
4771 (do_enable_breakpoint): Use is_watchpoint.
4772
cb7db0f2
MF
47732010-04-16 Mike Frysinger <vapier@gentoo.org>
4774
4775 * solib-frv.c (enable_break1_done): Delete.
4776 (enable_break2): Do not check enable_break1_done. Move the
4777 enable_break2_done setting and call to
4778 remove_solib_event_breakpoints() to the end. Return without
4779 warning when the contents of _dl_debug_addr are 0.
4780 (enable_break): Do not set enable_break1_done.
4781 (frv_clear_solib): Likewise.
4782
d77b48cf
KB
47832010-04-16 Kevin Buettner <kevinb@redhat.com>
4784
4785 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
4786 instead of an error if no PLT entry is found. Return a
4787 potentially useful result.
4788 (m32c_m16c_pointer_to_address): Add code to search for function
4789 address when no .plt entry is found.
4790
f90824dc
SS
47912010-04-16 Stan Shebs <stan@codesourcery.com>
4792
4793 * tracepoint.c (trace_variable_command): Run a cleanup.
4794
9b79b476
PM
47952010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4796
4797 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
4798
711e434b
PM
47992010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
4800
4801 Support for Windows OS Thread Information Block.
4802 * NEWS: Document new feature.
4803 * remote.c (PACKET_qGetTIBAddr): New enum element.
4804 (remote_get_tib_address): New function.
4805 (init_remote_ops): Set to_get_tib_address field
4806 to remote_get_tib_address.
4807 (_initialize_remote): Add add_packet_config_cmd
4808 for PACKET_qGetTIBAddr.
4809 * target.c (update_current_target): Set default value for
4810 new to_get_tib_address field.
4811 * target.h (target_ops): New field to_get_tib_address.
4812 (target_get_tib_address): New macro.
4813 * windows-nat.c (thread_info): Add thread_local_base field.
4814 (windows_add_thread): Add tlb argument of type 'void *'.
4815 (fake_create_process): Adapt windows_add_thread call.
4816 (get_windows_debug_event): Idem.
4817 (windows_get_tib_address): New function.
4818 (init_windows_ops): Set to_get_tib_address field
4819 to remote_get_tib_address.
4820 (_initialize_windows_nat): Replace info_w32_cmdlist
4821 initialization by a call to init_w32_command_list.
4822 (info_w32_command, info_w32_cmdlist): Removed from here...
4823 to windows-tdep.c file.
4824 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 4825 (init_w32_command_list): New external function
711e434b
PM
4826 declaration.
4827 * windows-tdep.c: Add several headers.
4828 (info_w32_cmdlist): to here, made global.
4829 (thread_information_32): New struct.
4830 (thread_information_64): New struct.
4831 (TIB_NAME): New char array.
4832 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
4833 (maint_display_all_tib): New static variable.
4834 (windows_get_tlb_type): New function.
4835 (tlb_value_read, tlb_value_write): New functions.
4836 (tlb_value_funcs): New static struct.
4837 (tlb_make_value): New function.
4838 (display_one_tib): New function.
4839 (display_tib): New function.
4840 (show_maint_show_all_tib):New function.
4841 (info_w32_command): Moved from windows-nat.c.
4842 (init_w32_command_list): New function.
4843 (_initialize_windows_tdep): New function.
4844 New "maint set/show show-all-tib" command
4845 New "$_tlb" internal variable.
4846
cae3f17b
JB
48472010-04-16 Joel Brobecker <brobecker@adacore.com>
4848
4849 * tui/tui-regs.c (tui_display_register): Add comment about
4850 a couple of casts.
4851 * tui/tui-stack.c (tui_show_locator_content): Ditto.
4852
2ce6d6bf
SS
48532010-04-15 Stan Shebs <stan@codesourcery.com>
4854
4855 * frame.c: Include tracepoint.h.
4856 (get_current_frame): Allow a trace frame to be an alternate source
4857 of stack frame data.
4858 * tracepoint.c (tfind_1): Don't try to get current stack frame if
4859 it won't succeed.
4860
7e559477
PA
48612010-04-15 Pedro Alves <pedro@codesourcery.com>
4862
4863 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
4864 flags.
4865 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
4866
3f7b2faa
DE
48672010-04-15 Doug Evans <dje@google.com>
4868
fa33c3cd
DE
4869 * NEWS: Add entry for python program space support.
4870 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
4871 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
4872 (py-progspace.o): New rule.
4873 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
4874 function.
4875 (find_pretty_printer_from_progspace): New function.
4876 (find_pretty_printer_from_gdb): New function.
4877 (find_pretty_printer): Rewrite.
4878 * python/py-progspace.c: New file.
4879 * python/python-internal.h (program_space): Add forward decl.
4880 (pspace_to_pspace_object, pspy_get_printers): Declare.
4881 (gdbpy_initialize_pspace): Declare.
4882 * python/python.c: #include "progspace.h".
4883 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
4884 (_initialize_python): Call gdbpy_initialize_pspace.
4885 (GdbMethods): Add current_progspace, progspaces.
4886
3f7b2faa
DE
4887 Add -s option to source command.
4888 * NEWS: Document new option.
4889 * cli/cli-cmds.c (find_and_open_script): Add function comment.
4890 Delete from_tty and cleanupp args. Split filep arg into file and
4891 full_pathp. New arg search_path.
4892 (source_script_from_stream): New function.
4893 (source_script_with_search): New function.
4894 (source_script): Rewrite.
4895 (source_command): Parse "-s" option.
4896 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
4897 * python/python.c (source_python_script): Make file arg a const char *.
4898 Don't call fclose, leave for caller.
4899 * python/python.h (source_python_script): Update.
4900
a86988f2
PA
49012010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4902 Pedro Alves <pedro@codesourcery.com>
4903
4904 Avoid rereading shared libraries that haven't changed.
4905
4906 * solib.c (free_so_symbols): New function, from ...
4907 (free_so): ... here. Call it.
4908 (solib_read_symbols): Don't warn here if symbols have already been
4909 loaded.
4910 (solib_add): Warn here instead, if a pattern was specified.
4911 (reload_shared_libraries_1): New.
4912 (reload_shared_libraries): Rewrite to not fetch the library list.
4913
e6d9b9c2
DE
49142010-04-14 Doug Evans <dje@google.com>
4915
589390d6 4916 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
4917 concatenating string to search path.
4918
516ba659
PA
49192010-04-14 Pedro Alves <pedro@codesourcery.com>
4920
4921 * objfiles.h (gdb_bfd_close_or_warn): Declare.
4922 * objfiles.c (gdb_bfd_close_or_warn): New.
4923 * corelow.c: Include objfiles.h
4924 (core_close): Use gdb_bfd_close_or_warn.
4925 * elfread.c (build_id_verify): Ditto.
4926 * exec.c (exec_close, exec_close_1): Ditto.
4927
048d532d
PA
49282010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
4929 Pedro Alves <pedro@codesourcery.com>
4930
4931 Group errors for many missing shared libraries.
4932
4933 * solist.h (struct so_list): Remove from_tty.
4934 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
4935 (solib_map_sections): Take so_list argument. Return 0 if we
4936 failed to open a BFD. Add target sections here.
4937 (symbol_add_stub): Delete.
4938 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
4939 not from_tty copied from the so_list. Don't warn a second time
4940 for a missing library.
4941 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
4942 add to the section table here. Print out a single warning for all
4943 missing libraries.
4944 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
4945 flags.
4946
044c0f87
PM
49472010-04-14 Phil Muldoon <pmuldoon@redhat.com>
4948
4949 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
4950 error/warning messages. Capitalize and use complete sentences.
4951 (blpy_block_syms_iternext): Likewise.
4952 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
4953 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
4954 (frame_info_to_frame_object, frapy_read_var)
4955 (gdbpy_frame_stop_reason_string): Likewise.
4956 * python/py-lazy-string.c (stpy_convert_to_value)
4957 (gdbpy_create_lazy_string_object): Likewise.
4958 * python/py-objfile.c (objfpy_set_printers): Likewise.
4959 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
4960 * python/python.c (parameter_to_python): Likewise.
4961 * python/py-type.c (typy_range, typy_target): Likewise.
4962 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
4963 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
4964
4965
79f283fe
PM
49662010-04-14 Phil Muldoon <pmuldoon@redhat.com>
4967
4968 PR python/11381
4969
4970 * python/py-prettyprint.c (pretty_print_one_value): Test for
4971 Py_None.
4972 (print_string_repr): Test for Py_None. Set flags accordingly.
4973 Return value depending on return type.
4974 (print_children): Take a value indicating whether data was printed
4975 before this function was called. Alter output accordingly.
4976 (apply_val_pretty_printer): Capture return value from
4977 print_string_repr and pass to print_children.
4978
4ac5d44e
MK
49792010-04-13 Mark Kettenis <kettenis@gnu.org>
4980
e1caee70 4981 PR corefiles/11481
4ac5d44e
MK
4982 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
4983 register note sections.
4984 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
4985 New variables.
4986 (i386_linux_init_abi): Install list of supported register note
4987 sections that matches the target description.
4988
ad91cd99
PA
49892010-04-13 Pedro Alves <pedro@codesourcery.com>
4990
4991 * remote.c (remote_get_noisy_reply): Don't error out on empty
4992 replies.
4993 (remote_start_remote): Update and merge tracepoints and trace
4994 state variables as long as the target supports tracepoints.
4995 (remote_trace_init): Fix prototype.
4996 (remote_download_trace_state_variable): Validate reply.
4997 (remote_trace_set_readonly_regions): Fix prototype.
4998 (remote_trace_start): Fix prototype. Check for empty reply.
4999 (remote_get_trace_status): Small cleanup.
5000 (remote_trace_stop): Fix prototype. Check for empty reply.
5001 (remote_trace_find): Check for empty reply.
5002 (remote_save_trace_data): Validate reply.
5003 (remote_set_disconnected_tracing): Check for empty reply, and
5004 validate reply.
5005 (remote_set_circular_trace_buffer): Ditto.
5006
ae3bccd4
PM
50072010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
5008
5009 Suppress unused value warning during compilation.
5010 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
5011 calls to void.
5012 * tui/tui-stack.c (tui_show_locator_content): Likewise.
5013
523136f2
SS
50142010-04-12 Stan Shebs <stan@codesourcery.com>
5015
5016 * tracepoint.c (tfile_xfer_partial): Check read result.
5017
0d18d720
MF
50182010-04-12 Mike Frysinger <vapier@gentoo.org>
5019
5020 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
5021 * remote-sim.c (gdbsim_files_info): Likewise.
5022
3b273a55
RE
50232010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5024
5025 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
5026 * arm-linux-nat.c (arm_linux_vfp_register_count): New
5027 variable.
5028 (fetch_vfp_registers): New function to fetch VFP registers.
5029 (store_vfp_registers): New function to store VFP registers.
5030 (arm_linux_fetch_inferior_registers): Add support for VFP
5031 registers.
5032 (arm_linux_store_inferior_registers): Likewise.
5033 (arm_linux_read_description): Likewise.
5034 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
5035 until we need it.
5036
778c7095
L
50372010-04-11 H.J. Lu <hongjiu.lu@intel.com>
5038
5039 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
5040 tdep.
5041 (amd64_collect_xstateregset): Likewise.
5042
2114d44c
SS
50432010-04-09 Stan Shebs <stan@codesourcery.com>
5044
87290684
SS
5045 * tracepoint.c (trace_status_mi): Report frames created.
5046
2114d44c
SS
5047 * tracepoint.c (trace_dump_command): Include default-collect
5048 expressions.
5049
86da934b
UW
50502010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
5051
5052 * symtab.c (find_function_start_sal): Never return SAL pointing
5053 before function start address, even if line info is missing.
5054
2d6e647a 50552010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
5056
5057 * NEWS: Mention tracepoints support.
5058
a97153c7
PA
50592010-04-09 Pedro Alves <pedro@codesourcery.com>
5060
5061 * tracepoint.c (trace_status_mi): Report disconnected tracing and
5062 circular trace buffer statuses.
5063
7a66d603
JK
50642010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5065
5066 * config/djgpp/fnchange.lst: Fix typo in translations for
5067 symbol-without-target_section.exp and symbol-without-target_section.c.
5068
2566ad2d
PA
50692010-04-09 Pedro Alves <pedro@codesourcery.com>
5070
5071 * breakpoint.c (condition_command): Pass condition expression to
5072 set_breakpoint_condition stripped from breakpoint number.
5073
adc36818
PM
50742010-04-09 Phil Muldoon <pmuldoon@redhat.com>
5075 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 5076 Tom Tromey <tromey@redhat.com>
adc36818
PM
5077
5078 * breakpoint.c (condition_command): Simplify. Move condition
5079 setting code to ...
5080 (set_breakpoint_condition): ... here. New function.
5081 * breakpoint.h (set_breakpoint_condition): Declare.
5082 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
5083 (SUBDIR_PYTHON_SRCS): Likewise.
5084 (py-breakpoint.o): New rule.
5085 * python/py-breakpoint.c: New file.
5086 * python/python-internal.h (gdbpy_breakpoints)
5087 (gdbpy_initialize_breakpoints): Declare.
5088 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
5089
219f2f23
PA
50902010-04-09 Pedro Alves <pedro@codesourcery.com>
5091
5092 * regformats/regdat.sh: Include server.h. Don't include
5093 regcache.h.
5094
33da3f1c
SS
50952010-04-08 Stan Shebs <stan@codesourcery.com>
5096 Pedro Alves <pedro@codesourcery.com>
5097
5098 * tracepoint.h (struct trace_status): New fields disconnected_tracing
5099 and circular_buffer.
5100 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
5101 * tracepoint.c (trace_status_command): Display target's status for
5102 disconnected tracing and circular buffer.
5103 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
5104 query for non-disconnected-tracing case, remove the stop_tracing
5105 call.
5106 (tfile_open): Clear disconnected and circular buffer status.
5107 (trace_save): Save disconnected and circular buffer status.
5108 (parse_trace_status): Parse disconnected and circular buffer status,
5109 also recognize disconnected as a stop reason.
5110 * remote.c (remote_set_disconnected_tracing): Only set
5111 QTDisconnected if the remote end supports disconnected tracing.
5112 Warn otherwise, if trying to enable disconnected tracing.
5113 * infcmd.c (detach_command): Update disconnect_tracing call.
5114 * cli/cli-cmds.c (quit_command): Ditto.
5115
4e4d8374
L
51162010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5117
5118 * i387-tdep.c (i387_collect_xsave): Replace abort with
5119 internal_error.
5120
ad443146
SS
51212010-04-08 Stan Shebs <stan@codesourcery.com>
5122
5123 * breakpoint.c (default_collect_info): New function.
5124 (breakpoints_info): Call it.
5125 (maintenance_info_breakpoints): Ditto.
5126 (tracepoints_info): Ditto.
5127
40936b0d
L
51282010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5129
5130 * i387-tdep.c (i387_collect_xsave): Re-indent.
5131
3a13a53b
L
51322010-04-08 H.J. Lu <hongjiu.lu@intel.com>
5133
5134 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
5135 if HAVE_PTRACE_GETFPXREGS is defined.
5136 (i386_linux_read_description): Set have_ptrace_getfpxregs and
5137 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
5138
5139 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
5140 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
5141 if .reg-xfp section doesn't exist.
5142 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
5143
5144 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
5145
5146 * i386-tdep.c: Include "features/i386/i386-mmx.c".
5147 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
5148 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
5149 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
5150 (i386_gdbarch_init): Update comments.
5151 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
5152
5153 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
5154
5155 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
5156
5157 * features/Makefile (i386/i386-mmx-expedite): New.
5158 (i386/i386-mmx-linux-expedite): Likewise.
5159 ($(outdir)/i386/i386-mmx.dat): Likewise.
5160 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
5161
5162 * features/i386/i386-mmx-linux.c: New.
5163 * features/i386/i386-mmx-linux.xml: Likewise.
5164 * features/i386/i386-mmx.c: Likewise.
5165 * features/i386/i386-mmx.xml: Likewise.
5166 * regformats/i386/i386-mmx-linux.dat: Likewise.
5167 * regformats/i386/i386-mmx.dat: Likewise.
5168
5169 * features/Makefile (WHICH): Add i386/i386-mmx and
5170 i386/i386-mmx-linux.
5171
08001717
DE
51722010-04-08 Doug Evans <dje@google.com>
5173
5174 * source.c (openp): Skip $cdir in PATH.
5175
fff5cc64
PM
51762010-04-08 Phil Muldoon <pmuldoon@redhat.com>
5177
5178 PR python/11417
fff5cc64 5179 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
5180 a NULL address.
5181 (gdbpy_create_lazy_string_object): Allow strings with a NULL
5182 address and a zero length.
fff5cc64 5183
f8c4f480
HZ
51842010-04-08 Hui Zhu <teawater@gmail.com>
5185
5186 * i386-tdep.c (i386_process_record): Add support for insn
5187 rdtsc.
5188
eb5cda86
DE
51892010-04-07 Doug Evans <dje@google.com>
5190
5191 * python/python.c (source_python_script): Use ensure_python_env
5192 to prepare environment for script.
5193
a055a187
L
51942010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5195
5196 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
5197 <sys/uio.h> and "i386-xstate.h".
5198 (PTRACE_GETREGSET): New.
5199 (PTRACE_SETREGSET): Likewise.
5200 (have_ptrace_getregset): Likewise.
5201 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
5202 registers.
5203 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
5204 registers.
5205 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
5206 (amd64_linux_store_inferior_registers): Likewise.
5207 (amd64_linux_read_description): Check and enable AVX target
5208 descriptions.
5209
5210 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
5211 and "features/i386/amd64-avx-linux.c".
5212 (amd64_linux_regset_sections): New.
5213 (amd64_linux_core_read_description): Check and enable AVX
5214 target description.
5215 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
5216 set_gdbarch_core_regset_sections.
5217 (_initialize_amd64_linux_tdep): Call
5218 initialize_tdesc_amd64_avx_linux.
5219
5220 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
5221 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
5222 (tdesc_amd64_avx_linux): New.
5223 (amd64_linux_update_xstateregset): Likewise.
5224
5225 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
5226 (amd64_ymm_names): New.
5227 (amd64_ymmh_names): Likewise.
5228 (amd64_register_name): Likewise.
5229 (amd64_supply_xstateregset): Likewise.
5230 (amd64_collect_xstateregset): Likewise.
5231 (amd64_supply_xsave): Likewise.
5232 (amd64_collect_xsave): Likewise.
5233 (AMD64_NUM_REGS): Removed.
5234 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
5235 %xmmN if AVX is available.
5236 (amd64_pseudo_register_name): Support pseudo YMM registers.
5237 (amd64_regset_from_core_section): Support .reg-xstate section.
5238 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
5239 and ymm0h_regnum. Call set_gdbarch_register_name.
5240 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
5241
5242 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
5243 AMD64_YMM15H_REGNUM.
5244 (AMD64_NUM_REGS): New.
5245 (amd64_supply_xsave): Likewise.
5246 (amd64_collect_xsave): Likewise.
5247 (amd64_register_name): Removed.
5248 (amd64_register_type): Likewise.
5249
31aeac78
L
52502010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5251
5252 * i387-tdep.c: Include "i386-xstate.h".
5253 (XSAVE_XSTATE_BV_ADDR): New.
5254 (xsave_avxh_offset): Likewise.
5255 (XSAVE_AVXH_ADDR): Likewise.
5256 (i387_supply_xsave): Likewise.
5257 (i387_collect_xsave): Likewise.
5258
5259 * i387-tdep.h (I387_NUM_YMM_REGS): New.
5260 (I387_YMM0H_REGNUM): Likewise.
5261 (I387_YMMENDH_REGNUM): Likewise.
5262 (i387_supply_xsave): Likewise.
5263 (i387_collect_xsave): Likewise.
5264
c131fcee
L
52652010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5266
5267 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
5268 <sys/uio.h> and "i386-xstate.h".
5269 (PTRACE_GETREGSET): New.
5270 (PTRACE_SETREGSET): Likewise.
5271 (fetch_xstateregs): Likewise.
5272 (store_xstateregs): Likewise.
5273 (GETXSTATEREGS_SUPPLIES): Likewise.
5274 (regmap): Include 8 upper YMM registers.
5275 (i386_linux_fetch_inferior_registers): Support XSAVE extended
5276 state.
5277 (i386_linux_store_inferior_registers): Likewise.
5278 (i386_linux_read_description): Check and enable AVX target
5279 descriptions.
5280
5281 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
5282 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
5283 (i386_linux_regset_sections): Add ".reg-xstate".
5284 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
5285 (i386_linux_core_read_xcr0): New.
5286 (i386_linux_core_read_description): Check and enable AVX target
5287 description.
5288 (i386_linux_init_abi): Set xsave_xcr0_offset.
5289 (_initialize_i386_linux_tdep): Call
5290 initialize_tdesc_i386_avx_linux.
5291
5292 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
5293 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
5294 (i386_linux_core_read_xcr0): New.
5295 (tdesc_i386_avx_linux): Likewise.
5296 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
5297
5298 * i386-tdep.c: Include "i386-xstate.h" and
5299 "features/i386/i386-avx.c".
5300 (i386_ymm_names): New.
5301 (i386_ymmh_names): Likewise.
5302 (i386_ymmh_regnum_p): Likewise.
5303 (i386_ymm_regnum_p): Likewise.
5304 (i386_xmm_regnum_p): Likewise.
5305 (i386_register_name): Likewise.
5306 (i386_ymm_type): Likewise.
5307 (i386_supply_xstateregset): Likewise.
5308 (i386_collect_xstateregset): Likewise.
5309 (i386_sse_regnum_p): Removed.
5310 (i386_pseudo_register_name): Support pseudo YMM registers.
5311 (i386_pseudo_register_type): Likewise.
5312 (i386_pseudo_register_read): Likewise.
5313 (i386_pseudo_register_write): Likewise.
5314 (i386_dbx_reg_to_regnum): Return %ymmN register number for
5315 %xmmN if AVX is available.
5316 (i386_regset_from_core_section): Support .reg-xstate section.
5317 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
5318 (i386_process_record): Replace i386_sse_regnum_p with
5319 i386_xmm_regnum_p.
5320 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
5321 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 5322 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
5323 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
5324 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
5325 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
5326 Set ymm0_regnum.
5327 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
5328
5329 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
5330 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
5331 i386_ymm_type.
5332 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
5333 (I386_AVX_NUM_REGS): New.
5334 (i386_xmm_regnum_p): Likewise.
5335 (i386_ymm_regnum_p): Likewise.
5336 (i386_ymmh_regnum_p): Likewise.
5337
5338 * common/i386-xstate.h: New.
5339
98adf0f3
L
53402010-04-07 H.J. Lu <hongjiu.lu@intel.com>
5341
5342 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
5343
5344 * features/Makefile (WHICH): Add i386/i386-avx,
5345 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
5346 (i386/i386-avx-expedite): New.
5347 (i386/i386-avx-linux-expedite): Likewise.
5348 (i386/x86-64-avx-expedite):Likewise.
5349 (i386/x86-64-avx-linux-expedite): Likewise.
5350 ($(outdir)/i386/i386-avx.dat): New dependency.
5351 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
5352 ($(outdir)/i386/x86-avx-64.dat): Likewise.
5353 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
5354
5355 * features/i386/32bit-avx.xml: New.
5356 * features/i386/64bit-avx.xml: Likewise.
5357 * features/i386/i386-avx-linux.c: Likewise.
5358 * features/i386/i386-avx-linux.xml: Likewise.
5359 * features/i386/i386-avx.c: Likewise.
5360 * features/i386/i386-avx.xml: Likewise.
5361 * features/i386/x86-64-avx-linux.c: Likewise.
5362 * features/i386/x86-64-avx-linux.xml: Likewise.
5363 * features/i386/x86-64-avx.c: Likewise.
5364 * features/i386/x86-64-avx.xml: Likewise.
5365 * regformats/i386/i386-avx-linux.dat: Likewise.
5366 * regformats/i386/i386-avx.dat: Likewise.
5367 * regformats/i386/x86-64-avx-linux.dat: Likewise.
5368 * regformats/i386/x86-64-avx.dat: Likewise.
5369
05159abe
DE
53702010-04-07 Doug Evans <dje@google.com>
5371
5372 * top.c (source_file_name): Make const char *.
5373 * top.h (source_file_name): Update.
5374 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
5375 const char *.
5376 (script_from_file): Change `file' arg to const char *.
5377 * cli/cli-script.h (script_from_file): Update.
5378
96e39866
DE
53792010-04-06 Doug Evans <dje@google.com>
5380
5381 * cli/cli-cmds.c (source_command): Run cleanups.
5382
3149d8c1
SS
53832010-04-06 Stan Shebs <stan@codesourcery.com>
5384
5385 * defs.h (char_ptr): Move typedef here from...
5386 * ada-lang.c (char_ptr): Remove.
5387 * charset.c (char_ptr): Remove.
5388 * tracepoint.h (struct uploaded_string): Remove.
5389 (struct uploaded_tp): Use vectors for string arrays.
5390 * tracepoint.c (trace_save): Use vectors of actions.
5391 (parse_tracepoint_definition): Ditto.
5392 (get_uploaded_tp): Clear vectors.
5393 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
5394 (next_cmd): Change to an int.
5395 (read_next_cmd): Use vector of command strings.
5396
4cc23ede
DE
53972010-04-06 Doug Evans <dje@google.com>
5398
5399 * top.h (source_script, cd_command): Delete.
5400 * main.c: #include "cli/cli-cmds.h"
5401
bd333fb7
KB
54022010-04-06 Kevin Buettner <kevinb@redhat.com>
5403
5404 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
5405 type in bytes, not bits.
5406
ec8a089a
PM
54072010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5408
5409 * stabsread.c (define_symbol): Add support for char
5410 and string constants.
5411
2244ba2e
PM
54122010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
5413
5414 Remove remaining "%ll" uses.
5415 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
5416 hex_string call.
5417 * rs6000-nat.c (rs6000_ptrace64): Idem.
5418 * solib-pa64.c (pa64_current_sos): Idem.
5419 * solib-spu.c (spu_current_sos): Idem.
5420 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
5421 plongest call.
5422 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
5423 phex (VAR, 8) call.
5424 * sh64-tdep.c (sh64_show_media_regs): Idem.
5425
fce3c1f0
SS
54262010-04-05 Stan Shebs <stan@codesourcery.com>
5427
5428 * tracepoint.c: Include gdbcore.h.
5429 (tfile_xfer_partial): Return partial results, also try reading
5430 from executable.
5431 (tfile_has_all_memory): New function.
5432 (init_tfile_ops): Use it.
5433
626ea16d
SDJ
54342010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
5435
5436 PR gdb/10736:
5437 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
5438 the changes in data-directory.
5439 (init_sysinfo): Reload the syscall XML file if the data-directory
5440 has changed.
5441
1f7ccab2
JK
54422010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5443
5444 Code cleanup.
5445 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
5446
d77f58be
SS
54472010-04-04 Stan Shebs <stan@codesourcery.com>
5448 Nathan Sidwell <nathan@codesourcery.com>
5449
5450 * breakpoint.c (breakpoint_1): Add filter argument, return number of
5451 breakpoints printed.
5452 (is_hardware_watchpoint): Make argument const.
5453 (is_watchpoint): Ditto.
5454 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
5455 use it everywhere.
5456 (breakpoints_info): Pass NULL to breakpoint_1.
5457 (maintenance_info_breakpoints): Ditto.
5458 (watchpoints_info): New function.
5459 (tracepoints_info): Use breakpoint_1 filter.
5460 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
5461 (_initialize_breakpoint): Make "info watchpoints" its own command.
5462 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
5463 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
5464
af54718e
SS
54652010-04-04 Stan Shebs <stan@codesourcery.com>
5466
5467 * tracepoint.c (tfile_fetch_registers): Add fallback case.
5468
74d1f91e
JK
54692010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5470
5471 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
5472 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
5473
91d91ceb
JK
54742010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5475
5476 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
5477 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
5478
60531b24
JK
54792010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5480
5481 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
5482 code form.
5483
a3c4230a
HZ
54842010-04-02 Hui Zhu <teawater@gmail.com>
5485
5486 * i386-tdep.c (OT_DQUAD): New enum.
5487 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
5488 SSE3, SSSE3 and SSE4.
5489
b15758fe
HZ
54902010-04-02 Hui Zhu <teawater@gmail.com>
5491
5492 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
5493 "*addr = 0".
5494
afd02f27
PA
54952010-04-02 Pedro Alves <pedro@codesourcery.com>
5496
5497 * tracepoint.c (trace_dump_actions): New, factored out from
5498 trace_dump_command, and adjusted to recurse into while-stepping's
5499 action list.
5500 (trace_dump_command): Use it.
5501
5cea2a26
PA
55022010-04-02 Pedro Alves <pedro@codesourcery.com>
5503
5504 * breakpoint.h (struct counted_command_line): Moved definition to
5505 breakpoint.c, and forward declare.
5506 (breakpoint_commands): Declare.
5507 * breakpoint.c (struct counted_command_line): Moved here.
5508 (breakpoint_commands): New.
5509 * tracepoint.c (encode_actions): Use breakpoint_commands.
5510 * remote.c (remote_download_tracepoint): Ditto.
5511
7c47795c
L
55122010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5513
5514 * remote.c (remote_parse_stop_reply): Use hex_string instead
5515 of phex_nz for error.
5516
fff87407
SS
55172010-04-01 Stan Shebs <stan@codesourcery.com>
5518 Nathan Sidwell <nathan@codesourcery.com>
5519
5520 * tracepoint.h (enum actionline_type): Remove.
5521 (validate_actionline): Change return to void.
5522 * tracepoint.c (report_agent_reqs_errors): New function.
5523 (validate_actionline): Call it, change return to void, report errors
5524 more consistently.
5525 (collect_symbol): Call report_agent_reqs_errors.
5526 (encode_actions_1): Ditto.
5527 (encode_actions): Don't expect a result from validate_actionline.
5528
615bcdef
SS
55292010-04-01 Stan Shebs <stan@codesourcery.com>
5530
5531 * tracepoint.c (trace_start_command): Confirm if trace is running.
5532 (trace_stop_command): Error if trace not running.
5533
fe01d668
L
55342010-04-01 H.J. Lu <hongjiu.lu@intel.com>
5535
5536 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
5537 (AMD64_NUM_LOWER_BYTE_REGS): New.
5538 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
5539 (amd64_pseudo_register_write): Likewise.
5540 (amd64_init_abi): Set num_byte_regs to 20.
5541
86b17b60
PA
55422010-04-01 Pedro Alves <pedro@codesourcery.com>
5543
5544 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
5545 (prev_breakpoint_count): New.
5546 (set_breakpoint_count): Adjust.
5547 (rbreak_start_breakpoint_count): New.
5548 (start_rbreak_breakpoints): Adjust.
5549 (end_rbreak_breakpoints): Adjust.
5550 (struct commands_info) <arg>: New field.
5551 (do_map_commands_command): Tweak output to include breakpoint spec
5552 range.
5553 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
5554 ARG was empty on entry. Set INFO's arg.
5555 (create_breakpoint): Adjust.
5556
5557 * NEWS: Clarify `commands' changes.
5558
2c58c0a9
PA
55592010-04-01 Pedro Alves <pedro@codesourcery.com>
5560
5561 * tracepoint.c: Include stack.h.
5562 (struct add_local_symbols_data): New.
5563 (do_collect_symbol): New.
5564 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
5565 iterate_over_block_local_vars.
5566 * stack.c (print_block_frame_locals): Rewrite as ...
5567 (iterate_over_block_locals): ... this. Take a callback function
5568 pointer and generic data pointer, and call that instead of
5569 print_variable_and_value.
5570 (struct print_variable_and_value_data): New.
5571 (do_print_variable_and_value): New.
5572 (iterate_over_block_local_vars): New, abstracted out from
5573 print_frame_local_vars.
5574 (print_frame_local_vars): Rewrite using
5575 iterate_over_block_local_vars.
5576 (iterate_over_block_arg_vars): New, abstracted out from
5577 print_frame_arg_vars.
5578 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
5579 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
5580 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
5581
d476da0e
RE
55822010-03-31 Richard Earnshaw <rearnsha@arm.com>
5583
5584 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 5585 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
5586 PC register.
5587
8072405b
JK
55882010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
5589
5590 Fix crash on reading wrong function declaration DWARF.
5591 * dwarf2read.c (read_subroutine_type): New variable void_type.
5592 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
5593 more close to their use.
5594
8bf6485c
SS
55952010-03-31 Stan Shebs <stan@codesourcery.com>
5596
5597 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 5598 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
5599 * tracepoint.c (save_trace_state_variables): New function.
5600 * tracepoint.h (save_trace_state_variables): Declare it.
5601
2ae2a0b7
PM
56022010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
5603
1a161f72 5604 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 5605
86ffb506
KS
56062010-03-30 Keith Seitz <keiths@redhat.com>
5607
5608 * c-typeprint.c (c_type_print_args): Don't print "void"
5609 for java, regardless of whether it is TYPE_PROTOTYPED.
5610 Use the passed-in language instead of current_language.
5611 (c_type_print_varspec_suffix): Use current_language instead
5612 of assuming language_c.
5613 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
5614 any return type specifier from the physname.
5615
956c2c8b
PA
56162010-03-30 Pedro Alves <pedro@codesourcery.com>
5617
5618 * tui/tui-interp.c (tui_is_toplevel): New.
5619 (tui_init): Set it.
5620 (tui_allowed_p): New.
5621 * tui/tui.c (tui_enable): Check if the TUI is allowed before
5622 enabling it.
5623 * tui/tui.h (tui_allowed_p): Declare.
5624
98e5a990
TT
56252010-03-30 Ozkan Sezer <sezeroz@gmail.com>
5626
5627 * serial.h: Include winsock2.h before windows.h.
5628
c8d5aac9
L
56292010-03-30 H.J. Lu <hongjiu.lu@intel.com>
5630
5631 * NEWS: Mention xmlRegisters= in qSupported packet.
5632
5633 * i386-tdep.c: Include "remote.h".
5634 (_initialize_i386_tdep): Call register_remote_support_xml.
5635
5636 * remote.c (remote_support_xml): New.
5637 (register_remote_support_xml): Likewise.
5638 (remote_query_supported_append): Likewise.
5639 (remote_query_supported): Support remote_support_xml.
5640
5641 * remote.h (register_remote_support_xml): New.
5642
76a2b958
SS
56432010-03-29 Stan Shebs <stan@codesourcery.com>
5644
42e08e69
SS
5645 * tracepoint.c (trace_find_line_command): Remove dead code.
5646
409873ef
SS
5647 * tracepoint.h (struct uploaded_string): New struct.
5648 (struct uploaded_tp): New fields for source strings.
5649 * breakpoint.c (this_utp, next_cmd): New globals.
5650 (read_uploaded_action): New function.
5651 (create_tracepoint_from_upload): Fill in more parts
5652 of a tracepoint.
5653 * tracepoint.c (encode_source_string): New function.
5654 (trace_save): Write out source strings, fix error checks.
5655 (parse_tracepoint_definition): Add source string parsing.
5656 * remote.c (PACKET_TracepointSource): New packet type.
5657 (remote_download_command_source): New function.
5658 (remote_download_tracepoint): Download source pieces also.
5659 (_initialize_remote): Add packet config command.
5660
a0405854
SS
5661 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
5662 expression handler.
5663
76a2b958
SS
5664 * tracepoint.c (start_tracing): Check tracepoints before sending
5665 commands to target, don't start if all tracepoints disabled.
5666
d350db38
PA
56672010-03-28 Pedro Alves <pedro@codesourcery.com>
5668
12f2d601 5669 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 5670
8b9b7ef8
SS
56712010-03-26 Stan Shebs <stan@codesourcery.com>
5672
5673 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
5674
9766ced4
SS
56752010-03-26 Tom Tromey <tromey@redhat.com>
5676
5677 * breakpoint.c (commands_command_1): Duplicate 'arg'.
5678
059acae7
UW
56792010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5680
5681 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
5682 (skip_prologue_sal): Remove local definition.
5683 (resolve_sal_pc): Remove now unnecessary code.
5684 * linespec.c (minsym_found): Call skip_prologue_sal.
5685 * symtab.c (find_function_start_pc): Remove.
5686 (find_function_start_sal): Extract prologue skipping into ...
5687 (skip_prologue_sal): ... this new function. Handle code both
5688 with and without debug info. Respect SAL's explicit_pc and
5689 explicit_line flags. Inline old find_function_start_pc.
5690 * symtab.h (find_function_start_pc): Remove.
5691 (skip_prologue_sal): Add prototype.
5692
4a811a97
UW
56932010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5694
5695 * dwarf2read.c (read_func_scope): Also scan specification DIEs
5696 for DW_TAG_imported_module children.
5697
907af001
UW
56982010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5699
5700 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
5701 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
5702 * completer.c (add_struct_fields): Fix inverted logic.
5703
dde2d684
UW
57042010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
5705
5706 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
5707
a609a0c8
PA
57082010-03-26 Pedro Alves <pedro@codesourcery.com>
5709
5710 * tracepoint.c (current_trace_status): Don't make sure error_desc
5711 is non-NULL here.
5712 (parse_trace_status): Release a previous error_desc string, and
5713 set it to NULL by default. If stop reason is tracepoint_error,
5714 make sure error_desc is not left NULL.
5715
610197fd
PA
57162010-03-26 Pedro Alves <pedro@codesourcery.com>
5717
5718 * tracepoint.c (trace_save): Remove X from tracepoint error
5719 description.
5720
99b5e152
PA
57212010-03-26 Pedro Alves <pedro@codesourcery.com>
5722
5723 * tracepoint.c (parse_trace_status): Don't allow plain strings in
5724 the terror description. Don't expect an X prefix.
5725
6c28cbf2
SS
57262010-03-25 Stan Shebs <stan@codesourcery.com>
5727
5728 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
5729 (struct trace_status): New field error_desc.
5730 * tracepoint.c (stop_reason_names): Add terror.
5731 (current_trace_status): Ensure non-NULL error description.
5732 (trace_status_command): Add error report.
5733 (trace_status_mi): Ditto.
5734 (trace_save): Add special case for error description.
5735 (parse_trace_status): Add case for errors.
5736
418835cc
KS
57372010-03-25 Keith Seitz <keiths@redhat.com>
5738
5739 * dwarf2read.c (read_subroutine_type): If the compilation unit
5740 language is Java, mark any formal parameter named "this" as
5741 artificial (GCC/43521).
5742 (dwarf2_name): Add special handling for Java constructors.
5743
aa7d318d
TT
57442010-03-25 Tom Tromey <tromey@redhat.com>
5745
5746 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
5747 * infrun.c (handle_inferior_event): Change initialization of
5748 stop_stack_dummy.
5749 (handle_inferior_event): Change assignment to stop_stack_dummy.
5750 (normal_stop): Update use of stop_stack_dummy.
5751 (struct inferior_status) <stop_stack_dummy>: Change type.
5752 * inferior.h (stop_stack_dummy): Update.
5753 * infcmd.c (stop_stack_dummy): Change type.
5754 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
5755 function.
5756 (call_function_by_hand): Call set_std_terminate_breakpoint.
5757 Rewrite std::terminate handling.
5758 * breakpoint.h (enum bptype) <bp_std_terminate,
5759 bp_std_terminate_master>: New.
5760 (enum stop_stack_kind): New.
5761 (struct bpstat_what) <call_dummy>: Change type.
5762 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
5763 Declare.
5764 * breakpoint.c (create_std_terminate_master_breakpoint): New
5765 function.
5766 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
5767 Call create_std_terminate_master_breakpoint.
5768 (print_it_typical): Handle new breakpoint kinds.
5769 (bpstat_stop_status): Handle bp_std_terminate_master.
5770 (bpstat_what): Correctly set call_dummy field. Handle
5771 bp_std_terminate_master and bp_std_terminate.
5772 (print_one_breakpoint_location): Update.
5773 (allocate_bp_location): Update.
5774 (set_std_terminate_breakpoint): New function.
5775 (delete_std_terminate_breakpoint): Likewise.
5776 (create_thread_event_breakpoint): Update.
5777 (delete_command): Update.
5778 (breakpoint_re_set_one): Update.
5779 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
5780
82ccf5a5
JK
57812010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5782
5783 * symfile.c (build_section_addr_info_from_bfd): New.
5784 (build_section_addr_info_from_objfile): Base it on
5785 build_section_addr_info_from_bfd.
5786 (addrs_section_compar, addrs_section_sort): New.
5787 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
5788 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
5789 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
5790
737c4c52
MS
57912010-03-24 Michael Snyder <msnyder@localhost.localdomain>
5792
8d95cc3b 5793 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
5794 Remove unused local variable.
5795
95a42b64
TT
57962010-03-24 Tom Tromey <tromey@redhat.com>
5797
5798 PR breakpoints/9352:
5799 * NEWS: Mention changes to `commands' and `rbreak'.
5800 * symtab.c (do_end_rbreak_breakpoints): New function.
5801 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
5802 end_rbreak_breakpoints.
5803 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
5804 (set_breakpoint_count): Likewise. Clear last_was_multi.
5805 (multi_start, multi_end, last_was_multi): New globals.
5806 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
5807 functions.
5808 (struct commands_info): New
5809 (do_map_commands_command): New function.
5810 (commands_command_1): New function.
5811 (commands_command): Use it.
5812 (commands_from_control_command): Likewise.
5813 (do_delete_breakpoint): New function.
5814 (delete_command): Use it.
5815 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
5816 (do_map_disable_breakpoint): New function.
5817 (disable_command): Use it.
5818 (do_map_enable_breakpoint): New function.
5819 (enable_command): Use it.
5820 (enable_once_breakpoint): Add argument.
5821 (enable_once_command): Update.
5822 (enable_delete_breakpoint): Add argument.
5823 (enable_delete_command): Update.
5824 (break_command_really): Set last_was_multi when needed.
5825 (check_tracepoint_command): Fix formatting.
5826 (validate_commands_for_breakpoint): New function.
5827 (breakpoint_set_commands): Use it.
5828 (tracepoint_save_command): Update.
5829 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
5830 Declare.
5831
9add0f1b
TT
58322010-03-24 Tom Tromey <tromey@redhat.com>
5833
5834 * breakpoint.h (struct counted_command_line): New struct.
5835 (struct breakpoint) <commands>: Change type.
5836 (struct bpstats) <commands>: Change type.
5837 <commands_left>: New field.
5838 * breakpoint.c (alloc_counted_command_line): New function.
5839 (incref_counted_command_line): Likewise.
5840 (decref_counted_command_line): Likewise.
5841 (do_cleanup_counted_command_line): Likewise.
5842 (make_cleanup_decref_counted_command_line): Likewise.
5843 (breakpoint_set_commands): Use decref_counted_command_line and
5844 alloc_counted_command_line.
5845 (commands_command): Don't error if breakpoint commands are
5846 executing.
5847 (commands_from_control_command): Likewise.
5848 (bpstat_free): Update.
5849 (bpstat_copy): Likewise.
5850 (bpstat_clear_actions): Likewise.
5851 (bpstat_do_actions_1): Likewise.
5852 (bpstat_stop_status): Likewise.
5853 (print_one_breakpoint_location): Likewise.
5854 (delete_breakpoint): Likewise.
5855 (bpstat_alloc): Initialize new field.
5856 (tracepoint_save_command): Update.
5857 * tracepoint.c (encode_actions): Update.
5858 (trace_dump_command): Update.
5859
a6c727b2
DJ
58602010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
5861
5862 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
5863 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
5864 (read_structure_type): For RealView, set TYPE_STUB on structures with
5865 no byte size and no children.
5866 (read_subroutine_type): Mark functions as prototyped by default.
5867 * symtab.c (producer_is_realview): New function.
5868 * symtab.h (expand_line_sal): Fix declaration formatting.
5869 (producer_is_realview): Declare.
5870
0d39a070
DJ
58712010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
5872
5873 * arm-tdep.c (skip_prologue_function): New function.
5874 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
5875 (thumb_analyze_prologue): Document return value. Recognize more
5876 Thumb instructions, skippable calls, and some Thumb-2 instructions.
5877 Add debug output.
5878 (arm_skip_prologue): Remove call dummy check. Check the prologue
5879 for non-GNU compilers.
5880 (arm_instruction_changes_pc): New function.
5881 (arm_analyze_prologue): New function, broken out from
5882 arm_scan_prologue. Recognize more ARM instructions and skippable
5883 calls. Update comments. Handle NULL cache. Return the address
5884 of the first unrecognized instruction. Do not skip past other
5885 instructions which change control flow. Add debug output.
5886 (arm_scan_prologue): Use arm_analyze_prologue.
5887 (ARM_PC_32): Delete.
5888 (shifted_reg_val): Simplify ARM_PC_32 check.
5889
4baf5cf4
VP
58902010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5891
5892 * tracepoint.c (tvariables_info_1): Actually compute
5893 the number of rows in the result.
5894
4a5e7a5b
PA
58952010-03-24 Pedro Alves <pedro@codesourcery.com>
5896
5897 * remote.c (crc32): Constify `buf' parameter.
5898 (remote_verify_memory): New, abstracted out from...
5899 (compare_sections_command): ... this. Remove hardcoded target
5900 checks.
5901 (init_remote_ops): Install remote_verify_memory.
5902 * target.c (target_verify_memory): New.
5903 * target.h (struct target_ops) <to_verify_memory>: New field.
5904 (target_verify_memory): Declare.
5905
011aacb0
VP
59062010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5907
5908 Implement -trace-save.
5909
5910 * mi-cmds.h (mi_cmds_trace_save): Declare.
5911 * mi-cmds.c (mi_cmds): Register -trace-save.
5912 * mi/mi-main.c (mi_cmd_trace_save): New.
5913 * remote.c (remote_save_trace_data): Take const parameter.
5914 * target.h (struct target_ops::to_save_trace_data): Take
5915 const parameter.
5916 * target.c (update_current_target): Adjust to the above.
5917 * tracepoint.c (trave_save): New, extracted from
5918 (trace_save_command): ...this.
5919 (tfile_trace_find): Remove message that is unnecessary now
5920 that 'tfind' reports found frame.
5921 * tracepoint.h (trace_save): Declare.
5922
f197e0f1
VP
59232010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5924
5925 Implement -trace-find.
5926
5927 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
5928 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
5929 * mi/mi-main.c (mi_cmd_trace_find): New.
5930 * target.h (struct target_ops): Document to_trace_find.
5931 * tracepoint.h (tfind_1): Declare.
5932 * tracepoint.c (finish_tfind_command): Rename to...
5933 (tfind_1): ...this.
5934 * remote.c (remote_trace_find): Return -1 if target say
5935 there's no frame. Improve error diagnostics.
5936
40e1c229
VP
59372010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5938
5939 -trace-define-variable and -trace-list-variables.
5940
5941 * tracepoint.c (create_trace_state_variable): Make
5942 private copy of name, as opposed to assuming the
5943 pointer lives forever.
5944 (tvariables_info_1): New.
5945 (tvariables_info): Use the above.
5946 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
5947 Declare.
5948 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
5949 and -trace-list-variables.
5950 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
5951 (mi_cmd_trace_list_variables): New.
5952 * mi/mi-main.c (mi_cmd_trace_define_variable)
5953 (mi_cmd_trace_list_variables): New.
5954
9b4c786c
VP
59552010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5956
5957 Implement -break-passcount.
5958
5959 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
5960 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
5961 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
5962
f224b49d
VP
59632010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5964
5965 -trace-start/-trace-end/-trace-status.
5966
5967 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
5968 and -trace-stop.
5969 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
5970 (mi_cmd_trace_stop): Declare.
5971 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
5972 (mi_cmd_trace_stop): New.
5973 * tracepoint.c (start_tracing): New, extracted from...
5974 (trace_start_command): ...this.
5975 (trace_status_mi): New.
5976 * tracepoint.h (struct trace_status): Document
5977 stopping_tracepoint.
5978 (start_tracing, stop_tracing, trace_status_mi): Declare.
5979
6534d786
VP
59802010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5981
5982 Implement creating tracepoints with -break-insert.
5983
5984 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
5985 to mean that tracepoint should be created.
5986
51661e93
VP
59872010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5988
5989 * breakpoint.c (check_no_tracepoint_commands): Use
5990 current spelling of 'teval'.
5991
a7bdde9e
VP
59922010-03-24 Vladimir Prus <vladimir@codesourcery.com>
5993
5994 Unify actions and commands
5995
5996 * defs.h (read_command_lines, read_command_lines_1): New
5997 parameters validator and closure.
5998 * tracepoint.h (struct action_line): Remove.
5999 * breakpoint.h (struct breakpoint): Remove the 'actions'
6000 field.
6001 * defs.h (enum command_control_type): New value
6002 while_stepping_control.
6003 (struct command_line): Add comments.
6004 * breakpoint.c (breakoint_is_tracepoint): New.
6005 (breakpoint_set_commands): For tracepoints,
6006 verify the commands are permissible.
6007 (check_tracepoint_commands): New.
6008 (commands_command): Require that each new line is validated using
6009 check_tracepoint_command, if we set commands for a tracepoint.
6010 (create_tracepoint_from_upload): Likewise.
6011 (print_one_breakpoint_location): Remove the code to print
6012 actions specifically.
6013 (tracepoint_save_command): Relay to print_command_lines.
6014 * cli/cli-script.c (process_next_line): New parameters validator
6015 and closure. Handle 'while-stepping'. Call validator if not null.
6016 (read_command_lines, read_command_lines1): Likewise.
6017 (recurse_read_control_structure): New parameters validator and
6018 closure. Handle while_stepping_control.
6019 (print_command_lines): Handle while-stepping.
6020 (get_command_line, define_command, document_command): Adjust.
6021 * remote.c (remote_download_tracepoint): Adjust.
6022 * tracepoint.c (make_cleanup_free_actions, read_actions)
6023 (free_actions, do_free_actions_cleanup): Remove.
6024 (trace_actions_command): Use read_command_lines.
6025 (validate_actionline): Use error in one place.
6026 (encode_actions_1): New, extracted from...
6027 (encode_actions): ...this. Also use cleanups for exception
6028 safety.
6029 (trace_dump_command): Adjust.
6030 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
6031 it's tracepoint.
6032
64e3cf3d
MF
60332010-03-23 Mike Frysinger <vapier@gentoo.org>
6034
6035 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
6036
52e9fde8
SS
60372010-03-22 Stan Shebs <stan@codesourcery.com>
6038
6039 * value.c (value_static_field): Be lazy about the field's value.
6040
508ccb1f
TT
60412010-03-22 Reid Kleckner <reid@kleckner.net>
6042
6043 PR gdb/11094
6044 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
6045 bp_jit_event.
6046 (disable_breakpoints_in_shlibs): Likewise.
6047
acebe513
UW
60482010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
6049
6050 * dwarf2read.c (partial_die_parent_scope): Work around buggy
6051 GCC 4.1 debug info generation (GCC PR c++/28460).
6052 (determine_prefix): Likewise.
6053
957b8b5a
DJ
60542010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
6055
6056 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
6057 get_current_arch.
6058 * tui/tui-layout.c (extract_display_start_addr): Likewise.
6059
3b11a015
SS
60602010-03-19 Stan Shebs <stan@codesourcery.com>
6061
6062 * ax-gdb.c (gen_fetch): Handle bool.
6063 (gen_usual_unary): Ditto.
6064 (gen_cast): Ditto.
6065 (gen_equal): New function.
6066 (gen_less): New function.
6067 (gen_expr_binop_rest): Call them, also return integer type from
6068 logical operations.
6069 (gen_expr): Ditto.
6070
20781792
TT
60712010-03-19 Tom Tromey <tromey@redhat.com>
6072
6073 * jv-lang.c (jv_dynamics_objfile_data_key)
6074 (jv_type_objfile_data_key): New globals.
6075 (class_symtab): Move earlier.
6076 (jv_per_objfile_free): New function.
6077 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
6078 parameter.
6079 Remove ancient #if 1.
6080 (add_class_symbol): Remove redundant declaration.
6081 (java_lookup_class): Use alloc_type, not alloc_type_arch.
6082 (java_link_class_type): Mark as static. Update.
6083 (jv_clear_object_type): New function.
6084 (set_java_object_type): Likewise.
6085 (get_java_object_type): Use set_java_object_type.
6086 (is_object_type): Likewise.
6087 (_initialize_java_language): Register new objfile keys.
6088 (get_java_class_symtab): Add 'gdbarch' parameter.
6089 (add_class_symtab_symbol): Update.
6090 (type_from_class): Update.
6091
cf3e25ca
SS
60922010-03-19 Stan Shebs <stan@codesourcery.com>
6093
8d95cc3b 6094 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 6095
f1ae44c9 60962010-03-18 Joel Brobecker <brobecker@adacore.com>
6097
6098 GDB 7.1 released.
6099
4daf5ac0
SS
61002010-03-18 Stan Shebs <stan@codesourcery.com>
6101 Pedro Alves <pedro@codesourcery.com>
6102
6103 * target.h (struct target_ops): New method
6104 to_set_circular_trace_buffer.
6105 (target_set_circular_trace_buffer): New macro.
6106 * target.c (update_current_target): Add
6107 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
6108 default behavior.
6109 * remote.c (remote_set_circular_trace_buffer): New function.
6110 (init_remote_ops): Add it to vector.
6111 * tracepoint.h (struct trace_status): New field traceframes_created,
6112 change buffer_size and buffer_free to int.
6113 * tracepoint.c (circular_trace_buffer): New global.
6114 (start_tracing): Send values of disconnected tracing and circular
6115 trace buffer settings.
6116 (set_circular_trace_buffer): New function.
6117 (parse_trace_state): Handle total space and frames created.
6118 (trace_status_command): Display total space and total frames
6119 created.
6120 (trace_save): Write out new status values.
6121 (parse_trace_status): Set traceframe_count, traceframes_created,
6122 buffer_free and buffer_size to -1 by default.
6123 (_initialize_tracepoint): New setshow for circular-trace-buffer.
6124 * NEWS: Mention the circular trace buffer option.
6125
40c549d6
TT
61262010-03-18 Tom Tromey <tromey@redhat.com>
6127
6128 * infcmd.c (finish_command_continuation): Wrap print_return_value
6129 in TRY_CATCH.
6130
e8d05480
JB
61312010-03-18 Joel Brobecker <brobecker@adacore.com>
6132
6133 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
6134 DIE has a name before creating the associated partial symbol.
6135 (read_func_scope): Emit a complaint if the subprogram does not
6136 have a name or when we can't extract the subprogram PC bounds.
6137
441b986a
UW
61382010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
6139
6140 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
6141 instead of selected frame architecture.
6142
4247603b
PA
61432010-03-18 Pedro Alves <pedro@codesourcery.com>
6144
6145 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
6146 a valid selected thread, and that it is not running.
6147 (advance_command): Ditto.
6148 (finish_command): Ditto.
6149
400c6af0
SS
61502010-03-17 Stan Shebs <stan@codesourcery.com>
6151
3a96536b
SS
6152 * ax-gdb.c (require_rvalue): Disallow non-scalars.
6153
573cda03
SS
6154 * infcall.c: Include tracepoint.h.
6155 (call_function_by_hand): Disallow calls in tfind mode.
6156 * infcmd.c: Include tracepoint.h.
6157 (ensure_not_tfind_mode): New function.
6158 (continue_1): Call it.
6159 (step_1) Ditto.
6160 (jump_command): Ditto.
6161 (signal_command): Ditto.
6162 (advance_command): Ditto.
6163 (until_command): Ditto.
6164 (finish_command): Ditto.
6165 * tracepoint.h (disconnect_or_stop_tracing): Declare.
6166
400c6af0
SS
6167 * ax-gdb.h (struct axs_value): New field optimized_out.
6168 (gen_trace_for_var): Add gdbarch argument.
6169 * ax-gdb.c (gen_trace_static_fields): New function.
6170 (gen_traced_pop): Call it, add gdbarch argument.
6171 (gen_trace_for_expr): Update call to it.
6172 (gen_trace_for_var): Ditto, and report optimized-out variables.
6173 (gen_struct_ref_recursive): Check for optimized-out value.
6174 (gen_struct_elt_for_reference): Ditto.
6175 (gen_static_field): Pass gdbarch instead of expression, assume
6176 optimization if field not found.
6177 (gen_var_ref): Set the optimized_out flag.
6178 (gen_expr): Error on optimized-out variable.
6179 * tracepoint.c (collect_symbol): Handle struct-valued vars as
6180 expressions, skip optimized-out variables with computed locations.
6181 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
6182 erroring out if location expression missing.
6183 (loclist_tracepoint_var_ref): Don't error out here.
6184
a3b2a86b
TT
61852010-03-17 Tom Tromey <tromey@redhat.com>
6186
6187 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
6188 DWARF data is available.
6189
38963c97
DJ
61902010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
6191
6192 * symfile.c (generic_load): Reset breakpoints after loading.
6193
ddabfc73
TT
61942010-03-17 Tom Tromey <tromey@redhat.com>
6195
6196 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
6197
d8c09fb5
JK
61982010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6199
6200 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
6201 create_breakpoint call, adjust the parameters.
6202
bbb0eef6
JK
62032010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6204 Chandru <chandru@in.ibm.com>
6205
6206 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
6207 * valarith.c (value_subscripted_rvalue): Suppress error if
6208 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
6209
46956e39
HZ
62102010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
6211
6212 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
6213
b8d088ac
JB
62142010-03-16 Joel Brobecker <brobecker@adacore.com>
6215
6216 * ada-tasks.c (task_command_1): Check that the task ptid is valid
6217 before doing the associated thread switch.
6218
322be962
DJ
62192010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
6220
6221 * MAINTAINERS: Update my email address.
6222
8cdf0e15
VP
62232010-03-16 Vladimir Prus <vladimir@codesourcery.com>
6224
6225 Simplify MI breakpoint setting.
6226
6227 * breakpoint.c (break_command_really): Make nonstatic and
6228 rename to...
6229 (create_breakpoint): ...this. Rename prior function by this name
6230 to...
6231 (create_breakpoint_sal): ...this.
6232 (create_breakpoints): Rename to...
6233 (create_breakpoints_sal): ...this.
6234 (set_breakpoint): Remove.
6235 * breakpoint.h: Adjust to above changes.
6236 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
6237
b6e7192f
SS
62382010-03-15 Stan Shebs <stan@codesourcery.com>
6239
6240 * ax-gdb.c: Include cp-support.h.
6241 (find_field): Remove.
6242 (gen_primitive_field): New function.
6243 (gen_struct_ref_recursive): New function.
6244 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
6245 of find_field.
6246 (gen_static_field): New function.
6247 (gen_struct_elt_for_reference): New.
6248 (gen_namespace_elt): New.
6249 (gen_maybe_namespace_elt): New.
6250 (gen_aggregate_elt_ref): New.
6251 (gen_expr): Add OP_SCOPE, display opcode name in error message.
6252
1054b214
TT
62532010-03-15 Tom Tromey <tromey@redhat.com>
6254
6255 * dwarf2read.c (die_needs_namespace): Also return 0 for
6256 DW_TAG_subprogram.
6257
13387711
SW
62582010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
6259
6260 PR c++/7936:
6261 * cp-support.h: Added char *declaration element to using_direct
6262 data struct.
6263 (cp_add_using): Added char *declaration argument.
6264 (cp_add_using_directive): Ditto.
6265 (cp_lookup_symbol_imports): made extern.
6266 * cp-namespace.c: Updated with the above changes.
6267 * dwarf2read.c (read_import_statement): Ditto.
6268 (read_namespace): Ditto.
6269 (read_import_statement): Support import declarations.
6270 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
6271 declarations.
6272 Added support for 'declaration_only' search.
6273 (cp_lookup_symbol_namespace): Attempt to search for the name as
6274 is before consideration of imports.
6275 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
6276 search at every block level search.
6277 Now takes language argument.
6278 (lookup_symbol_aux): Updated.
6279
6e31430b
TT
62802010-03-15 Tom Tromey <tromey@redhat.com>
6281
6282 * c-exp.y (name_not_typename): Add 'operator' clause.
6283
4dea3bb7 62842010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
6285
6286 * configure.ac: Exit if ${gdb_target_obs}" is not set.
6287 * configure: Regenerate.
6288
4d9743af
JK
62892010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6290
6291 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
6292 and ".sdynbss". Update the comment.
6293
f75150fe
JZ
62942010-03-15 Jie Zhang <jie@codesourcery.com>
6295
6296 * MAINTAINERS: Update my email address.
6297
3c13bc11
DJ
62982010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6299
6300 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
6301
43484f03
DJ
63022010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
6303
6304 * charset.c [USE_WIN32API]: Include <windows.h>.
6305 (_initialize_charset): Correct type of w32_host_default_charset.
6306
5f25d77d
PA
63072010-03-14 Pedro Alves <pedro@codesourcery.com>
6308
6309 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
6310
1c809c68
TT
63112010-03-12 Tom Tromey <tromey@redhat.com>
6312
6313 PR c++/9708:
6314 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
6315 in a lexical block does not need a namespace.
6316 (new_symbol) <DW_TAG_variable>: Put extern variables on
6317 list_in_scope in all cases.
6318
948103cf
SS
63192010-03-12 Stan Shebs <stan@codesourcery.com>
6320
6321 * ax-gdb.c (gen_expr): Add shift expressions.
6322 (gen_expr_binop_rest): Ditto.
6323
00ae8fef
SW
63242010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
6325
6326 * buildsym.c (finish_block): Reset using_directives pointer
6327 after block initialization.
6328
9cad29ac
L
63292010-03-12 H.J. Lu <hongjiu.lu@intel.com>
6330
6331 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
6332 * i386-tdep.c (i386_word_names): Likewise.
6333
2f4d8875
PA
63342010-03-12 Pedro Alves <pedro@codesourcery.com>
6335
6336 * target.c (memory_xfer_partial): Don't use the stack cache if
6337 inspecting trace frames.
6338 * tracepoint.c (finish_tfind_command): Invalidate the target
6339 dcache.
6340
ccf26247
JK
63412010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6342
6343 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
6344 for the PIC displacement, print also the displacement value.
6345 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
6346
477c84a7
KB
63472010-03-10 Kevin Buettner <kevinb@redhat.com>
6348
6349 * remote-mips.c (close_ports, mips_initialize_cleanups)
6350 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
6351 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
6352 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
6353 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
6354 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
6355 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
6356 comments describing each of these functions.
6357 (mips_enter_debug, mips_exit_debug, common_open)
6358 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
6359 blank line after the comment describing the function.
6360
01c30d6e
JK
63612010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6362
6363 * solib-svr4.c (svr4_exec_displacement): Return now success, new
6364 parameter displacementp. Update comment.
6365 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
6366 element exists. Return if svr4_exec_displacement was not successful.
6367 Update comment.
6368
09919ac2
JK
63692010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6370 Daniel Jacobowitz <dan@codesourcery.com>
6371
6372 * solib-svr4.c (read_program_header): Support type == -1 to read
6373 all program headers.
6374 (read_program_headers_from_bfd): New function.
6375 (svr4_static_exec_displacement): Remove and move the comment ...
6376 (svr4_exec_displacement): ... here. Remove variable found. New
6377 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
6378 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
6379 targets using read_program_headers_from_bfd. Remove the call of
6380 svr4_static_exec_displacement.
6381
d146bf1e
TT
63822010-03-10 Tom Tromey <tromey@redhat.com>
6383
6384 * dwarf2read.c (struct pubnames_header): Remove.
6385 (_PUBNAMES_HEADER): Remove.
6386 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
6387 (struct aranges_header): Remove.
6388 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
6389 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
6390 (PUBNAMES_SECTION): Remove.
6391 (ARANGES_SECTION): Remove.
6392 (dwarf2_locate_sections): Don't handle pubnames or aranges.
6393 (dwarf2_build_psymtabs): Remove dead code.
6394 (dwarf2_build_psymtabs_easy): Remove.
6395
be391dca
TT
63962010-03-10 Tom Tromey <tromey@redhat.com>
6397
6398 * elfread.c (elf_symfile_read): Don't call
6399 dwarf2_build_frame_info.
6400 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
6401 (struct dwarf2_per_objfile) <objfile>: New field.
6402 (dwarf2_has_info): Now idempotent. Set objfile field.
6403 (dwarf2_read_section): Check and set readin field. Call
6404 posix_madvise.
6405 (dwarf2_build_psymtabs): Don't read all sections.
6406 (read_type_comp_unit_head): Read types section.
6407 (create_debug_types_hash_table): Likewise.
6408 (init_cu_die_reader): Add asserts.
6409 (process_type_comp_unit): Add assert.
6410 (dwarf2_build_psymtabs_hard): Read info section.
6411 (load_partial_comp_unit): Add assert.
6412 (create_all_comp_units): Read info section.
6413 (load_full_comp_unit): Likewise.
6414 (dwarf2_ranges_read): Read ranges section.
6415 (dwarf2_record_block_ranges): Add assert.
6416 (dwarf2_read_abbrevs): Read abbrev section.
6417 (read_indirect_string): Read str section.
6418 (dwarf_decode_line_header): Read line section.
6419 (read_signatured_type_at_offset): Read types section.
6420 (dwarf_decode_macros): Read macinfo section.
6421 (dwarf2_symbol_mark_computed): Read loc section.
6422 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
6423 dwarf2_build_frame_info.
6424 (dwarf2_build_frame_info): Unconditionally set
6425 dwarf2_frame_objfile_data on the objfile.
6426 * configure.ac: Check for posix_madvise.
6427 * config.in, configure: Rebuild.
6428
ccefe4c4
TT
64292010-03-10 Tom Tromey <tromey@redhat.com>
6430
e38df1d0
TT
6431 * xcoffread.c (xcoff_start_psymtab): Update.
6432 (xcoff_end_psymtab): Update.
6433 * psymtab.c (allocate_psymtab): Remove dead code.
6434 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
6435 void*.
6436 * mdebugread.c (parse_partial_symbols): Update.
6437 (new_psymtab): Likewise.
6438 * dwarf2read.c (process_psymtab_comp_unit): Update.
6439 (psymtab_to_symtab_1): Update.
6440 * dbxread.c (start_psymtab): Update.
6441 (end_psymtab): Likewise.
6442
be391dca 64432010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 6444
ccefe4c4
TT
6445 * xcoffread.c: Include psymtab.h.
6446 (xcoff_sym_fns): Update.
6447 * symtab.h (struct partial_symbol): Remove.
6448 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
6449 (struct partial_symtab): Remove.
6450 (PSYMTAB_TO_SYMTAB): Remove.
6451 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
6452 (find_pc_sect_psymtab): Remove.
6453 (find_pc_sect_symtab_via_partial): Declare.
6454 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
6455 (find_main_psymtab): Remove.
6456 (find_main_filename): Declare.
6457 (fixup_psymbol_section): Remove.
6458 (fixup_section): Declare.
6459 * symtab.c: Include psymtab.h.
6460 (lookup_symtab): Use lookup_symtab method.
6461 (lookup_partial_symtab): Remove.
6462 (find_pc_sect_psymtab_closer): Remove.
6463 (find_pc_sect_psymtab): Remove.
6464 (find_pc_sect_symtab_via_partial): New function.
6465 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
6466 (fixup_section): No longer static.
6467 (fixup_psymbol_section): Remove.
6468 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
6469 (lookup_global_symbol_from_objfile): Likewise.
6470 (lookup_symbol_aux_psymtabs): Remove.
6471 (lookup_symbol_aux_quick): New function.
6472 (lookup_symbol_global): Use lookup_symbol_aux_quick.
6473 (lookup_partial_symbol): Remove.
6474 (basic_lookup_transparent_type_quick): New function.
6475 (basic_lookup_transparent_type): Use it.
6476 (find_main_psymtab): Remove.
6477 (find_main_filename): New function.
6478 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
6479 (find_line_symtab): Use expand_symtabs_with_filename method.
6480 (output_partial_symbol_filename): New function.
6481 (sources_info): Use map_partial_symbol_filenames.
6482 (struct search_symbols_data): New type.
6483 (search_symbols_file_matches): New function.
6484 (search_symbols_name_matches): Likewise.
6485 (search_symbols): Use expand_symtabs_matching method.
6486 (struct add_name_data): Rename from add_macro_name_data.
6487 (add_macro_name): Update.
6488 (add_partial_symbol_name): New function.
6489 (default_make_symbol_completion_list): Use
6490 map_partial_symbol_names.
6491 (struct add_partial_symbol_name): New type.
6492 (maybe_add_partial_symtab_filename): New function.
6493 (make_source_files_completion_list): Use
6494 map_partial_symbol_filenames.
6495 (expand_line_sal): Use expand_symtabs_with_filename method.
6496 * symmisc.c: Include psymtab.h.
6497 (print_objfile_statistics): Use print_stats method.
6498 (dump_objfile): Use dump method.
6499 (dump_psymtab, maintenance_print_psymbols)
6500 (maintenance_info_psymtabs, maintenance_check_symtabs)
6501 (extend_psymbol_list): Remove.
6502 * symfile.h (struct quick_symbol_functions): New struct.
6503 (struct sym_fns) <qf>: New field.
6504 (sort_pst_symbols): Remove.
6505 (increment_reading_symtab): Declare.
6506 * symfile.c: Include psymtab.h.
6507 (compare_psymbols, sort_pst_symbols): Remove.
6508 (psymtab_to_symtab): Remove.
6509 (increment_reading_symtab): New function.
6510 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
6511 method.
6512 (set_initial_language): Use find_main_filename.
6513 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
6514 (free_named_symtabs): Remove unused code.
6515 (start_psymtab_common, add_psymbol_to_bcache)
6516 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
6517 Remove.
6518 * stack.c: Include psymtab.h, symfile.h.
6519 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
6520 * source.h (psymtab_to_fullname): Don't declare.
6521 * source.c: Include psymtab.h.
6522 (select_source_symtab): Use find_last_source_symtab method.
6523 (forget_cached_source_info): Use forget_cached_source_info
6524 method.
6525 (find_and_open_source): No longer static.
6526 (psymtab_to_fullname): Remove.
6527 * somread.c: Include psymtab.h.
6528 (som_sym_fns): Update.
6529 * psympriv.h: New file.
6530 * psymtab.h: New file.
6531 * psymtab.c: New file.
6532 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
6533 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
6534 * objfiles.c: Include psymtab.h.
6535 (objfile_relocate1): Use relocate method.
6536 (objfile_has_partial_symbols): Use has_symbols method.
6537 * mipsread.c: Include psymtab.h.
6538 (ecoff_sym_fns): Update.
6539 * mi/mi-cmd-file.c: Include psymtab.h.
6540 (print_partial_file_name): New function.
6541 (mi_cmd_file_list_exec_source_files): Use
6542 map_partial_symbol_filenames.
6543 * mdebugread.c: Include psympriv.h.
6544 * machoread.c: Include psympriv.h.
6545 (macho_sym_fns): Update.
6546 * m2-exp.y (yylex): Use lookup_symtab.
6547 * elfread.c: Include psympriv.h.
6548 (elf_sym_fns): Update.
6549 * dwarf2read.c: Include psympriv.h.
6550 * dbxread.c: Include psympriv.h.
6551 (aout_sym_fns): Update.
6552 * cp-support.c: Include psymtab.h.
6553 (read_in_psymtabs): Remove.
6554 (make_symbol_overload_list_qualified): Use
6555 expand_symtabs_for_function method.
6556 * coffread.c: Include psympriv.h.
6557 (coff_sym_fns): Update.
6558 * blockframe.c: Include psymtab.h.
6559 (find_pc_partial_function): Use find_pc_sect_symtab method.
6560 * ada-lang.h (ada_update_initial_language): Update.
6561 * ada-lang.c: Include psymtab.h.
6562 (ada_update_initial_language): Remove 'main_pst' argument.
6563 (ada_lookup_partial_symbol): Remove.
6564 (struct ada_psym_data): New type.
6565 (ada_add_psyms): New function.
6566 (ada_add_non_local_symbols): Use map_ada_symtabs method.
6567 (struct add_partial_datum): New type.
6568 (ada_add_partial_symbol_completions): New function.
6569 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
6570 (ada_exception_support_info_sniffer): Update.
6571 * Makefile.in (SFILES): Add psymtab.c.
6572 (COMMON_OBS): Add psymtab.o.
6573 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
6574
7d8500b7
PM
65752010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6576
6577 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
6578
c0cc3a76
SW
65792010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
6580
6581 PR C++/11236:
6582 * cp-namespace.c (cp_add_using): Deleted.
6583 (cp_add_using_directive): Use obstack allocations.
6584 Merged the function cp_add_using into this one.
6585 Added 'struct obstack *' argument.
6586 (cp_scan_for_anonymous_namespaces): Updated.
6587 * cp-support.h: Updated.
6588 * dwarf2read.c (read_import_statement): Updated.
6589 (read_namespace): Updated.
6590
452fa064
CF
65912010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
6592
6593 * windows-nat.c (cygwin_conv_path): Remove old macro.
6594
60e1c644
PA
65952010-03-10 Pedro Alves <pedro@codesourcery.com>
6596
6597 * breakpoint.c (condition_command): Handle watchpoint conditions.
6598 (is_hardware_watchpoint): Add comment.
6599 (is_watchpoint): New.
6600 (update_watchpoint): Don't reparse the watchpoint's condition
6601 unless necessary.
6602 (WP_IGNORE): New.
6603 (watchpoint_check): Use it.
6604 (bpstat_check_watchpoint): Handle it.
6605 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
6606 conditions in a frame where it makes sense.
6607 (watch_command_1): Store the innermost block of the condition
6608 expression.
6609 (delete_breakpoint): Delete the watchpoint condition expression.
6610 * breakpoint.h (struct bp_location) <cond>: Update comment.
6611 (struct breakpoint): New field `cond_exp_valid_block'.
6612
af6b7be1
JB
66132010-03-09 Joel Brobecker <brobecker@adacore.com>
6614
6615 Adjust handling of Ada DIEs after dwarf2_physname patch.
6616 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
6617
60c5c021
CF
66182010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
6619 Pierre Muller <muller@ics.u-strasbg.fr>
6620
6621 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
6622 from/to posix/win32.
6623 (windows_make_so): Use non-Cygwin 1.7 specific function.
6624 (windows_create_inferior): Make sure that cygallargs points to
6625 original args in non Cygwin 1.7. case.
6626
60a1502a
MS
66272010-03-09 Michael Snyder <msnyder@vmware.com>
6628
6629 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
6630 after target_read_memory to get host byte order.
6631 (i386_process_record): Ditto.
6632
94af9270
KS
66332010-03-09 Keith Seitz <keiths@redhat.com>
6634
6635 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
6636 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
6637 print out const or volatile qualifiers, too.
6638 (c_type_print_args): Add parameters show_artificial and language.
6639 Skip artificial parameters when requested.
6640 Use the appropriate language printer.
6641 (c_type_print_varspec): Tell c_type_print_args to skip artificial
6642 parameters and pass language_c.
6643 * dwarf2read.c (die_list): New file global.
6644 (struct partial_die_info): Update comments for name field.
6645 (pdi_needs_namespace): Renamed to ...
6646 (die_needs_namespace): ... this. Rewrite.
6647 (dwarf2_linkage_name): Remove.
6648 (add_partial_symbol): Do not predicate the call to
6649 partial_die_full_name based on pdi_needs_namespace.
6650 Remove call to cp_check_possible_namespace_symbols and associated
6651 outdated comments.
6652 (guess_structure_name): Do not inspect child subprogram DIEs.
6653 (dwarf2_fullname): Update comments.
6654 Use die_needs_namespace to assist in computing the name.
6655 (read_func_scope): Use dwarf2_name to get the DIE's name.
6656 Use dwarf2_physname to get the "linkage name" of the DIE.
6657 (dwarf2_add_member_field): Use dwarf2_physname instead of
6658 dwarf2_linkage_name.
6659 (read_structure_type): For structs and classes, set TYPE_NAME, too.
6660 (determine_class): Remove.
6661 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
6662 except Ada.
6663 (new_symbol): Unconditionally call dwarf2_name.
6664 Compute the "linkage name" using dwarf2_physname.
6665 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
6666 When determining to scan for anonymous C++ namespaces, ignore
6667 the linkage name.
6668 (dwarf2_physname): New function.
6669 (dwarf2_full_name): Move content to new function and call
6670 that.
6671 (dwarf2_compute_name): "New" function.
6672 (_initialize_dwarf2_read): Initialize die_list.
6673 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
6674 physname.
6675 (gnu_v3_print_method_ptr): Use the physname for virtual methods
6676 without a demangled name.
6677 Print out type information for non-virtual methods.
c8d5aac9 6678 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 6679 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
6680 If we found a file symtab, re-evaluate whether the remainder is_quoted.
6681 (decode_compound): Stop consuming at an open parenthesis.
6682 Keep template parameters.
6683 Keep any overload information.
6684 Keep keywords like "const".
6685 Remove paren_pointer.
6686 Move is_quoted check from set_flags to here.
6687 Remove #if 0 code from 2000. Ten years is long enough.
6688 (find_method): Before comparing symbol names, canonicalize the string
6689 from the user.
6690 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
6691 (find_method_overload_end): New function.
6692 (set_flags): Remove.
c8d5aac9
L
6693 (decode_compound): Assume that parentheses are matched.
6694 It's a lot easier.
94af9270
KS
6695 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
6696 to cplus_demangle.
6697 * linespec.c (decode_line_1): Keep important keywords like
6698 "const" and "volatile".
6699 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
6700 * typeprint.h (c_type_print_args): Add declaration.
6701 * ui-file.c (do_ui_file_obsavestring): New function.
6702 (ui_file_obsavestring): New function.
6703 * ui-file.h (ui_file_obsavestring): Add declaration.
6704 * valops.c (find_overload_match): Resolve the object to
6705 a non-pointer type.
6706 If the object is a data member, search the object for the member
6707 and return with staticp set.
6708 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
6709 Do not attempt to extract a function name from non-function types.
6710 If the extracted function name and the original name are the same,
6711 we don't have a C++ method.
6712
8d95cc3b
PA
6713 From Jan Kratochvil <jan.kratochvil@redhat.com>:
6714 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
6715
6716 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
6717 and arguments from symbol lookups.
6718 * ax-gdb.c (gen_expr): Likewise.
6719 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
6720 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
6721 lookup_possible_namespace_symbol): Likewise.
6722 * cp-support.c (read_in_psymtabs): Likewise.
6723 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
6724 * language.h (la_lookup_symbol_nonlocal): Likewise.
6725 * scm-valprint.c (scm_inferior_print): Likewise.
6726 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
6727 * solib-svr.c (elf_lookup_lib): Likewise.
6728 * solib.c (show_auto_solib_add): Likewise.
6729 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
6730 * symmisc.c (maintenance_check_symtabs): Likewise.
6731 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
6732 lookup_symbol_aux_local, lookup_symbol_aux_block,
6733 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
6734 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
6735 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
6736 basic_lookup_transparent_type, find_main_psymtab,
6737 lookup_block_symbol): Likewise.
6738 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
6739 lookup_symbol_global, lookup_symbol_aux_block,
6740 lookup_symbol_partial_symbol, lookup_block_symbol,
6741 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
6742
9cb74f47
PM
67432010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
6744
6745 * python/python-internal.h: Include symtab.h.
6746
af6b7be1
JB
67472010-03-09 Joel Brobecker <brobecker@adacore.com>
6748 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
6749
6750 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
6751 * p-valprint.c (pascal_val_print): Remove undeed block and fix
6752 indentation.
6753
bad56014
TT
67542010-03-08 Tom Tromey <tromey@redhat.com>
6755
6756 * breakpoint.c (breakpoint_1): Add "QUIT".
6757
08105857
PA
67582010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
6759 Pedro Alves <pedro@codesourcery.com>
6760
6761 * solib.c (solib_find): Replace extension if
6762 solib_symbols_extension is set in the target gdbarch.
6763 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
6764 solib_symbols_extension to "sym".
6765 * gdbarch.sh (solib_symbols_extension): New variable.
6766 (pstring): New function.
6767 * gdbarch.h, gdbarch.c: Regenerate.
6768
7c953934
TT
67692010-03-08 Tom Tromey <tromey@redhat.com>
6770
6771 PR cli/9591:
6772 * NEWS: Update.
6773 * utils.c: Include main.h.
6774 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
6775 (defaulted_query): Use default answer if `batch_flag'.
6776 * main.h (batch_flag): Declare.
6777 * main.c (batch_flag): New global.
6778 (captured_main): Remove 'batch'. Update.
6779
bbd2783e
KB
67802010-03-08 Kevin Buettner <kevinb@redhat.com>
6781
6782 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
6783 and Kevin Buettner:
6784
6785 * remote-mips.c (rockhopper_ops): New target_ops struct.
6786 (MON_ROCKHOPPER): New mips_monitor_type.
6787 (read_hex_value): New function.
6788 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 6789 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
6790 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
6791 (rockhopper_open): New function.
6792 (mips_wait): Read the PC, FP and SP fields as strings. Use
6793 read_hex_value to parse them and mips_set_register to commit them.
6794 (mips_set_register): New function.
6795 (mips_fetch_registers): Do not cast register value to "unsigned"
6796 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
6797 (mips_store_registers): Use a 'T' packet to set registers when
6798 using MON_ROCKHOPPER.
6799 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
6800 and expect the total to be printed before the entry address.
6801 (_initialize_remote_mips): Initialize and add rockhopper_ops.
6802
566f3d17
KB
68032010-03-08 Kevin Buettner <kevinb@redhat.com>
6804
6805 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
6806 Change return value to int. Store value fetched in location
6807 addressed by `val'. Use function's return value as success
6808 or failure indicator. Adjust all callers.
6809
9c8ee2ab 68102010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
6811
6812 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
6813
7155de5a
HZ
68142010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6815 Hui Zhu <teawater@gmail.com>
6816
6817 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
6818 tmp_to_stopped_data_address.
6819 (record_open): Reset tmp_to_stopped_by_watchpoint and
6820 tmp_to_stopped_data_address.
6821 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
6822 to_stopped_data_address.
6823
580879fc
HZ
68242010-03-08 Hui Zhu <teawater@gmail.com>
6825
6826 * i386-tdep.c (i386_process_record): Initialize regnum.
6827
b0fcb67f
JK
68282010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6829
6830 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
6831 Do not warn on ".gnu.liblist" and ".gnu.conflict".
6832
08597104
JB
68332010-03-08 Joel Brobecker <brobecker@adacore.com>
6834
6835 Memory error when reading wrong core file.
6836 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
6837 errors while reading the inferior memory, and return zero if
6838 an exception was raised.
6839
425b824a
MS
68402010-03-07 Michael Snyder <msnyder@vmware.com>
6841
ec6dbf37
MS
6842 * record.c (record_restore): Rename tmpu8 to rectype.
6843
648d0c8b
MS
6844 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
6845 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
6846
6847 (i386_record_push): Rename local tmpulongest to addr.
6848
6849 (i386_process_record): Rename local tmpulongest to addr.
6850
6851 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
6852 addr64.
955db0c0
MS
6853
6854 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 6855
10760264
JB
68562010-03-07 Joel Brobecker <brobecker@adacore.com>
6857
6858 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 6859 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 6860
b3c613f2
CF
68612010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
6862
6863 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
6864 block. Define helper macros to reduce ifdefs in code.
6865 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
6866 size. Call unadorned GetModuleFileNameEx rather than
6867 GetModuleFileNameEx*.
6868 (windows_make_so): Use __PMAX to denote maximum buffer size and
6869 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
6870 appropriate.
6871 (get_image_name): Use __PMAX to denote maximum buffer size.
6872 (handle_load_dll): Likewise.
6873 (windows_pid_to_exec_file): Likewise.
6874 (windows_create_inferior): Add many accommodations for older Cygwin and
6875 non-Cygwin.
6876 (bad_GetModuleFileNameExW): Control inclusion of this function based on
6877 __USEWIDE conditional.
6878 (bad_GetModuleFileNameExA): Likewise.
6879 (_initialize_loadable): Just use real function names without the dyn_
6880 part since they are defined earlier.
6881
f870a310
TT
68822010-03-05 Corinna Vinschen <vinschen@redhat.com>
6883 Tom Tromey <tromey@redhat.com>
6884
6885 * utils.c (host_char_to_target): Add 'gdbarch' argument.
6886 (parse_escape): Likewise.
6887 * python/py-utils.c (unicode_to_target_string): Update.
6888 (unicode_to_target_python_string): Update.
6889 (target_string_to_unicode): Update.
6890 * printcmd.c (printf_command): Update.
6891 * p-exp.y (yylex): Update.
6892 * objc-exp.y (yylex): Update.
6893 * mi/mi-parse.c: Include charset.h.
6894 (mi_parse_escape): New function.
6895 (mi_parse_argv): Use it.
6896 * jv-exp.y (yylex): Update.
6897 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
6898 function.
6899 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
6900 * gdbarch.sh (auto_charset, auto_wide_charset): New.
6901 * gdbarch.c: Rebuild.
6902 * gdbarch.h: Rebuild.
6903 * defs.h (parse_escape): Update.
6904 * cli/cli-setshow.c: Include arch-utils.h.
6905 (do_setshow_command): Update.
6906 * cli/cli-cmds.c (echo_command): Update.
6907 * charset.h (target_charset, target_wide_charset): Update.
6908 * charset.c: Include arch-utils.h.
6909 (target_charset_name): Default to "auto".
6910 (target_wide_charset_name): Likewise.
6911 (show_target_charset_name): Handle "auto".
6912 (show_target_wide_charset_name): Likewise.
6913 (be_le_arch): New global.
6914 (set_be_le_names): Add 'gdbarch' argument.
6915 (validate): Likewise. Don't call set_be_le_names.
6916 (set_charset_sfunc, set_host_charset_sfunc)
6917 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
6918 Update.
6919 (target_charset): Add 'gdbarch' argument.
6920 (target_wide_charset): Likewise. Remove 'byte_order' argument.
6921 (auto_target_charset_name): New global.
6922 (default_auto_charset, default_auto_wide_charset): New functions.
6923 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
6924 for target charsets. Copy result of nl_langinfo. Use GetACP if
6925 USE_WIN32API.
6926 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
6927 remove 'byte_order' argument. Update.
6928 (classify_type): Likewise.
6929 (c_emit_char): Update.
6930 (c_printchar): Update.
6931 (c_printstr): Update.
6932 (c_get_string): Update.
6933 (evaluate_subexp_c): Update.
6934 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
6935 Declare.
6936 * python/python.c (gdbpy_target_charset): New function.
6937 (gdbpy_target_wide_charset): Likewise.
6938 (GdbMethods): Update.
6939 * NEWS: Update.
6940
4e7386b0
UW
69412010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6942
6943 * symfile.c (build_section_addr_info_from_objfile): Do not mask
6944 off high address bits.
6945
aab48ede
UW
69462010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
6947
6948 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
6949 address as UnsignedLongLong, not LongLong.
6950
8eeafb51 69512010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 6952 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
6953
6954 * remote-mips.c (gdbthread.h): Include.
6955 (remote_mips_ptid): Declare.
6956 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
6957 (common_open): Set inferior_ptid, add it as an inferior, and
6958 as a thread too. Delete FIXME comment regarding start_remote().
6959 (mips_close): Invoke generic_mourn_inferior().
6960 (mips_kill): Make sure that target_mourn_inferior is invoked.
6961 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
6962 it's now invoked from mips_close().
6963 (mips_load): Don't null out inferior_ptid. Don't call
6964 clear_symtab_users().
6965 (mips_thread_alive, mips_pid_to_str): New functions.
6966 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
6967 to_thread_alive and to_pid_to_str operations.
6968
ae411497
TT
69692010-03-04 Tom Tromey <tromey@redhat.com>
6970
6971 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
6972 in DWARF 3 and later.
6973 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
6974
0e0b460e
KS
69752010-03-04 Keith Seitz <keiths@redhat.com>
6976
6977 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
6978 If the filename portion of the linespec was quoted, recheck the
6979 remainder for additional quoting.
6980 (locate_first_half): Skip over completer chars, too.
6981
1b93ff13
TT
69822010-03-04 Tom Tromey <tromey@redhat.com>
6983
6984 * printcmd.c (printf_command): Pass dummy argument to
6985 printf_filtered.
6986
fc36e839
DE
69872010-03-04 Doug Evans <dje@google.com>
6988
111f853c
DE
6989 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
6990 unwound_fp.
6991
fc36e839
DE
6992 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
6993
c7437ca6
PA
69942010-03-04 Pedro Alves <pedro@codesourcery.com>
6995
6996 * breakpoint.c (update_watchpoint): Create a sentinel location if
6997 the software watchpoint isn't watching any memory.
6998 (breakpoint_address_bits): Skip dummy software watchpoint locations.
6999
58dadb1b
PA
70002010-03-04 Pedro Alves <pedro@codesourcery.com>
7001
7002 * utils.c (fputs_maybe_filtered): Check if there's already a top
7003 level interpreter before dereferencing it. If there isn't one,
7004 don't paginate either.
7005
50e98be4
DJ
70062010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
7007
7008 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
7009 the state right when single stepping.
7010 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
7011 Get the next PC along with the instruction state.
7012 (thumb_get_next_pc): Remove.
7013 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
7014
2e3ceee9
HZ
70152010-03-04 Hui Zhu <teawater@gmail.com>
7016
7017 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
7018
390a8aca
PA
70192010-03-03 Pedro Alves <pedro@codesourcery.com>
7020
7021 * utils.c (fputs_maybe_filtered): Always disable pagination if the
7022 top level interpreter is MI.
7023
9355b391
SS
70242010-03-03 Stan Shebs <stan@codesourcery.com>
7025
7026 * remote.c (remote_download_tracepoint): Iterate over locations.
7027 * tracepoint.c (validate_actionline): Ditto.
7028 (encode_actions): Add location argument.
7029 (trace_dump_command): Check all locations to see if stepping
7030 frame.
390a8aca 7031
8685c86f
L
70322010-03-03 H.J. Lu <hongjiu.lu@intel.com>
7033 Eli Zaretskii <eliz@gnu.org>
7034
7035 * NEWS: Add X86 general purpose registers section.
7036
e8f781e2
TT
70372010-03-03 Tom Tromey <tromey@redhat.com>
7038
7039 PR mi/11098:
7040 * varobj.c (install_new_value): Handle case where new print_value
7041 is NULL.
7042
a0e0ef55
TT
70432010-03-03 Dainis Jonitis <jonitis@gmail.com>
7044
7045 PR gdb/11345:
7046 * printcmd.c (printf_command): Print end of format string using
7047 printf_filtered.
7048
a58d7472
TT
70492010-03-02 Tom Tromey <tromey@redhat.com>
7050
7051 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
7052 * defs.h (read_command_lines_1): Add missing 'void'.
7053 * cli/cli-script.c (recurse_read_control_structure): Add missing
7054 'void'.
7055 (read_next_line): Likewise.
7056 (read_command_lines_1): Likewise.
7057
ce50d78b
UW
70582010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7059
7060 * spu-tdep.c (spu_analyze_prologue): Track instruction to
7061 store backchain as part of prologue.
7062
7e9af34a
DJ
70632010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
7064
7065 * progspace.c (update_address_spaces): Update inferior address spaces
7066 also.
7067
01637564
DE
70682010-03-02 Doug Evans <dje@google.com>
7069
7070 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
7071 lowpc,highpc args to addrmap_set_empty.
7072
1ba53b71
L
70732010-03-02 H.J. Lu <hongjiu.lu@intel.com>
7074
7075 * amd64-tdep.c (amd64_byte_names): New.
7076 (amd64_word_names): Likewise.
7077 (amd64_dword_names): Likewise.
7078 (amd64_pseudo_register_name): Likewise.
7079 (amd64_pseudo_register_read): Likewise.
7080 (amd64_pseudo_register_write): Likewise.
7081 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
7082 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
7083 set_gdbarch_pseudo_register_write and
7084 set_tdesc_pseudo_register_name. Don't call
7085 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
7086
7087 * i386-tdep.c (i386_num_mmx_regs): Removed.
7088 (i386_num_pseudo_regs): Likewise.
7089 (i386_byte_names): New.
7090 (i386_word_names): Likewise.
7091 (i386_byte_regnum_p): Likewise.
7092 (i386_word_regnum_p): Likewise.
7093 (i386_mmx_regnum_p): Updated.
7094 (i386_pseudo_register_name): Make it global. Handle byte and
7095 word pseudo-registers.
7096 (i386_pseudo_register_read): Likewise.
7097 (i386_pseudo_register_write): Likewise.
7098 (i386_pseudo_register_type): Handle byte, word and dword
7099 pseudo-registers
7100 (i386_register_reggroup_p): Don't include pseudo
7101 registers, except for MXX, in any register groups. Don't
7102 include pseudo byte, word, dword registers in general_reggroup.
7103 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
7104 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
7105 pseudo-registers after word pseudo-registers. Call
7106 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
7107
7108 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
7109 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
7110 eax_regnum.
7111 (i386_byte_regnum_p): New.
7112 (i386_word_regnum_p): Likewise.
7113 (i386_dword_regnum_p): Likewise.
7114 (i386_pseudo_register_name): Likewise.
7115 (i386_pseudo_register_read): Likewise.
7116 (i386_pseudo_register_write): Likewise.
7117
a6f5ef51
L
71182010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7119
7120 * target-descriptions.c (tdesc_type): Remove
7121 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7122 (tdesc_predefined_types): Likewise.
7123 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
7124 if flag name is empty.
7125 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
7126
7127 * features/i386/32bit-core.xml: Define i386_eflags.
7128 * features/i386/64bit-core.xml: Likewise.
7129
7130 * features/i386/32bit-sse.xml: Define i386_mxcsr.
7131 * features/i386/64bit-sse.xml: Likewise.
7132
7133 * features/i386/amd64-linux.c: Regenerated.
7134 * features/i386/amd64.c: Likewise.
7135 * features/i386/i386-linux.c: Likewise.
7136 * features/i386/i386.c: Likewise.
7137
f5dff777
DJ
71382010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
7139
7140 * gdbtypes.c (append_composite_type_field_raw): New.
7141 (append_composite_type_field_aligned): Use the new function.
7142 * gdbtypes.h (append_composite_type_field_raw): Declare.
7143 * target-descriptions.c (struct tdesc_type_field): Add start and end.
7144 (struct tdesc_type_flag): New type.
7145 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
7146 kind. Add size to u.u. Add u.f for flags.
7147 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
7148 (tdesc_free_type): Likewise.
7149 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
7150 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
7151 (tdesc_add_bitfield, tdesc_add_flag): New.
7152 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
7153 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
7154 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
7155 current_type. Add current_type_size and current_type_is_flags.
7156 (tdesc_start_union): Clear the new fields.
7157 (tdesc_start_struct, tdesc_start_flags): New.
7158 (tdesc_start_field): Handle struct fields, including bitfields.
7159 (field_attributes): Make type optional. Add start and end.
7160 (union_children): Rename to struct_union_children.
7161 (union_attributes): Rename to struct_union_attributes. Add optional
7162 size.
7163 (flags_attributes): New.
7164 (feature_children): Add struct and flags.
7165 * features/gdb-target.dtd: Add flags and struct to features.
7166 Make field type optional. Add field start and end.
7167
90884b2b
L
71682010-03-01 H.J. Lu <hongjiu.lu@intel.com>
7169
7170 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
7171 (amd64_linux_read_description): Likewise.
7172 (_initialize_amd64_linux_nat): Set to_read_description to
7173 amd64_linux_read_description.
7174
7175 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
7176 (amd64_linux_register_name): Removed.
7177 (amd64_linux_register_type): Likewise.
7178 (amd64_linux_core_read_description): New.
7179 (amd64_linux_init_abi): Set target description to
7180 tdesc_amd64_linux if needed. Support orig_rax in target
7181 description. Don't call set_gdbarch_register_name nor
7182 set_gdbarch_register_type. Call
7183 set_gdbarch_core_read_description.
7184 (_initialize_amd64_linux_tdep): Call
7185 initialize_tdesc_amd64_linux.
7186
7187 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
7188
7189 * amd64-tdep.c: Include "features/i386/amd64.c".
7190 (amd64_register_names): Removed.
7191 (amd64_register_name): Likewise.
7192 (amd64_register_type): Likewise.
7193 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 7194 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
7195 set_gdbarch_register_name nor set_gdbarch_register_type.
7196 (_initialize_amd64_tdep): New.
7197
7198 * i386-linux-nat.c (i386_linux_read_description): New.
7199 (_initialize_i386_linux_nat): Set to_read_description to
7200 i386_linux_read_description.
7201
7202 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
7203 (i386_linux_register_name): Removed.
7204 (i386_linux_core_read_description): New.
7205 (i386_linux_read_description): Likewise.
7206 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
7207 Set target description to tdesc_i386_linux if needed. Support
7208 orig_eax. Set register_reggroup_p. Call
7209 set_gdbarch_core_read_description.
7210 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
7211
7212 * i386-linux-tdep.h (tdesc_i386_linux): New.
7213
7214 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
7215 with I387_NUM_REGS.
7216
7217 * i386-tdep.c: Include "features/i386/i386.c".
7218 (i386_register_names): Make it const.
7219 (i386_mmx_names): Likewise.
7220 (i386_num_register_names): Removed.
7221 (i386_register_name): Likewise.
7222 (i386_eflags_type): Likewise.
7223 (i386_mxcsr_type): Likewise.
7224 (i386_sse_type): Likewise.
7225 (i386_register_type): Likewise.
7226 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
7227 (i386_pseudo_register_name): New.
7228 (i386_pseudo_register_type): Likewise.
7229 (i386_mmx_type): Make it static.
7230 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
7231 I387_NUM_REGS. Set num_core_regs and register_names. Don't
7232 call set_gdbarch_register_name nor set_gdbarch_register_type.
7233 Set register_reggroup_p. Set target description to tdesc_i386
7234 if needed. Call set_tdesc_pseudo_register_type,
7235 set_tdesc_pseudo_register_name and tdesc_use_registers.
7236 (_initialize_i386_tdep): Call initialize_tdesc_i386.
7237 initialize_tdesc_x86_64.
7238
7239 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
7240 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
7241 register_names, tdesc and register_reggroup_p.
7242 (I386_NUM_FREGS): Removed.
7243 (i386_eflags_type): Likewise.
7244 (i386_mxcsr_type): Likewise.
7245 (i386_mmx_type): Likewise.
7246 (i386_sse_type): Likewise.
7247 (i386_register_name): Likewise.
7248 (i386_regnum): Add I386_MXCSR_REGNUM.
7249 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
7250
7251 * i387-tdep.h (I387_NUM_REGS): New.
7252
7253 * regformats/i386/i386-linux.dat: Generated.
7254 * regformats/i386/i386.dat: Likewise.
7255 * regformats/i386/amd64-linux.dat: Likewise.
7256 * regformats/i386/amd64.dat: Likewise.
7257
7258 * regformats/reg-i386-linux.dat: Removed.
7259 * regformats/reg-i386.dat: Likewise.
7260 * regformats/reg-x86-64-linux.dat: Likewise.
7261 * regformats/reg-x86-64.dat: Likewise.
7262
d0d0ab16
CV
72632010-03-01 Corinna Vinschen <vinschen@redhat.com>
7264
7265 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
7266 cygwin_conv_path API rather than the deprecated
7267 cygwin_conv_to_full_posix_path.
7268 * windows-nat.c:
7269 (GetModuleFileNameExA): Undefine for Cygwin.
7270 (GetModuleFileNameExW): Define for Cygwin.
7271 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
7272 Call GetModuleFileNameExW and convert path to POSIX using
7273 cygwin_conv_path.
7274 (windows_make_so): Always define p. Drop unused variable m.
7275 Don't use Win32 functions to check file existance, rather use
7276 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
7277 Use canonicalize_file_name to get full path.
7278 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
7279 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
7280 use correct target buffer size in call to WideCharToMultiByte.
7281 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
7282 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
7283 (windows_create_inferior): Convert all paths and arguments to wchar_t
7284 and use CreateProcessW on Cygwin.
7285 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
7286 (bad_GetModuleFileNameExA): Undefine for Cygwin.
7287 (bad_GetModuleFileNameExW): Define for Cygwin.
7288 (_initialize_loadable): Load GetModuleFileNameExW into
7289 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
7290
dc00d89f
PM
72912010-02-28 Phil Muldoon <pmuldoon@redhat.com>
7292
7293 PR python/11036
7294 * python/py-frame.c (frapy_read_var): Add block argument and logic
7295 to cope with user provided blocks.
7296
0e095b7e
JK
72972010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7298
7299 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
7300 New comment.
7301
2f9e05b4
CV
73022010-02-28 Corinna Vinschen <vinschen@redhat.com>
7303
7304 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
7305 (COMMON_OBS): ... to here since it's used unconditionally.
7306 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
7307 (SFILES): To here.
7308
eb195664
DD
73092010-02-26 David Daney <ddaney@caviumnetworks.com>
7310
7311 * mips-linux-tdep.c: Update struct sigframe comments.
7312 (SIGFRAME_CODE_OFFSET): Delete macro.
7313 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
7314 this_frame's sp.
7315 (mips_linux_n32n64_sigframe_init): Same.
7316
97b0f3e2
KB
73172010-02-26 Kevin Buettner <kevinb@redhat.com>
7318
7319 * remote-mips.c (mips_load): Don't use pseudo-register when
7320 invalidating regcache.
7321
4069ebbe
DJ
73222010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
7323
7324 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
7325
05071a4d
PA
73262010-02-26 Pedro Alves <pedro@codesourcery.com>
7327
7328 * NEWS: Add "New targets" section, and mention ARM Symbian
7329 support.
7330
6063c216
UW
73312010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
7332
7333 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
7334 add ADDR_SIZE member.
7335 (allocate_piece_closure): Update.
7336 (copy_pieced_value_closure): Likewise.
7337 (dwarf2_evaluate_loc_desc): Likewise.
7338 (read_pieced_value): Use DWARF address size instead of
7339 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
7340
5107b149 73412010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 7342 Tom Tromey <tromey@redhat.com>
5107b149
PM
7343
7344 * python/py-type.c (typy_lookup_typename): Add in block argument.
7345 If provided restrict lookup to specified blocks.
7346 (gdbpy_lookup_type): Likewise.
7347 (typy_lookup_type): Likewise.
7348
78664fa3 73492010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 7350
78664fa3
PA
7351 Symbian config
7352
7353 gdb/
7354 * arm-symbian-tdep.c: New.
7355 * configure.tgt (arm*-*-symbianelf*): New target.
7356 (*-*-symbianelf*): New OS.
7357 * osabi.c (gdb_osabi_names): Add Symbian.
7358 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
7359 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
7360 (ALLDEPFILES): Add arm-symbian-tdep.c.
7361
eb73e134
DJ
73622010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
7363
7364 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
7365
46ef47e5
PA
73662010-02-24 Pedro Alves <pedro@codesourcery.com>
7367
7368 * mi/mi-main.c (mi_cmd_execute): Fix typo.
7369
f3e9a817 73702010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 7371 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
7372 Thiago Jung Bauermann <bauerman@br.ibm.com>
7373
7374 * python/python.c (_initialize_python): Call
7375 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
7376 gdbpy_initialize_blocks.
7377 * python/python-internal.h: Declare struct symbol, block and
7378 symtab_and_line. Declare block_object_type and
7379 symbol_object_type
7380 (gdbpy_lookup_symbol gdbpy_block_for_pc)
7381 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
7382 (symbol_to_symbol_object, block_to_block_object)
7383 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
7384 (gdbpy_initialize_blocks ): Declare.
7385 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
7386 (frapy_select): Add methods.
7387 (frapy_read_var): Add symbol branch.
7388 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
7389 py-block.
7390 (SUBDIR_PYTHON_SRCS): Likewise.
7391 (py-symbol.o): New rule.
7392 (py-symtab.o): Likewise.
7393 (py-block.o): Likewise.
7394 * python/py-symbol.c: New file.
7395 * python/py-symtab.c: Likewise.
7396 * python/py-block.c: Likewise.
7397
24291992
PA
73982010-02-24 Pedro Alves <pedro@codesourcery.com>
7399
7400 PR gdb/11321
7401
7402 * inferior.h (prepare_for_detach): Declare.
7403 (struct inferior) <detaching>: New field.
7404 * infrun.c (prepare_for_detach): New.
7405 (handle_inferior_event) <random signal>: Don't stop if detaching.
7406 * target.c (target_detach): Call prepare_for_detach.
7407
fc1cf338
PA
74082010-02-24 Pedro Alves <pedro@codesourcery.com>
7409
7410 Per-process displaced stepping queue.
7411
7412 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
7413 (displaced_step_gdbarch, displaced_step_closure,
7414 (displaced_step_original, displaced_step_copy): Move globals to
7415 this...
7416 (struct displaced_step_inferior_state): ... new structure.
7417 (displaced_step_inferior_states): New global.
7418 (get_displaced_stepping_state, add_displaced_stepping_state)
7419 (remove_displaced_stepping_state, infrun_inferior_exit): New
7420 functions.
7421 (displaced_step_clear): Add displaced_step_inferior_state
7422 parameter, and adjust to handle it.
7423 (displaced_step_clear_cleanup): Parameter is now a
7424 displaced_step_inferior_state. Adjust.
7425 (displaced_step_prepare): Adjust.
7426 (displaced_step_fixup, displaced_step_fixup)
7427 (infrun_thread_ptid_changed, resume): Adjust.
7428 (init_wait_for_inferior): Don't call displaced_step_clear.
7429 (infrun_thread_stop_requested): Rewrite.
7430 (_initialize_infrun): Install infrun_inferior_exit as
7431 inferior_exit observer.
7432
0723dbf5
PA
74332010-02-24 Pedro Alves <pedro@codesourcery.com>
7434
7435 * inferior.h (ptid_match): Declare.
7436 * infrun.c (ptid_match): New.
7437 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
7438 (handle_notification): Add debug output.
7439 * linux-nat.c (ptid_match): Delete.
7440
09de9781
DM
74412010-02-24 David S. Miller <davem@davemloft.net>
7442
7443 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
7444 * syscalls/sparc-linux.xml: New.
7445 * syscalls/sparc64-linux.xml: New.
7446 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
7447 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
7448 (sparc32_linux_get_syscall_number): New function.
7449 (sparc32_linux_init_abi): Set syscall XML file name and hook up
7450 syscall number fetcher.
7451 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
7452 (sparc64_linux_get_syscall_number): New function.
7453 (sparc64_linux_init_abi): Set syscall XML file name and hook up
7454 syscall number fetcher.
7455
a79b8f6e
VP
74562010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7457
7458 Multiexec MI
7459
7460 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
7461 * inferior.c (add_inferior_silent): Notify inferior_added
7462 observer.
7463 (delete_inferior_1): Notify inferior_removed observer.
7464 (exit_inferior_1): Pass inferior, not pid, to observer.
7465 (inferior_appeared): Likewise.
7466 (add_inferior_with_spaces): New.
7467 (add_inferior_command): Use the above.
7468 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
7469 Declare.
7470
7471 * inflow.c (inflow_inferior_exit): Likewise.
7472 * jit.c (jit_inferior_exit_hook): Likewise.
7473
7474 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
7475 remove-inferior.
7476 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7477 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
7478 (report_initial_inferior): New.
7479 (mi_inferior_removed): Register the above. Make sure
7480 inferior_added observer is called on the first inferior.
7481 (mi_new_thread, mi_thread_exit): Thread group is now identified by
7482 inferior number, not pid.
7483 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
7484 affected.
7485 * mi/mi-main.c (current_context): New.
7486 (proceed_thread_callback): Use typed closure.
7487 Proceed everything if pid is 0. Most implementation split into
7488 (proceed_thread): ... this.
7489 (run_one_inferior): New.
7490 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
7491 Adjust for multiexec behaviour.
7492 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
7493 (mi_cmd_execute): Handle the 'thread-group' option here.
7494 Do some extra checks.
7495 * mi-parse.c (mi_parse): Handle the --all and --thread-group
7496 options.
7497 * mi-parse.h (struct mi_parse): New fields all and thread_group.
7498
115d30f9
VP
74992010-02-24 Vladimir Prus <vladimir@codesourcery.com>
7500
7501 Make -exec-run a proper MI commands.
7502
7503 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
7504 * mi/mi-cmds.c (mi_cmds): Adjust.
7505 * mi/mi-main.c (mi_cmd_exec_run): New.
7506
06cd862c
PA
75072010-02-24 Pedro Alves <pedro@codesourcery.com>
7508 Stan Shebs <stan@codesourcery.com>
7509
7510 * tracepoint.h (set_traceframe_number)
7511 (cleanup_restore_current_traceframe): Declare.
7512 * tracepoint.c (set_traceframe_number): New.
7513 (struct current_traceframe_cleanup): New.
7514 (do_restore_current_traceframe_cleanup)
7515 (restore_current_traceframe_cleanup_dtor)
7516 (make_cleanup_restore_current_traceframe): New.
7517 * infrun.c: Include tracepoint.h.
7518 (fetch_inferior_event): Switch out and in of tfind mode.
7519
ab92d69b
PA
75202010-02-24 Pedro Alves <pedro@codesourcery.com>
7521
7522 * breakpoint.c (breakpoint_init_inferior): Also delete
7523 bp_shlib_event breakpoints.
7524 * solib-frv.c (enable_break): Remove call to
7525 remove_solib_event_breakpoints.
7526 * solib-svr4.c (enable_break): Ditto.
7527 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
7528 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
7529 * solib-som.c (som_solib_create_inferior_hook): Ditto.
7530 * solib-spu.c (spu_enable_break): Ditto.
7531
e707a91d
PA
75322010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7533
7534 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
7535
cfce2ea2
PA
75362010-02-23 Harald Koenig <H.Koenig@science-computing.de>
7537
7538 * varobj.c (varobj_update): Avoid non-constants in initializers.
7539
05566b3b
TT
75402010-02-23 Tom Tromey <tromey@redhat.com>
7541
7542 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
7543 handle big-endian values.
7544 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
7545
85d721b8
PA
75462010-02-22 Pedro Alves <pedro@codesourcery.com>
7547
7548 PR9605
7549
7550 gdb/
7551 * breakpoint.c (insert_bp_location): If inserting the read
7552 watchpoint failed, fallback to an access watchpoint.
7553 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
7554 if the value changed, if not watching the same memory for writes.
7555 (watchpoint_locations_match): Add comment.
7556 (update_global_location_list): Copy the location's watchpoint type.
7557 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
7558 handle read watchpoints here.
7559 (i386_insert_watchpoint): Read watchpoints aren't supported.
7560 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
7561 packets.
7562 * target.h (target_insert_watchpoint): Update description.
7563
48ea67a7
TT
75642010-02-19 Tom Tromey <tromey@redhat.com>
7565
7566 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
7567 * m2-typeprint.c (m2_print_type): Update.
7568 * gdbtypes.c (recursive_dump_type): Update.
7569 (copy_type_recursive): Update.
7570 * c-typeprint.c (c_type_print_varspec_prefix): Update.
7571 (c_type_print_base): Update.
7572 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
7573 Remove.
7574 (struct cplus_struct_type) <ntemplate_args>: Remove.
7575 <struct template_arg>: Remove.
7576 <is_dynamic>: Move earlier.
7577 (TYPE_TEMPLATE_ARGS): Remove.
7578 (TYPE_NTEMPLATE_ARGS): Remove.
7579 (TYPE_TEMPLATE_ARG): Remove.
7580
48e32051
TT
75812010-02-19 Tom Tromey <tromey@redhat.com>
7582
7583 PR c++/8693, PR c++/9496:
7584 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
7585 * c-exp.y (lex_one_token): Rename from yylex. Don't call
7586 write_dollar_variable. Don't try to classify NAME tokens.
7587 (token_and_value): New type.
7588 (token_fifo, popping, name_obstack): New globals.
7589 (classify_name): New function.
7590 (classify_inner_name): Likewise.
7591 (yylex): Likewise.
7592 (VARIABLE): Now has type sval.
7593 (exp : VARIABLE): Call write_dollar_variable.
7594 (qualified_name): Use TYPENAME, not typebase. Add production for
7595 multiple "::" instances.
7596 (variable): Use name_not_typename.
7597 (qualified_type): Remove.
7598 (typebase): Update.
7599
672d9c23
JK
76002010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7601
7602 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
7603 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
7604 found by bfd_get_section_by_name.
7605 * symfile.h (struct section_addr_info) <sectindex>: New comment.
7606
bfbf3774
JB
76072010-02-19 Joel Brobecker <brobecker@adacore.com>
7608
7609 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
7610 7.0 section" into "Changes in 7.1".
7611
6756b09b 76122010-02-19 Joel Brobecker <brobecker@adacore.com>
7613
7614 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
7615 * version.in: Bump version to 7.1.50.20100219-cvs.
7616
202b96c1
PA
76172010-02-18 Harald Koenig <H.Koenig@science-computing.de>
7618
7619 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
7620 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
7621
de2e5182
TT
76222010-02-17 Tom Tromey <tromey@redhat.com>
7623
7624 * NEWS: Add Python API Improvements section.
7625
7280022e
DJ
76262010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
7627
7628 * NEWS: Correct typo.
7629
6f451e5e
TT
76302010-02-17 Tom Tromey <tromey@redhat.com>
7631
7632 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
7633
012836ea
JK
76342010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7635
7636 * symfile.c (build_section_addr_info_from_objfile): Include sections
7637 only if they are SEC_ALLOC or SEC_LOAD.
7638
d182d057
L
76392010-02-17 H.J. Lu <hongjiu.lu@intel.com>
7640
7641 PR shlibs/11293
7642 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
7643 of ULONGEST for address size.
7644
4eef138c
TT
76452010-02-17 Tom Tromey <tromey@redhat.com>
7646
7647 * NEWS: Add C++ improvements section.
7648
548a926a
UW
76492010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
7650
7651 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
7652 PyThreadState_Swap): Avoid "statement with no effect" warning.
7653
ad3a0e5b
JK
76542010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7655
7656 * solib-svr4.c (enable_break <target_auxv_search>): New variable
7657 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
7658
243e2c5d 76592010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 7660 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
7661
7662 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
7663 gdb_assert. Fix info->size for SIG prologue.
7664
275f2e57
DJ
76652010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7666
7667 * infcmd.c (show_inferior_tty_command): Check for NULL.
7668 Correct output message.
7669
791dfb64
DJ
76702010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7671
7672 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
7673 FUNCTION contains parentheses. Improve removal of a trailing
7674 single quote.
7675
14d1346b
DJ
76762010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7677
7678 * gcore.c (do_bfd_delete_cleanup): New function.
7679 (gcore_command): Use it. Discard the cleanup after success.
7680 (gcore_copy_callback): Delete dead code.
7681
e76ab67f
DJ
76822010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
7683
7684 * symfile.c (addr_info_make_relative): Always use
7685 find_lowest_section.
7686
71dee663
SW
76872010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
7688
7689 * NEWS: Added entry for namespace fixes.
7690
a9854bd5
TT
76912010-02-15 Tom Tromey <tromey@redhat.com>
7692
7693 * dwarf2read.c (guess_structure_name): Allocate name on the
7694 objfile obstack.
7695
fd9e29b5
TT
76962010-02-15 Tom Tromey <tromey@redhat.com>
7697
7698 * c-typeprint.c (c_type_print_base): Reverse order of test.
7699
4e1fc9c9
JK
77002010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7701
7702 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
7703 initialize it from ELF BFD. Extend the prelink condition by it.
7704
74164c56
JK
77052010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7706
7707 * defs.h (parse_pid_to_attach): New.
7708 * utils.c (parse_pid_to_attach): New.
7709 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
7710 * gnu-nat.c (gnu_attach): Likewise.
7711 * nto-procfs.c (procfs_attach): Likewise.
7712 * procfs.c (procfs_attach): Likewise.
7713 * windows-nat.c (windows_attach): Likewise.
7714 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
7715 * inf-ttrace.c (inf_ttrace_attach): Likewise.
7716 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
7717 check.
7718
bf6adea8
MM
77192010-02-14 Masaki Muranaka <monaka@monami-software.com>
7720
7721 * MAINTAINERS: Add myself for write after approval privileges.
7722
28f34a8f
JK
77232010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7724
7725 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
7726 block.
7727
701ed6dc
JK
77282010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7729
7730 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
7731 only if INFO_VERBOSE.
7732
e5829bee
MS
77332010-02-12 Tomas Holmberg <th@virtutech.com>
7734
7735 * mi/mi-main.c: Added the --reverse flag to the following MI
7736 commands: exec-continue, exec-finish, exec-next, exec-step,
7737 exec-next-instruction, exec-step-instruction. This is to
7738 support reverse execution over the MI interface to gdb.
7739
081dfbf7
PA
77402010-02-12 Pedro Alves <pedro@codesourcery.com>
7741
7742 * tracepoint.c (_initialize_tracepoint): Specify that the address
7743 range of `tfind outsize' is exclusive, and that the address range
7744 of `tfind range' is inclusive, in the commands' help strings.
7745
ecc13e53
JB
77462010-02-12 Joel Brobecker <brobecker@adacore.com>
7747
7748 Spurious "dll not found" error messages on x64-windows.
7749 * windows-nat.c: Add include of complaints.h.
7750 (handle_unload_dll): Change dll-not-found error into a complaint.
7751
15c3d785
PA
77522010-02-12 Pedro Alves <pedro@codesourcery.com>
7753
7754 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
7755 bp_tracepoint and bp_fast_tracepoint, not
7756 bp_loc_software_breakpoint.
7757 (update_global_location_list): Tracepoints are never duplicates of
7758 anything.
7759
fd9b8c24
PA
77602010-02-12 Pedro Alves <pedro@codesourcery.com>
7761
7762 * breakpoint.c (break_command_really): Change return type to int.
7763 Return false if no breakpoint was created, true otherwise.
7764 (trace_command): Don't set the tracepoint count if no tracepoint
7765 was created.
7766 (ftrace_command): Ditto.
7767 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
7768 created in the breakpoints table.
7769
5c0d192f
JK
77702010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7771 Ulrich Weigand <uweigand@de.ibm.com>
7772
7773 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
7774
5d5b640e
PA
77752010-02-11 Pedro Alves <pedro@codesourcery.com>
7776
7777 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
7778 the offset value isn't of integral type.
7779
e5a0a904
JK
77802010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7781
7782 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
7783 New.
7784
be636754
PA
77852010-02-11 Pedro Alves <pedro@codesourcery.com>
7786
7787 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
7788 non-subscriptable types.
7789 * valarith.c (binop_types_user_defined_p): New, abstracted out
7790 from ...
7791 (binop_user_defined_p): ... this.
7792 * value.h (binop_types_user_defined_p): Declare.
7793
10ef8d6a
PA
77942010-02-11 Pedro Alves <pedro@codesourcery.com>
7795
7796 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
7797 Merge uploaded TSVs before merging uploaded tracepoints.
7798
b1028c8e
PA
77992010-02-11 Pedro Alves <pedro@codesourcery.com>
7800
7801 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
7802
7a93fb82 78032010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 7804
7a93fb82
VP
7805 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
7806 whitespace character after a dot in comment.
7807 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
7808 Likewise.
7809 (list_args_or_locals): For the 'all' (that is
7810 -stack-list-variables) case, always output list of tuples.
7811 Output 'arg' field if variable is argument.
84d90c10 7812
92981e24
TT
78132010-02-10 Tom Tromey <tromey@redhat.com>
7814
7815 * parser-defs.h (parser_debug): Declare.
7816 * parse.c (_initialize_parse): Install "debug parser" set/show
7817 command.
7818 (parser_debug): New global.
7819 (show_parserdebug): New function.
7820 * c-exp.y (c_parse): Set yydebug.
7821
9fd3625f
L
78222010-02-10 H.J. Lu <hongjiu.lu@intel.com>
7823
7824 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
7825 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7826 (tdesc_predefined_types): Add i387_ext, i386_eflags and
7827 i386_mxcsr.
7828 (tdesc_find_type): New.
7829 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
7830 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
7831
7832 * target-descriptions.h (tdesc_find_type): New.
7833
2fe842e5
MS
78342010-02-10 Michael Snyder <msnyder@vmware.com>
7835
7836 * gdb-gdb.py: Comment fix.
7837
f18b4cab
TG
78382010-02-09 Tristan Gingold <gingold@adacore.com>
7839
7840 * machoread.c (macho_symfile_relocate): New function.
7841 (macho_sym_fns): Use macho_symfile_relocate instead of
7842 default_symfile_relocate.
7843 (macho_oso_data): New type.
7844 (current_oso): New variable.
7845 (macho_add_oso_symfile): Do not compute section_addr_info, but
7846 instead set vma of sections.
7847 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
7848 Set and clear current_oso.
7849
31dbc1c5
JB
78502010-02-09 Joel Brobecker <brobecker@adacore.com>
7851
7852 Wrong type description for tagged type parameter.
7853 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
7854 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
7855 reference to a tagged type.
7856
399f313b
TG
78572010-02-09 Tristan Gingold <gingold@adacore.com>
7858
7859 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
7860 brothers of the parent.
7861
714f19d5
TT
78622010-02-08 Tom Tromey <tromey@redhat.com>
7863
7864 PR c++/8017:
7865 * value.h: Update.
7866 * valops.c (search_struct_field): Make 'name' const.
7867 (search_struct_method): Likewise.
7868 (find_method_list): Make 'method' const.
7869 (value_struct_elt): Make 'name' and 'err' const.
7870 (value_find_oload_method_list): Make 'method' const.
7871 (find_overload_match): Make 'name' const.
7872 * eval.c (evaluate_subexp_standard): New locals function,
7873 function_name.
7874 <OP_FUNCALL>: Handle OP_SCOPE specially.
7875
de0a0249
UW
78762010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
7877
7878 * infrun.c (handle_inferior_event): Do not look up regcache
7879 for exited processes.
7880
8d95cc3b 78812010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
7882
7883 PR gdb/10728
7884 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 7885 warn if found, and assume length = 1.
83b10087 7886
99903ae3
CM
78872010-02-08 Chris Moller <cmoller@redhat.com>
7888
7889 PR gdb/9067
7890 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 7891 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 7892
e3e9f5a2
PA
78932010-02-08 Pedro Alves <pedro@codesourcery.com>
7894
7895 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
7896 resumed LWPs as resumed.
7897 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
7898 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
7899 of throwing an internal error. If an LWP of a process we're not
7900 waiting for reports a signal, don't force collecting a SIGSTOP,
7901 and if it was breakpoint hit in non-stop mode, cancel it. Don't
7902 go through all LWPs cancelling breakpoints in non-stop mode.
7903 (resume_stopped_resumed_lwps): New.
7904 (linux_nat_wait): Use it.
7905
46763423
L
79062010-02-07 H.J. Lu <hongjiu.lu@intel.com>
7907
7908 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
7909 i386/amd64 and i386/amd64-linux.
7910 (i386/i386-expedite): New.
7911 (i386/i386-linux-expedite): Likewise.
7912 (i386/amd64-expedite):Likewise.
7913 (i386/amd64-linux-expedite): Likewise.
7914 ($(outdir)/i386/i386-linux.dat): Likewise.
7915 ($(outdir)/i386/amd64.dat): Likewise.
7916 ($(outdir)/i386/amd64-linux.dat): Likewise.
7917
7918 * features/i386/32bit-core.xml: New.
7919 * features/i386/32bit-linux.xml: Likewise.
7920 * features/i386/32bit-sse.xml: Likewise.
7921 * features/i386/64bit-core.xml: Likewise.
7922 * features/i386/64bit-linux.xml: Likewise.
7923 * features/i386/64bit-sse.xml: Likewise.
7924 * features/i386/i386-linux.xml: Likewise.
7925 * features/i386/i386.xml: Likewise.
7926 * features/i386/amd64-linux.xml: Likewise.
7927 * features/i386/amd64.xml: Likewise.
7928 * features/i386/i386-linux.c: Likewise.
7929 * features/i386/i386.c: Likewise.
7930 * features/i386/amd64-linux.c: Likewise.
7931 * features/i386/amd64.c: Likewise.
7932
82856980
SW
79332010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
7934
7935 PR c++/7935:
7936 * cp-support.h: Added char* alias element to using_direct data
7937 struct.
7938 (cp_add_using): Added char* alias argument.
7939 (cp_add_using_directive): Ditto.
7940 * cp-namespace.c: Updated with the above changes.
7941 (cp_lookup_symbol_imports): Check for aliases.
7942 * dwarf2read.c (read_import_statement): Figure out local alias
7943 for the import and pass it on to cp_add_using.
7944 (read_namespace): Pass alias argument to cp_add_using.
7945
d18b8b7a
HZ
79462010-02-05 Hui Zhu <teawater@gmail.com>
7947
7948 * defs.h (gdb_bfd_errmsg): New extern.
7949 * exec.c (exec_file_attach): Change bfd_errmsg to
7950 gdb_bfd_errmsg.
7951 * utils.c (AMBIGUOUS_MESS1): New macro.
7952 (AMBIGUOUS_MESS2): New macro.
7953 (gdb_bfd_errmsg): New function.
7954
48379de6
DE
79552010-02-04 Doug Evans <dje@google.com>
7956
7957 * solib-svr4.c (enable_break): Add comment.
7958
4ee73e90
AG
79592010-02-04 Anthony Green <green@moxielogic.com>
7960
7961 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
7962 gracefully.
7963
1a334831
TT
79642010-02-04 Tom Tromey <tromey@redhat.com>
7965
7966 * valops.c (search_struct_field): Account for
7967 value_embedded_offset. Fix check for virtual base past the end of
7968 the object. Use value_copy when making a slice of the value.
7969
1180b2c8
L
79702010-02-04 H.J. Lu <hongjiu.lu@intel.com>
7971
7972 PR tui/9622
7973 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
7974 only if gdb_stdout is a tty.
7975
c3f08eb7
L
79762010-02-04 H.J. Lu <hongjiu.lu@intel.com>
7977
7978 * target-descriptions.c: Include "osabi.h".
7979 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
7980 OSABI.
7981
2d33f7b8
TG
79822010-02-04 Tristan Gingold <gingold@adacore.com>
7983
7984 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
7985 (macho_symtab_read): Adjust calls to macho_add_oso.
7986 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
7987 (macho_symfile_read): Adjust call to macho_oso_symfile.
7988 (macho_new_init): Move this function after declarations.
7989 (macho_symfile_init): Ditto.
7990 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
7991 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
7992
11334b82
VP
79932010-02-04 Vladimir Prus <vladimir@codesourcery.com>
7994
7995 Include MI command in remotelog.
7996
7997 * mi/mi-main.c (mi_execute_command): Call target_log_command.
7998
ff97be06
L
79992010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8000
8001 * remote.c (remote_state): Remove gdbarch.
8002 (init_remote_state): Don't set gdbarch.
8003 (remote_query_supported): Pass target_gdbarch instead of
8004 rs->gdbarch to gdbarch_qsupported.
8005
75cebea9
L
80062010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8007
8008 * gdbarch.sh: Add qsupported.
8009
8010 * gdbarch.c: Regenerated.
8011 * gdbarch.h: Likewise.
8012
8013 * remote.c (remote_state): Add gdbarch.
8014 (init_remote_state): Set gdbarch.
8015 (remote_query_supported): Support gdbarch_qsupported.
8016
c1dec97b
DJ
80172010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
8018
8019 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
8020 __FreeBSD_kernel_version.
8021
ac8035ab
TG
80222010-02-03 Tristan Gingold <gingold@adacore.com>
8023
8024 * symfile.h (struct sym_fns): Add sym_relocate field.
8025 (default_symfile_relocate): New prototype.
8026 (symfile_relocate_debug_section): First argument is now an objfile.
8027 * symfile.c (default_symfile_relocate): Rename from
8028 symfile_relocate_debug_section, first argument is now an objfile.
8029 (symfile_relocate_debug_section): New function.
8030 * coffread.c (coff_sym_fns): Set sym_relocate field.
8031 * somread.c (som_sym_fns): Ditto.
8032 * mipsread.c (ecoff_sym_fns): Ditto.
8033 * machoread.c (macho_sym_fns): Ditto.
8034 * elfread.c (elf_sym_fns): Ditto.
8035 * dwarf2read.c (dwarf2_read_section): Ditto.
8036 * xcoffread.c (xcoff_sym_fns): Ditto.
8037 * dbxread.c (aout_sym_fns): Ditto.
8038 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
8039 (elfstab_build_psymtabs): Ditto.
8040
be52b756
L
80412010-02-03 H.J. Lu <hongjiu.lu@intel.com>
8042
8043 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
8044
9c3c02fd
TT
80452010-02-02 Tom Tromey <tromey@redhat.com>
8046
8047 * valops.c (value_cast_structs): Try downcasting using the RTTI
8048 type.
8049
f23f4c59
TT
80502010-02-02 Tom Tromey <tromey@redhat.com>
8051
8052 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
8053 (gnuv2_baseclass_offset): Now static.
8054 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
8055 * gnu-v2-abi.h: Remove.
8056
0cc2414c
TT
80572010-02-02 Tom Tromey <tromey@redhat.com>
8058
8059 * m2-typeprint.c (m2_record_fields): Don't use
8060 TYPE_DECLARED_TYPE.
8061 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
8062 (struct main_type) <flag_declared_class>: New field.
8063 (struct cplus_struct_type) <declared_type>: Remove.
8064 <ntemplate_args>: Move earlier.
8065 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
8066 (DECLARED_TYPE_TEMPLATE): Remove.
8067 (TYPE_DECLARED_TYPE): Remove.
8068 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
8069 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
8070 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
8071 TYPE_DECLARED_TYPE.
8072
edf3d5f3
TT
80732010-02-02 Tom Tromey <tromey@redhat.com>
8074
8075 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
8076 * valops.c (search_struct_field): Compute nbases after calling
8077 CHECK_TYPEDEF.
8078 (check_field): Call CHECK_TYPEDEF.
8079 * cp-valprint.c (cp_print_value): Pass correct address to
8080 baseclass_offset. Fix check for virtual base past the end of the
8081 object. Don't offset address passed to cp_print_value_fields or
8082 apply_val_pretty_printer.
8083 (cp_print_value_fields): Fix call to val_print.
8084 (cp_print_value_fields_rtti): New function.
8085 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
8086 * p-valprint.c (pascal_object_print_value_fields): Fix call to
8087 val_print.
8088 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
8089 offset to address.
8090 * language.h (struct language_defn) <la_val_print>: Document.
8091 * c-lang.h (cp_print_value_fields_rtti): Declare.
8092
e4b7f41c
JK
80932010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8094
8095 PR libc/11214:
8096 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8097 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
8098 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
8099
7618e12b
DJ
81002010-02-01 Michael Matz <matz@suse.de>
8101 Daniel Jacobowitz <dan@codesourcery.com>
8102
e4b7f41c 8103 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
8104 functions use a frame pointer.
8105
b381ea14
JK
81062010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8107
8108 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
8109 by a conditional setting DYN_ADDR. Use DYN_ADDR.
8110 * config/djgpp/fnchange.lst: Add translations for
8111 symbol-without-target_section.exp and symbol-without-target_section.c.
8112
0e05dfcb
DJ
81132010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8114
8115 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
8116 (remote_breakpoint_for_pc): Correct invalid_p check.
8117 * gdbarch.c: Regenerated.
8118
f9d67f43
DJ
81192010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8120
8121 * arm-tdep.c (arm_find_mapping_symbol): New function, from
8122 arm_pc_is_thumb.
8123 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
8124 (extend_buffer_earlier): New function.
8125 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
8126 (arm_adjust_breakpoint_address): New function.
8127 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
8128
177321bd
DJ
81292010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8130
8131 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
8132 (arm_linux_thumb2_le_breakpoint): New constants.
8133 (arm_linux_init_abi): Set thumb2_breakpoint and
8134 thumb2_breakpoint_size.
8135 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
8136 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
8137 Implement support for single stepping through IT blocks if
8138 a 32-bit Thumb breakpoint instruction is available.
8139 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
8140 is available, use it when needed.
8141 (arm_remote_breakpoint_from_pc): New function.
8142 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
8143 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
8144 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
8145
a1dcb23a
DJ
81462010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
8147
8148 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
8149 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
8150 * gdbarch.c, gdbarch.h: Regenerated.
8151 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
8152 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
8153 gdbarch_remote_breakpoint_from_pc.
8154
2b009048
DJ
81552010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
8156
8157 * infrun.c (prepare_to_proceed): Handle other signals which might
8158 match a breakpoint.
8159 (handle_inferior_event): Move the check for unusual breakpoint
8160 signals earlier.
8161
e4e2711a
JB
81622010-01-29 Paul Hilfinger <hilfinger@adacore.com>
8163
8164 amd64 - function returning record with field straddling 2 registers.
8165 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
8166 a record of length <= 16 in which a field straddles the two
8167 eightbytes.
8168
cba6fab5
JB
81692010-01-29 Joel Brobecker <brobecker@adacore.com>
8170
8171 Implement return values on amd64-windows.
8172 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
8173 (amd64_windows_return_value): New function.
8174 (amd64_windows_init_abi): Call set_gdbarch_return_value with
8175 amd64_windows_return_value.
8176
3af6ddfe
JB
81772010-01-29 Joel Brobecker <brobecker@adacore.com>
8178
8179 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 8180 parameter registers.
3af6ddfe
JB
8181 * i386-tdep.h (struct gdbarch_tdep): Add new field
8182 integer_param_regs_saved_in_caller_frame.
8183 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8184 tdep->integer_param_regs_saved_in_caller_frame to 1.
8185 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
8186 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
8187
80d19a06
JB
81882010-01-29 Joel Brobecker <brobecker@adacore.com>
8189
8190 amd64-windows: memory args passed by pointer during function calls.
8191 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
8192 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
8193 where tdep->memory_args_by_pointer is non-zero.
8194 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
8195 tdep->memory_args_by_pointer to 1.
8196
ba581dc1
JB
81972010-01-29 Joel Brobecker <brobecker@adacore.com>
8198
4966b6c2 8199 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
8200 * i386-tdep.h (enum amd64_reg_class): New, moved here from
8201 amd64-tdep.c.
8202 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
8203 call_dummy_integer_regs, and classify.
8204 * amd64-tdep.h (amd64_classify): Add declaration.
8205 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
8206 (amd64_reg_class): Delete, moved to i386-tdep.h.
8207 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
8208 Replace call to amd64_classify by call to tdep->classify.
8209 (amd64_push_arguments): Get the list of registers to use for
8210 passing integer parameters from the gdbarch tdep structure,
8211 rather than using a hardcoded one. Replace calls to amd64_classify
8212 by calls to tdep->classify.
8213 (amd64_push_dummy_call): Get the register number used for
8214 the "hidden" argument from tdep->call_dummy_integer_regs.
8215 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
8216 and tdep->call_dummy_integer_regs. Set tdep->classify.
8217 * amd64-windows-tdep.c: Add include of gdbtypes.h.
8218 (amd64_windows_dummy_call_integer_regs): New static global.
8219 (amd64_windows_classify): New function.
8220 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
8221 tdep->call_dummy_integer_regs and tdep->classify.
8222
d37346f0
DJ
82232010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
8224
8225 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
8226 for the new regcache. All callers updated.
8227 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
8228 (get_thread_arch_regcache): Do not set aspace here.
8229 * regcache.h (regcache_xmalloc): Update declaration.
8230
8231 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
8232 regcache_xmalloc updated.
8233
7434dadd
JB
82342010-01-28 Joel Brobecker <brobecker@adacore.com>
8235
8236 Another -Wunused-function error in procfs.c (sparc-solaris)
8237 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
8238 Only define if SYS_syssgi is defined.
8239 (remove_dbx_link_breakpoint): Delete declaration. Move up.
8240 (dbx_link_addr, insert_dbx_link_bpt_in_file)
8241 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
8242 is itself defined.
8243
16d905e2
CF
82442010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
8245
8246 * windows-nat.c (windows_initialization_done): New variable.
8247 (get_windows_debug_event): Issue error when process dies before
8248 completely initializing.
8249 (do_initial_windows_stuff): Set flag to indicate when we are done with
8250 the initial steps of attaching to the child.
8251
cd55e50f
JK
82522010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8253
8254 * symtab.h (struct symbol <symtab>): New comment on NULL values.
8255
99cc78aa
DE
82562010-01-27 Doug Evans <dje@google.com>
8257
4c7dcb84
DE
8258 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
8259
99cc78aa
DE
8260 * breakpoint.c (bpstat_stop_status): Delete useless code.
8261
52334bf5
JK
82622010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8263
8264 * printcmd.c (display_uses_solib_p): Remove variable section. Access
8265 objfile via SYMBOL_SYMTAB.
8266
708ead4e
TT
82672010-01-26 Tom Tromey <tromey@redhat.com>
8268
8269 PR exp/7643:
8270 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
8271 coerce_array on result.
8272
b14e635e
SW
82732010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8274
8275 * cp-namespace.c (cp_lookup_symbol_namespace): Added
8276 search_parent argument.
8277 (cp_add_using): Initialize 'searched' field.
8278 (reset_directive_searched): New function.
8279 * cp-support.h: Add 'searched' field to using_direct struct.
8280 (cp_lookup_symbol_imports): Ditto.
8281 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
8282 Perform recursive search.
8283 Implement non parent search.
8284 * valops.c (value_maybe_namespace_elt): Updated.
8285
8540c487
SW
82862010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
8287
8288 PR gdb/10929:
8289 * dwarf2read.c (read_lexical_block_scope): Create blocks for
8290 scopes which contain using directives even if they contain no
8291 declarations.
8292 * symtab.c (lookup_symbol_aux): Pass lowest level block to
8293 la_lookup_symbol_nonlocal.
8294 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
8295 cp_lookup_symbol_namespace.
8296 (cp_lookup_symbol_namespace): Perform an import lookup at every
8297 block level.
8298 (cp_lookup_symbol_imports): New function.
8299 (cp_lookup_symbol_in_namespace): New function.
8300
421d5d99
TT
83012010-01-25 Tom Tromey <tromey@redhat.com>
8302
8303 PR gdb/11049:
8304 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
8305 result.
8306
6bcc772d
RO
83072010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8308
8309 * configure.ac: Only use host_os part when disabling TUI on osf.
8310 Use test to check variables, prefix strings with x.
8311 * configure: Regenerate.
8312
8313 * solib-osf.c (osf_current_sos): Initialize tail.
8314
1c1238a5
TG
83152010-01-25 gingold <gingold@adacore.com>
8316
c8d5aac9
L
8317 * windows-nat.c (windows_continue): Use %x to print thread id.
8318 (get_windows_debug_event): Ditto.
1c1238a5 8319
0b92b5bb
TT
83202010-01-22 Tom Tromey <tromey@redhat.com>
8321
8322 PR symtab/11199:
8323 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
8324 type and arguments. Use smash_to_methodptr_type.
8325 (read_structure_type): Call quirk_gcc_member_function_pointer
8326 later.
8327 * gdbtypes.h (smash_to_methodptr_type): Declare.
8328 * gdbtypes.c (smash_to_methodptr_type): New function.
8329 (lookup_methodptr_type): Use it.
8330
0d5392b8
TT
83312010-01-21 Tom Tromey <tromey@redhat.com>
8332
8333 PR symtab/11198:
8334 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
8335 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
8336 * glibc-tdep.c (find_minsym_and_objfile): Remove.
8337 (glibc_skip_solib_resolver): Use
8338 lookup_minimal_symbol_and_objfile.
8339
e6d088ec
KT
83402010-01-21 Kai Tietz <kai.tietz@onevision.com>
8341
8342 * inflow.c (check_syscall): Guard by #if clause for GO32 and
8343 WIN32 targets.
8344
b966cb8a
TT
83452010-01-20 Tom Tromey <tromey@redhat.com>
8346
8347 PR backtrace/10770:
8348 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
8349 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
8350 * dwarf2expr.c (new_dwarf_expr_context): Allocate
8351 dwarf_stack_values, not CORE_ADDRs.
8352 (execute_stack_op): Change DW_OP_div and comparison operators to
8353 use signed operands.
8354
3f81c18a
VP
83552010-01-20 Vladimir Prus <vladimir@codesourcery.com>
8356
8357 Per-inferior args and tty and environment.
8358
8359 * infcmd.c (inferior_args): Rename to ...
8360 (inferior_args_scratch): ... this.
8361 (inferior_io_terminal): Rename to ...
8362 (inferior_io_terminal_scratch): ... this.
8363 (inferior_argc, inferior_argv): Remove.
8364 (set_inferior_io_terminal, get_inferior_io_terminal): Store
8365 inside current_inferior().
8366 (set_inferior_tty_command, show_inferior_tty_command): New.
8367 (get_inferior_args, set_inferior_args): Store inside
8368 current_inferior().
8369 (notice_args_set): Likewise and rename to...
8370 (set_args_command): ... this.
8371 (set_inferior_args_vector): Likewise.
8372 (notice_args_read): Rename to...
8373 (show_args_command): ...new.
8374 (tty_command): Remove.
8375 (run_command_1): Don't free old args, as they are freed by
8376 set_inferior_arg now.
8377 (run_no_args_command): Likewise.
8378 (inferior_environ): Remove.
8379 (run_command_1): Use environment of the current inferior.
8380 (environment_info, set_environment_command)
8381 (unset_environment_command, path_info, path_command): Likewise.
8382 (_initialize_infcmd): Adjust for function and variable renames.
8383 Do not init inferior_environ.
8384 * inferior.h (set_inferior_arg): Adjust prototype.
8385 (struct inferior): New fields args, argc, argv, terminal, environment.
8386 (inferior_environ): Remove declaration.
8387 * inferior.c (free_inferior): Free new fields.
8388 (add_inferior_silent): Initialize 'environment' field.
8389 * main.c (captured_main): Set arguments only after the initial
8390 inferior has been created. Set set_inferior_io_terminal,
8391 not tty_command.
8392 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
8393 inferior.
8394 (_initialize_mi_cmd_env): Adjust for disappearance of global
8395 inferior_environ.
8396 * solib.c (solib_find): Use environment of the current inferior.
8397
d8b65138
JK
83982010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8399
8400 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
8401 HAVE_PYTHON.
8402 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
8403
692465f1
JB
84042010-01-20 Joel Brobecker <brobecker@adacore.com>
8405
8406 Get rid of ada-lang.c:function_name_from_pc.
8407 * ada-lang.c: Add "stack.h" #include.
8408 (function_name_from_pc): Delete.
8409 (is_known_support_routine): Replace call to function_name_from_pc
8410 by call to find_frame_funname.
8411 (ada_unhandled_exception_name_addr_from_raise): Likewise.
8412
95519e0e
TT
84132010-01-19 Tom Tromey <tromey@redhat.com>
8414
8415 PR c++/11026:
8416 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
8417 objfile obstack.
8418
95c11dc7
TT
84192010-01-19 Tom Tromey <tromey@redhat.com>
8420
8421 * top.c (stop_sig, float_handler, do_nothing): Remove.
8422
a0f49112
JK
84232010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8424
8425 * breakpoint.c (watchpoint_check): Check the call
8426 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
8427 Extend the comment.
8d95cc3b 8428 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
8429 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
8430 watchpoint-cond-gone-stripped.c.
8431
ceeb3d5a
TT
84322010-01-19 Tom Tromey <tromey@redhat.com>
8433
8434 PR c++/8000:
8435 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
8436 into parent scope, and enumerator into grandparent scope.
8437
2b71fc8e
JB
84382010-01-19 Joel Brobecker <brobecker@adacore.com>
8439
8440 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
8441
03564ed9
JB
84422010-01-19 Joel Brobecker <brobecker@adacore.com>
8443
8444 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
8445 i[34567]86-*-solaris2.1[0-9]*.
8446 * configure.tgt: Likewise.
8447
fb2e7cb4
JB
84482010-01-19 Joel Brobecker <brobecker@adacore.com>
8449
8450 * NEWS: Document the source command enhancement allowing it
8451 to load Python scripts. Document the "set/show script-extension"
8452 commands.
8453
1cb5e2a4
JB
84542010-01-19 Joel Brobecker <brobecker@adacore.com>
8455
8456 Add -Wunused-function to compile flags.
8457 * configure.ac: Add -Wunused-function to build_warnings.
8458 * configure: Regenerate.
8459
0ec6cd0c
JB
84602010-01-19 Joel Brobecker <brobecker@adacore.com>
8461
8462 "delete" ada-lex.c:input function, not used.
8463 * ada-lex.l: #define YY_NO_INPUT.
8464
b74845da
JB
84652010-01-19 Joel Brobecker <brobecker@adacore.com>
8466
8467 Delete free_named_symtabs and associated cleanup.
8468 * symfile.h (free_named_symtabs): Delete declaration.
8469 * symfile.c: Remove some commented out code (clear_symtab_users_once).
8470 (cashier_psymtab): Comment function out.
8471 Delete declaration.
8472 (free_named_symtabs): Delete.
8473 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
8474 * dbxread.c (end_psymtab): Likewise.
8475 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
8476 * exec.c (exec_close_1): Ditto.
8477 * xcoffread.c (xcoff_end_psymtab): Likewise.
8478
65c06092
JB
84792010-01-19 Joel Brobecker <brobecker@adacore.com>
8480
8481 * stack.c (print_block_frame_labels): Comment function out.
8482
d5cd6034
JB
84832010-01-19 Joel Brobecker <brobecker@adacore.com>
8484
8485 Delete unused or undefined functions.
8486 * breakpoint.c (ep_parse_optional_filename): Delete.
8487 * dcache.c (dcache_write_line): Remove declaration.
8488 * infrun.c (build_infrun): Remove declaration.
8489 * tracepoint.c (tracepoint_save_command): Remove declaration.
8490 * linux-nat.c (init_lwp_list): Delete. No longer used.
8491 * event-loop.c (check_async_signal_handlers): Delete declaration.
8492 * infrun.c (init_execution_control_state): Delete.
8493 (proceed): Update comment to avoid mentioning
8494 init_execution_control_state.
8495 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
8496 * ada-lang.c (ada_to_static_fixed_value): Delete.
8497 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
8498 * cp-namespace.c (cp_copy_usings): Delete.
8499 * xml-syscall.c (xml_number_of_syscalls): Delete.
8500 * progspace.c (find_program_space_by_num): Delete.
8501 * inflow.c (handle_sigio): Delete declaration.
8502 * hppa-tdep.c (hppa_alignof): Delete.
8503 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
8504 (mipsnbsd_core_osabi_sniffer): Delete.
8505
4e8f195d
TT
85062010-01-18 Tom Tromey <tromey@redhat.com>
8507
8508 PR c++/9680:
8509 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
8510 (CONST_CAST): New tokens.
8511 (exp): Add new productions.
8512 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
8513 reinterpret_cast.
8514 (is_cast_operator): New function.
8515 (yylex): Handle cast operators specially.
8516 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
8517 UNOP_REINTERPRET_CAST>: New cases.
8518 * expprint.c (print_subexp_standard): Likewise.
8519 (op_name_standard): Likewise.
8520 (dump_subexp_body_standard): Likewise.
8521 * parse.c (operator_length_standard): Likewise.
8522 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
8523 UNOP_REINTERPRET_CAST.
8524 * gdbtypes.c (class_types_same_p): New function.
8525 (is_ancestor): Use it.
8526 (is_public_ancestor): New function.
8527 (is_unique_ancestor_worker): Likewise.
8528 (is_unique_ancestor): Likewise.
8529 * gdbtypes.h (class_types_same_p, is_public_ancestor)
8530 (is_unique_ancestor): Declare.
8531 * valops.c (value_reinterpret_cast): New function.
8532 (dynamic_cast_check_1): Likewise.
8533 (dynamic_cast_check_2): Likewise.
8534 (value_dynamic_cast): Likewise.
8535 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
8536
d9c57d9f
JB
85372010-01-18 Joel Brobecker <brobecker@adacore.com>
8538
8539 Fix build failure when building without Python support.
8540 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
8541 is not defined.
8542
f80d3ff2
JB
85432010-01-18 Joel Brobecker <brobecker@adacore.com>
8544
8545 Use XVS field type instead of doing a parallel lookup.
8546 * ada-lang.c (ada_get_base_type): Follow the XVS field type
8547 if it is a reference type instead of doing a type lookup using
8548 the XVS field name.
8549
5bf03f13
JB
85502010-01-18 Joel Brobecker <brobecker@adacore.com>
8551
8552 Trust PAD types instead of using PAD___XVS.
8553 * ada-lang.c (trust_pad_over_xvs): New static variable.
8554 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
8555 parallel XVS type, follow the XVS type instead of the PAD type.
8556 (unwrap_value): Make sure that there is no parallel XVE type
8557 before returning the value as is.
8558 (set_ada_list, show_ada_list): New static variables.
8559 (set_ada_command, show_ada_command): New functions.
8560 (_initialize_ada_language): Add new "set/show ada" prefix commands.
8561 Add new "set/show ada trust-PAD-over-XVS" setting.
8562
973817a3
JB
85632010-01-18 Tom Tromey <tromey@redhat.com>
8564 Thiago Jung Bauermann <bauerman@br.ibm.com>
8565
8566 Allow "source" to load python scripts.
8567 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
8568 * python/python.c (source_python_script): New function.
8569 * python/python.h (source_python_script): Add declaration.
8570 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
8571 (script_ext_off, script_ext_soft, script_ext_strict)
8572 (script_ext_enums, script_ext_mode): New static constants.
8573 (show_script_ext_mode, find_and_open_script): New functions.
8574 (source_script): Enhance to handle Python scripts.
8575 (init_cli_cmds): Add set/show script-extension commands.
8576
98e03262
SS
85772010-01-16 Stan Shebs <stan@codesourcery.com>
8578
8579 * tracepoint.h (struct trace_status): Use unsigned long long
8580 instead of size_t.
8581 * tracepoint.c (trace_status_command): Fix printf directive.
8582 (trace_save_command): Check fwrite returns, fix printf directive.
8583 (trace_filename): New global.
8584 (tfile_open): Set it, check read returns.
8585 (tfile_close): Free trace_filename.
8586 (tfile_get_traceframe_address): Check read returns.
8587 (tfile_trace_find): Ditto.
8588 (tfile_fetch_registers): Ditto.
8589 (tfile_xfer_partial): Ditto.
8590 (tfile_get_trace_state_variable_value): Ditto.
8591
00bf0b85
SS
85922010-01-15 Stan Shebs <stan@codesourcery.com>
8593
8594 Add trace file support.
8595 * tracepoint.h (enum trace_stop_reason): New enum.
8596 (struct trace_status): New struct.
8597 (parse_trace_status): Declare.
8598 (struct uploaded_tp): Move here from remote.c,
8599 add fields for actions.
8600 (struct uploaded_tsv): New struct.
8601 * tracepoint.c (tfile_ops): New target vector.
8602 (trace_fd): New global.
8603 (tfile_open): New function.
8604 (tfile_close): New function.
8605 (tfile_files_info): New function.
8606 (tfile_get_trace_status): New function.
8607 (tfile_get_traceframe_address): New function.
8608 (tfile_trace_find): New function.
8609 (tfile_fetch_registers): New function.
8610 (tfile_xfer_partial): New function.
8611 (tfile_get_trace_state_variable_value): New function.
8612 (init_tfile_ops): New function.
8613 (_initialize_tracepoint): Call it, add tfile target.
8614 (trace_status): New global.
8615 (current_trace_status): New function.
8616 (trace_running_p): Remove, change all users to get from
8617 current_trace_status()->running.
8618 (get_trace_status): Remove.
8619 (trace_status_command): Call target_get_trace_status directly,
8620 report more detail including tracing stop reasons.
8621 (trace_find_command): Always allow tfind on a file.
8622 (trace_find_pc_command): Ditto.
8623 (trace_find_tracepoint_command): Ditto.
8624 (trace_find_line_command): Ditto.
8625 (trace_find_range_command): Ditto.
8626 (trace_find_outside_command): Ditto.
8627 (trace_frames_offset, cur_offset): Declare as off_t.
8628 (trace_regblock_size): Rename from reg_size, update users.
8629 (parse_trace_status): New function.
8630 (tfile_interp_line): New function.
8631 (disconnect_or_stop_tracing): Ensure current trace
8632 status before asking what to do.
8633 (stop_reason_names): New global.
8634 (trace_save_command): New command.
8635 (get_uploaded_tp): Move here from remote.c.
8636 (find_matching_tracepoint): Ditto.
8637 (merge_uploaded_tracepoints): New function.
8638 (parse_trace_status): Use stop_reason_names.
8639 (_initialize_tracepoint): Define tsave command.
8640 * target.h (target_ops): New fields to_save_trace_data,
8641 to_upload_tracepoints, to_upload_trace_state_variables,
8642 to_get_raw_trace_data, change to_get_trace_status
8643 to take a pointer to a status struct.
8644 (target_save_trace_data): New macro.
8645 (target_upload_tracepoints): New macro.
8646 (target_upload_trace_state_variables): New macro.
8647 (target_get_raw_trace_data): New macro.
8648 * target.c (update_current_target): Add new methods, change
8649 signature of to_get_trace_status.
8650 * remote.c (hex2bin): Make globally visible.
8651 (bin2hex): Ditto.
8652 (remote_download_trace_state_variable): Download name also.
8653 (remote_get_trace_status): Update parameter, use
8654 parse_trace_status.
8655 (remote_save_trace_data): New function.
8656 (remote_upload_tracepoints): New function.
8657 (remote_upload_trace_state_variables): New function.
8658 (remote_get_raw_trace_data): New function.
8659 (remote_start_remote): Use them.
8660 (_initialize_remote_ops): Add operations.
8661 * ax-gdb.c: Include breakpoint.h.
8662 * breakpoint.c (create_tracepoint_from_upload): Use
8663 break_command_really, return tracepoint, warn about unimplemented
8664 parts.
8665 * NEWS: Mention trace file addition.
8666
d904de5b
JK
86672010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8668
8669 Fix compilation warning on gcc-3.4.
8670 * exec.c (print_section_info): Move the `displacement' variable
8671 initialization to its declaration.
8672
64aa9731
JK
86732010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8674
8675 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
8676 comparison.
8677
ca1f5def 86782010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
8679
8680 "info tasks" broken by typedefs in ATCB type definitions.
8681 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
8682 ada_check_typedef before retrieving the length of the type for
8683 regular fields.
8684
12ab9e09
JB
86852010-01-15 Joel Brobecker <brobecker@adacore.com>
8686
8687 Do not use name-based lookup for unconstrained packed arrays.
8688 * ada-lang.c (find_parallel_type_by_descriptive_type):
8689 Limit the fallback to name-based lookups to the case where
8690 the type is a constrained packed array.
8691
c389c3dc
JB
86922010-01-15 Joel Brobecker <brobecker@adacore.com>
8693
8694 Enhance gdb-gdb.py to handle main_type.type_specific.
8695 * gdb-gdb.py: Print the type-specific part of struct main_type.
8696
7991dee7
JK
86972010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
8698
8699 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
8700 * configure: Regenerate.
8701 * config.in: Regenerate.
8702 * utils.c: Include sys/resource.h.
8703 (dump_core, can_dump_core): New.
8704 (internal_vproblem): Update the comment. Check can_dump_core while
8705 setting dump_core_p. Replace two abort calls by dump_core calls.
8706
93c26624
JK
87072010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8708 Eli Zaretskii <eliz@gnu.org>
8709
8710 * NEWS: Document the PIE support.
8711
55235ad7
JK
87122010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8713
8714 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
8715 (check_is_pie_binary, _initialize_linux_tdep): Remove.
8716
41752192
JK
87172010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8718
8719 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
8720 Replace exec_entry_point call by bfd_get_start_address.
8721
9f2982ff
JK
87222010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8723
8724 Support Valgrind attachments broken by the PIE support.
8725 * auxv.c: Include gdbcore.h.
8726 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
8727 parameters ops, object and annex. Remove their assertions.
8728 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
8729 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
8730 (memory_xfer_auxv): ... here.
8731 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
8732 memory_xfer_auxv.
8733 * procfs.c (procfs_xfer_partial): Likewise.
8734 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
8735 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
8736 (svr4_solib_create_inferior_hook): Conditionalize the
8737 svr4_relocate_main_executable call.
8738
61f0d762
JK
87392010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8740
8741 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
8742 target_section. Find SECT in current_target_sections, gdb_assert it.
8743 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
8744 New variable abfd.
8745 * symtab.c (lookup_objfile_from_block): Return the binary file instead
8746 of separate debug info file.
8747
51bee8e9
JK
87482010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8749
8750 Support PIEs with no symfile_objfile.
8751 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
8752 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
8753
b8040f19
JK
87542010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8755
8756 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
8757 code part to ...
8758 (svr4_static_exec_displacement): ... a new function.
8759 (svr4_exec_displacement): New function.
8760 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
8761 new_offsets using alloca now. Remove variable old_chain and changed.
8762 Call objfile_relocate unconditionally now.
8763
eb90ce83
DE
87642010-01-14 Doug Evans <dje@google.com>
8765
8766 * gdbtypes.c (arch_flags_type): Fix comment.
8767 * gdbtypes.h (arch_composite_type): Fix comment.
8768
bdfed3bc
TG
87692009-01-14 Tristan Gingold <gingold@adacore.com>
8770
8771 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
8772 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
8773 to symbol_file_add_from_bfd. Add OSO as separate objfile.
8774 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
8775 macho_add_oso_symfile.
8776 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
8777
1596ad23
JB
87782010-01-14 Joel Brobecker <brobecker@adacore.com>
8779
8780 Tru64: Dead threads are never deleted.
8781 * dec-thread.c (dec_thread_ptid_is_alive): New function.
8782 (dec_thread_count_gdb_threads): Fix counter increment.
8783 (dec_thread_add_gdb_thread): Fix *listp increment.
8784 (resync_thread_list): Fix bug in deletion of dead threads that
8785 caused all threads to be deleted, instead of just the dead ones.
8786
be759fcf
PM
87872010-01-13 Phil Muldoon <pmuldoon@redhat.com>
8788
8789 PR python/10705
8790
8791 * python/python-internal.h: Add lazy_string_object_type
8792 definition.
8793 (create_lazy_string_object, gdbpy_initialize_lazy_string)
8794 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
8795 * python/py-value.c (valpy_lazy_string): New function.
8796 (convert_value_from_python): Add lazy string conversion.
8797 * python/py-prettyprint.c (pretty_print_one_value): Check if
8798 return is also a lazy string.
8799 (print_string_repr): Add lazy string printing branch.
8800 (print_children): Likewise.
8801 * python/py-lazy-string.c: New file. Implement lazy strings.
8802 * python/python.c (_initialize_python): Call
8803 gdbpy_initialize_lazy_string.
8804 * varobj.c (value_get_print_value): Add lazy string printing
8805 branch. Account for encoding.
8806 * c-lang.c (c_printstr): Account for new encoding argument. If
8807 encoding is NULL, find encoding suited for type, otherwise use
8808 user encoding.
8809 * language.h (language_defn): Add encoding argument.
8810 (LA_PRINT_STRING): Likewise.
8811 * language.c (unk_lang_printstr): Update to reflect new encoding
8812 argument to language_defn.
8813 * ada-lang.h (ada_printstr): Likewise.
8814 * c-lang.h (c_printstr): Likewise.
8815 * p-lang.h (pascal_printstr);
8816 * f-lang.c (f_printstr): Likewise.
8817 * m2-lang.c (m2_printstr): Likewise.
8818 * objc-lang.c (objc_printstr): Likewise.
8819 * p-lang.c (pascal_printstr): Likewise.
8820 * scm-lang.c (scm_printstr): Likewise.
8821 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
8822 encoding argument.
8823 * ada-valprint.c (ada_printstr): Likewise.
8824 * f-valprint.c (f_val_print): Likewise
8825 * m2-valprint.c (m2_val_print): Likewise.
8826 * p-valprint.c (pascal_val_print): Likewise.
8827 * expprint.c (print_subexp_standard): Likewise.
8828 * valprint.c (val_print_string): Likewise.
8829 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
8830 (SUBDIR_PYTHON_SRCS): Likewise.
8831 (py-lazy-string.o): New rule.
8832
1fe72117 88332010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
8834
8835 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
8836 uninitialized" warning from gcc on local `tree'.
8837
dc146f7c
VP
88382010-01-13 Vladimir Prus <vladimir@codesourcery.com>
8839
8840 Implement core awareness.
8841
8842 * bcache.c (compare_ints): Remove
8843 (print_percentage): Use compare_positive_ints.
8844 * defs.h (compare_positive_ints): Declare.
8845 * linux-nat.h (struct lin_lwp): New field core.
8846 (linux_nat_core_of_thread_1): Declare.
8847 * linux-nat.c (add_lwp): Init the 'core' field.
8848 (linux_nat_wait_1): Record the core.
8849 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
8850 (linux_nat_add_target): Register the above.
8851 * linux-thread-db.c (update_thread_core): New.
8852 (thread_db_find_new_threads): Update core information for
8853 every thread.
8854 * remote.c (struct private_thread_info): New.
8855 (free_private_thread_info, demand_private_info): New.
8856 (PACKET_qXfer_threads, use_osdata_threads): New.
8857 (struct thread_item, threads_parsing_context
8858 (start_thread, end_thread, thread_attributes)
8859 (thread_children, threads_children, threads_elements): New.
8860 (remote_threads_info): Try qXfer:threads before anything
8861 else.
8862 (remote_protocol_packets): Register qXfer:threads.
8863 (remote_open_1): Init use_osdata_threads.
8864 (struct stop_reply): New field 'core'.
8865 (remote_parse_stop_reply): Parse core number.
8866 (process_stop_reply): Record core number.
8867 (remote_xfer_partial): Handle qXfer:threads.
8868 (remote_core_of_thread): New.
8869 (init_remote_ops): Register remote_core_of_thread.
8870 (_initialize_remote): Register qXfer:read.
8871 * target.c (target_core_of_thread): New
8872 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
8873 (struct target_ops): New field to_core_of_threads.
8874 (target_core_of_thread): Declare.
8875 * gdbthread.h (struct thread_info): New field private_dtor.
8876 * thread.c (print_thread_info): Report the core.
8877 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
8878 * utils.c (compare_positive_ints): New.
8879 * features/threads.dtd: New.
8880 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
8881 * mi/mi-main.c (struct collect_cores_data, collect_cores)
8882 (do_nothing, free_vector_of_osdata_items)
8883 (splay_tree_int_comparator, free_splay_tree): New.
8884 (print_one_inferior_data): Implemented printing of selected
8885 inferiors. Collect and print cores.
8886 (output_cores): New.
8887 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
8888 thread groups together with --available.
8889
d30c5336
JK
88902010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8891
8892 * configure: Regenerate (for _STRUCTURED_PROC).
8893
02893727
JB
88942010-01-12 Joel Brobecker <brobecker@adacore.com>
8895
8896 Delete dead function.
8897 * ada-lang.c (extract_string): Delete. No longer used.
8898
46ed2d6f
JB
88992010-01-12 Joel Brobecker <brobecker@adacore.com>
8900
8901 Fix -Wunused warning in dec-thread.c.
8902 * dec-thread.c (dec_thread_count_gdb_threads)
8903 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
8904
606b8d1a
JB
89052010-01-12 Joel Brobecker <brobecker@adacore.com>
8906
8907 * ada-valprint.c (ada_print_floating): Remove trailing space.
8908
b4ba55a1
JB
89092010-01-12 Joel Brobecker <brobecker@adacore.com>
8910
8911 Add support for DW_AT_GNAT_descriptive_type.
8912 * gdbtypes.h (enum type_specific_kind): New enum.
8913 (struct main_type) [type_specific_field]: New component.
8914 [type_specific]: Add new component "gnat_stuff".
8915 (struct gnat_aux_type): New type.
8916 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
8917 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
8918 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
8919 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
8920 (TYPE_SPECIFIC_FIELD): New macros.
8921 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
8922 type does not hold any cplus-specific data.
8923 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
8924 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
8925 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
8926 cplus-specific data.
8927 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
8928 Set new component TYPE_SPECIFIC_FIELD (type).
8929 (gnat_aux_default): New constant.
8930 (allocate_gnat_aux_type): New function.
8931 (init_type): Add initialization the type-specific stuff for
8932 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
8933 (print_gnat_stuff): New function.
8934 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
8935 specific data. Adjust code that prints the contents of the
8936 type-specific union using the TYPE_SPECIFIC_FIELD value.
8937 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
8938 the type cplus stuff for Ada types.
8939 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
8940 Error out if these routines are called with an Ada type.
8941 (read_structure_type, read_array_type, read_subrange_type):
8942 Add call to set_descriptive_type.
8943 (set_die_type): Initialize the gnat-specific data if necessary.
8944 (need_gnat_info, die_descriptive_type, set_descriptive_type):
8945 New functions.
8946 * ada-lang.c (decode_constrained_packed_array_type): Use
8947 decode_constrained_packed_array_type instead of doing a standard
8948 lookup to locate a parallel type.
8949 (find_parallel_type_by_descriptive_type): New function.
8950 (ada_find_parallel_type_with_name): New function.
8951 (ada_find_parallel_type): Reimplement using
8952 ada_find_parallel_type_with_name.
8953 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
8954 to check if type has a cplus stuff.
8955 * linespec.c (total_number_of_methods): Likewise.
8956 * mdebugread.c (new_type): Likewise.
8957
b0f02ee9
JK
89582010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8959
8960 * NEWS: Document the 0b binary number prefix parsing.
8961
b260e109
JK
89622010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8963
8964 * objfiles.c (objfile_relocate1): Change the return type to int.
8965 Describe the new return value. Return non-zero if data changed.
8966 (objfile_relocate): New variable changed. Set it. Call
8967 breakpoint_re_set depending on CHANGED.
8968
b5cfddf5
JK
89692010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8970
8971 Implement binary numbers parsing.
8972 * c-exp.y (parse_number): New case 'b' and 'B'.
8973
e0ae4240
JK
89742010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8975 Tristan Gingold <gingold@adacore.com>
8976
8977 * solib.c (info_sharedlibrary_command): Replace
8978 objfile_has_partial_symbols and objfile_has_full_symbols calls by
8979 objfile_has_symbols.
8980
6e0e5977
JB
89812010-01-10 Joel Brobecker <brobecker@adacore.com>
8982
8983 * NEWS: Document the improvements made to the mips-irix port.
8984
7348c5e1
JB
89852010-01-09 Joel Brobecker <brobecker@adacore.com>
8986
8987 Fix the documentation of valprint.c:value_print.
8988 * valprint.c (value_print): Update the function description to
8989 mention that the syntax of the output follows the current_language,
8990 not necessarily C.
8991
567995e1
JK
89922010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8993
8994 Fix displacement of separate debug info files.
8995 * objfiles.c (objfile_relocate): Rename to ...
8996 (objfile_relocate1): ... here and make it static. Extend the comment.
8997 (objfile_relocate): New function.
8998 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
8999 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
9000 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
9001 allocated using alloca.
9002 * symfile.c (copy_section_addr_info): Remove.
9003 (build_section_addr_info_from_objfile): Make it global. New variables
9004 addr_bit and mask, use them.
9005 * symfile.h (build_section_addr_info_from_objfile): New prototype.
9006 (copy_section_addr_info): Remove.
9007
6d8eadbd
JB
90082010-01-09 Joel Brobecker <brobecker@adacore.com>
9009
9010 Signal unwinder for mips-irix N32.
9011 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
9012 tramp-frame.h.
9013 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
9014 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
9015 (SIGCONTEXT_LO_OFF): New macros.
9016 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
9017 (mips_irix_n32_tramp_frame): New static constant.
9018 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
9019
27087a3d
JB
90202010-01-09 Joel Brobecker <brobecker@adacore.com>
9021
9022 Breakpoint in shared library does not work on mips-irix.
9023 * procfs.c: #include "observer.h".
9024 (procfs_inferior_created): New function, moving here the code
9025 which unsets the syssgi syscall-exit notifications.
9026 (procfs_create_inferior): Remove the code which unsets the syssgi
9027 syscall-exit notifications. It is too early to do this here.
9028 (_initialize_procfs): Attach the procfs_inferior_created observer.
9029
f08877ba
JB
90302010-01-09 Joel Brobecker <brobecker@adacore.com>
9031
9032 Wrong return convention for arrays (mips-irix).
9033 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
9034 128 bits or smaller are returned the same way as structs
9035 and unions of the the same size.
9036
e4b97d48
JB
90372010-01-09 Joel Brobecker <brobecker@adacore.com>
9038
9039 Cannot set the PC on mips-irix.
9040 * irix5-nat.c (fill_gregset): Check regno against the raw PC
9041 register number, no the cooked one.
9042
11377e68
JB
90432010-01-09 Joel Brobecker <brobecker@adacore.com>
9044
9045 Error while loading core file on mips-irix.
9046 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
9047 if debugging from a core file.
9048
b2391021
JB
90492010-01-09 Joel Brobecker <brobecker@adacore.com>
9050
9051 GDB hangs when attaching to process on mips-irix.
9052 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
9053 attaching to a process.
9054
f2ec0ecf
JB
90552010-01-09 Joel Brobecker <brobecker@adacore.com>
9056
9057 Use the correct breakpoint instruction on mips-irix.
9058 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
9059 containing the correct breakpoint instruction to use on mips-irix.
9060 Use it when the osabi is GDB_OSABI_IRIX.
9061
3c95f01c
JB
90622010-01-09 Joel Brobecker <brobecker@adacore.com>
9063
9064 -Wunused warning in procfs.c (mips-irix only).
9065 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
9066 throughout instead of using praddset and prdelset respectively.
9067
4b7703ad
JB
90682010-01-09 Joel Brobecker <brobecker@adacore.com>
9069
9070 GDB crash while stepping into function.
9071 * infrun.c (handle_inferior_event): Refetch the current frame
9072 after handling what.main_action, in case that pointer became
9073 dangling.
9074
12c89474
JB
90752010-01-09 Joel Brobecker <brobecker@adacore.com>
9076
9077 Fix build failure of solaris-hosted cross debuggers.
9078 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
9079
1a3fd262 90802010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
9081
9082 Fix build failure on sparc-solaris.
9083 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
9084
75242ef4
JK
90852010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9086
9087 Move some symfile code into subroutines.
9088 * symfile.h (relative_addr_info_to_section_offsets)
9089 (addr_info_make_relative): New prototypes.
9090 * symfile.c (default_symfile_offsets): Move a part to ...
9091 (relative_addr_info_to_section_offsets): ... this new function.
9092 (default_symfile_offsets): Call it.
9093 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
9094 this part to ...
9095 (addr_info_make_relative): ... this new function.
9096
268a4a75
JK
90972010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9098
9099 Add from_tty to solib_create_inferior_hook.
9100 * infcmd.c (post_create_inferior): Move solib_add after
9101 solib_create_inferior_hook. Pass from_tty to
9102 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
9103 0 from_tty and comment why.
9104 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
9105 * linux-nat.c (linux_child_follow_fork): Likewise.
9106 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
9107 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
9108 from_tty.
9109 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
9110 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
9111 * solib-null.c (null_solib_create_inferior_hook): Likewise.
9112 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
9113 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
9114 * solib-som.c (som_solib_create_inferior_hook): Likewise.
9115 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
9116 Pass it to svr4_so_ops.solib_create_inferior_hook.
9117 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
9118 from_tty.
9119 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
9120 solib_add.
9121 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
9122 enable_break.
9123 * solib-target.c (solib_target_solib_create_inferior_hook): New
9124 parameter from_tty.
9125 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
9126 it to ops->solib_create_inferior_hook.
9127 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
9128 Move solib_add after solib_create_inferior_hook, call it now with
9129 from_tty as 0. New comment there.
9130 * solib.h (solib_create_inferior_hook): New parameter from_tty.
9131 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
9132 Likewise.
9133
cf00dfa7
VP
91342010-01-08 Vladimir Prus <vladimir@codesourcery.com>
9135
9136 Fix multiexec race.
9137 * infrun.c (handle_inferior_event): Use get_thread_regcache
9138 with events ptid, not get_current_regcache.
9139
f91e5ac3
JB
91402009-01-08 Joel Brobecker <brobecker@adacore.com>
9141
9142 GDB crash with empty executable name (MinGW).
9143 * source.c (openp): Add assert that parameter string is not NULL.
9144 if parameter string is an empty string, then return with a failure
9145 immediately.
9146
92b9ce5b
JB
91472009-01-08 Joel Brobecker <brobecker@adacore.com>
9148
9149 Get rid of support for VAX Floats.
9150 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9151 (ada_vax_float_print_function): Delete.
9152 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
9153 (ada_vax_float_print_function): Delete.
9154 * ada-typeprint.c (print_vax_floating_point_type): Delete.
9155 (ada_print_type): Remove support for VAX floats.
9156 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
9157
268a4a75 91582010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
9159
9160 * stabsread.c (read_args): Handle zero arguments.
9161
f0f20949
JB
91622009-01-08 Joel Brobecker <brobecker@adacore.com>
9163
9164 Cannot find in-tree libiconv.a after reconfigure.
9165 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
9166 that we can use, then cache the path to this archive.
9167 * configure: Regenerate.
9168
6b6218c5
SS
91692010-01-07 Stan Shebs <stan@codesourcery.com>
9170
35b1e5cc
SS
9171 Make tracepoint operations go through target vector.
9172 * target.h (enum trace_find_type): New enum.
9173 (struct target_ops): New fields to_trace_init,
9174 to_download_tracepoint, to_download_trace_state_variable,
9175 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
9176 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
9177 to_set_disconnected_tracing.
9178 (target_trace_init): New macro.
9179 (target_download_tracepoint): New macro.
9180 (target_download_trace_state_variable): New macro.
9181 (target_trace_start): New macro.
9182 (target_trace_set_readonly_regions): New macro.
9183 (target_get_trace_status): New macro.
9184 (target_trace_stop): New macro.
9185 (target_trace_find): New macro.
9186 (target_get_trace_state_variable_value): New macro.
9187 (target_set_disconnected_tracing): New macro.
9188 * target.c (update_current_target): Inherit and set defaults for
9189 tracepoint operations.
9190 * tracepoint.c (default_collect): Make globally visible.
9191 (target_is_remote): Remove, along with all calls.
9192 (tvariables_info): Call target_get_trace_state_variable_value.
9193 (remote_set_transparent_ranges): Remove.
9194 (trace_start_command): Call target_trace_init,
9195 target_download_tracepoint, etc.
9196 (download_tracepoint): Remove.
9197 (trace_stop_command): Simplify.
9198 (stop_tracing): Call target_trace_stop.
9199 (get_trace_status): Call target_get_trace_status.
9200 (trace_status_command): Add case for targets that cannot trace.
9201 (finish_tfind_command): Change to take numerical arguments, call
9202 target_trace_find.
9203 (trace_find_command): Update call to finish_tfind_command.
9204 (trace_find_pc_command): Ditto.
9205 (trace_find_tracepoint_command): Ditto.
9206 (trace_find_line_command): Ditto.
9207 (trace_find_range_command): Ditto.
9208 (trace_find_outside_command): Ditto.
9209 (set_disconnected_tracing_value): Call
9210 target_set_disconnected_tracing.
9211 * remote.c: Add protocol encoding bits from tracepoint.c.
9212 (trace_error): Move from tracepoint.c.
9213 (remote_get_noisy_reply): Ditto.
9214 (free_actions_list_cleanup_wrapper): Ditto.
9215 (free_actions_list): Ditto.
9216 (remote_trace_init): New function.
9217 (remote_download_tracepoint): New function.
9218 (remote_download_trace_state_variable): New function.
9219 (remote_trace_set_readonly_regions): New function.
9220 (remote_trace_start): New function.
9221 (remote_get_trace_status): New function.
9222 (remote_trace_stop): New function.
9223 (remote_trace_find): New function.
9224 (remote_download_trace_state_variable): New function.
9225 (remote_set_disconnected_tracing): New function.
9226 (init_remote_ops): Add tracepoint operations.
9227
6b6218c5
SS
9228 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
9229
089b4803
TG
92302010-01-07 Tristan Gingold <gingold@adacore.com>
9231
9232 * symfile.c (build_section_addr_info_from_objfile): New function.
9233 (symbol_file_add_separate): Don't use offsets from objfile but
9234 built an addr info.
9235
d5551862
SS
92362010-01-06 Stan Shebs <stan@codesourcery.com>
9237
9238 Support disconnected tracing.
9239 * infcmd.c (detach_command): Ask whether to stop tracing.
9240 * cli/cli-cmds.c (quit_command): Ditto.
9241 * breakpoint.h (struct breakpoint): New field number_on_target.
9242 * breakpoint.c (create_tracepoint_from_upload): New function.
9243 (get_tracepoint_by_number_on_target): New function.
9244 * remote.c (struct remote): New field disconnected_tracing.
9245 (remote_disconnected_tracing_feature): New function.
9246 (remote_protocol_features): Add DisconnectedTracing.
9247 (struct uploaded_tp): New struct.
9248 (uploaded_tps): New global.
9249 (get_uploaded_tp): New function.
9250 (find_matching_tracepoint): New function.
9251 (remote_get_tracing_state): New function.
9252 (remote_start_remote): Call it.
9253 * tracepoint.c (disconnected_tracing): New global.
9254 (trace_start_command): Initialize number_on_target.
9255 (stop_tracing): New function, split out from...
9256 (trace_stop_command): Call stop_tracing.
9257 (get_trace_status): New function, split out from...
9258 (trace_status_command): Call get_trace_status, add info on
9259 disconnection behavior.
9260 (disconnect_or_stop_tracing): New function.
9261 (finish_tfind_command): Translate from number on target.
9262 (trace_find_tracepoint_command): Translate to number on target.
9263 (send_disconnected_tracing_value): New function.
9264 (set_disconnected_tracing): New function.
9265 (_initialize_tracepoint): Add disconnected-tracing variable.
9266 * NEWS: Mention disconnected tracing.
9267
15d123c9
TG
92682010-01-06 Tristan Gingold <gingold@adacore.com>
9269
9270 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
9271 parameter to main_objfile. Iterate on all separate debug objfiles.
9272 * symfile.h (symbol_file_add_separate)
9273 (find_separate_debug_file_by_debuglink): Remove parameter names.
9274 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
9275 (reread_symbols): Use free_objfile_separate_debug.
9276 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
9277 Adjust comment.
9278 (objfile_separate_debug_iterate, add_separate_debug_objfile)
9279 (free_objfile_separate_debug): New prototypes.
9280 * objfiles.c (objfile_separate_debug_iterate): New function.
9281 (add_separate_debug_objfile, free_objfile_separate_debug): New
9282 functions.
9283 (free_objfile): Use free_objfile_separate_debug. Adjust for
9284 multiple separate debug objfile.
9285 (objfile_has_symbols): Adjust comment. Iterate on all separate
9286 debug objfiles.
9287 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
9288 debug objfile.
9289 (lookup_minimal_symbol_text): Ditto.
9290 (lookup_minimal_symbol_by_pc_name): Ditto.
9291 (lookup_minimal_symbol_solib_trampoline): Ditto.
9292 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
9293 debug objfiles.
9294
7a697b8d
SS
92952010-01-05 Stan Shebs <stan@codesourcery.com>
9296
9297 Add fast tracepoints.
9298 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
9299 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
9300 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
9301 * breakpoint.c (tracepoint_type): New function.
9302 (ALL_TRACEPOINTS): Use it.
9303 (should_be_inserted): Ditto.
9304 (bpstat_check_location): Ditto.
9305 (print_one_breakpoint_location): Ditto.
9306 (user_settable_breakpoint): Ditto.
9307 (set_breakpoint_location_function): Ditto.
9308 (disable_breakpoints_in_shlibs): Ditto.
9309 (delete_trace_command): Ditto.
9310 (print_it_typical): Add bp_fast_tracepoint case.
9311 (bpstat_what): Ditto.
9312 (print_one_breakpoint_location): Ditto.
9313 (allocate_bp_location): Ditto.
9314 (mention): Ditto.
9315 (breakpoint_re_set_one): Ditto.
9316 (disable_command): Ditto.
9317 (enable_command): Ditto.
9318 (check_fast_tracepoint_sals): New function.
9319 (break_command_really): Call it.
9320 (ftrace_command): New function.
9321 (_initialize_breakpoint): Add ftrace command.
9322 * gdbarch.sh (fast_tracepoint_valid_at): New.
9323 * gdbarch.h, gdbarch.c: Regenerate.
9324 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
9325 (i386_gdbarch_init): Use it.
9326 * remote.c (struct remote_state): New field fast_tracepoints.
9327 (PACKET_FastTracepoints): New packet config type.
9328 (remote_fast_tracepoint_feature): New function.
9329 (remote_protocol_features): Add FastTracepoints.
9330 (remote_supports_fast_tracepoints): New function.
9331 (_initialize_remote): Add FastTracepoints.
9332 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
9333 * NEWS: Mention fast tracepoints.
9334
737a160e
JB
93352010-01-06 Joel Brobecker <brobecker@adacore.com>
9336
9337 * gdb-gdb.py: New file.
9338
ce6cca6d
MS
93392010-01-05 Michael Snyder <msnyder@vmware.com>
9340
9341 * infrun.c (handle_inferior_event): Fix typo in comment.
9342
0d15807d
JK
93432010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9344
9345 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
9346
7803799a
UW
93472010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9348
c8d5aac9 9349 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
9350 and s390x-linux64.
9351 (s390-linux32-expedite): Define.
9352 (s390-linux64-expedite): Define.
9353 (s390x-linux64-expedite): Define.
9354 * features/s390-acr.xml: New file.
9355 * features/s390-fpr.xml: New file.
9356 * features/s390-core32.xml: New file.
9357 * features/s390-core64.xml: New file.
9358 * features/s390x-core64.xml: New file.
9359 * features/s390-linux32.xml: New file.
9360 * features/s390-linux64.xml: New file.
9361 * features/s390x-linux64.xml: New file.
9362 * features/s390-linux32.c: New generated file.
9363 * features/s390-linux64.c: New generated file.
9364 * features/s390x-linux64.c: New generated file.
9365
9366 * regformats/s390-linux32.dat: New generated file.
9367 * regformats/s390-linux64.dat: New generated file.
9368 * regformats/s390x-linux64.dat: New generated file.
9369 * regformats/reg-s390.dat: Remove.
9370 * regformats/reg-s390x.dat: Remove.
9371
9372 * s390-nat.c: Include "auxv.h" and <elf.h>.
9373 (HWCAP_S390_HIGH_GPRS): Define if undefined.
9374 (s390_target_wordsize): New function.
9375 (s390_auxv_parse): Likewise.
9376 (s390_get_hwcap): Likewise.
9377 (s390_read_description): Likewise.
9378 (_initialize_s390_nat): Install s390_auxv_parse and
9379 s390_read_description.
9380
9381 * s390-tdep.c: Include "features/s390-linux32.c",
9382 "features/s390-linux64.c", and "features/s390x-linux64.c".
9383 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
9384 (s390_register_call_saved): New function.
9385 (s390_register_name): Remove.
9386 (s390_register_type): Remove.
9387 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
9388 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
9389 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
9390 (s390_pseudo_register_name): New function.
9391 (s390_pseudo_register_type): New function.
9392 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
9393 Handle full GPR pesudos and varying pseudo register numbers.
9394 (s390_pseudo_register_write): Likewise
9395 (s390x_pseudo_register_read): Remove.
9396 (s390x_pseudo_register_write): Likewise.
9397 (s390_register_group): Remove.
9398 (s390_pseudo_register_group): New function.
9399 (s390_regmap_gregset): Add GPR upper halves.
9400 (s390x_regmap_gregset): Likewise.
9401 (s390_regmap_fpregset): Likewise.
9402 (s390_regmap_upper): New global variable.
9403 (s390_upper_regset): New global variable.
9404 (s390_upper_regset_sections): New global variable.
9405 (s390_regset_from_core_section): Handle GPR upper halves.
9406 (s390_core_read_description): New function.
9407 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
9408 register information. Handle varying pseudo register numbers.
9409 (s390_backchain_frame_unwind_cache): Likewise.
9410 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
9411 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
9412 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
9413 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
9414 Handle varying pseudo register numbers.
9415 (s390_unwind_pc): Handle varying pseudo register numbers.
9416 (s390_dwarf2_prev_register): New function.
9417 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
9418 register information. Handle varying pseudo register numbers.
9419 Install s390_dwarf2_prev_register to unwind full GPRs.
9420 (s390_gdbarch_init): Handle target descriptions. Assign varying
9421 pseudo register numbers. Install s390_adjust_frame_regnum.
9422 (_initialize_s390_tdep): Initialize target descriptions.
9423
9424 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
9425 (S390_NUM_REGS): Redefine to include upper half registers.
9426 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
9427 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
9428 (tdesc_s390_linux32): Add declaration.
9429 (tdesc_s390_linux64): Likewise.
9430 (tdesc_s390x_linux64): Likewise.
9431
1b1818e4
UW
94322010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9433
9434 * regset.h (struct core_regset_section): Add HUMAN_NAME.
9435 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
9436 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
9437 (ppc_linux_vmx_regset_sections): Likewise.
9438 (ppc_linux_fp_regset_sections): Likewise.
9439
9440 * corelow.c (get_core_register_section): Constify arguments.
9441 (get_core_registers): Use gdbarch_core_regset_sections instead
9442 of hard-coded platform-specific register section names.
9443
dcbf108f
UW
94442010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9445
9446 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 9447 a register, assume the least-significant part is used.
dcbf108f
UW
9448 (write_pieced_value): Likewise.
9449
704e9165
UW
94502010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9451
9452 * printcmd.c: Include "arch-utils.h".
9453 (do_one_display): Re-parse expression if current architecture changed.
9454
c54eabfa
JK
94552010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9456 Joel Brobecker <brobecker@adacore.com>
9457
9458 * gdbtypes.c (check_typedef): New comment on type length.
9459 * value.c (allocate_value_lazy): Remove the unused atype variable. New
9460 comment on type length.
9461 (value_primitive_field): Keep the original TYPE value, new comment.
9462
50cb2941
JK
94632010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9464
9465 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
9466 p_start. Change != comparisons to > and < comparisons.
9467
be66db07
JK
94682010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9469
9470 * cli/cli-script.c (process_next_line): Check P2 overrun.
9471
abd775ce
JB
94722009-01-01 Joel Brobecker <brobecker@adacore.com>
9473
9474 Update the copyright hearder to add year 2010 for most GDB files.
9475
6479260d
JB
94762009-01-01 Joel Brobecker <brobecker@adacore.com>
9477
9478 Fix build failure in inf-ptrace.c.
9479 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
9480
4a70f654
JB
94812010-01-01 Joel Brobecker <brobecker@adacore.com>
9482
9483 * top.c (print_gdb_version): Update copyright year.
9484
595939de 94852010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
9486
9487 Fix break *FUN'address thread NUM.
9488 * ada-lex.l (task): Expand rule to also match the thread keyword.
9489
70575d34
JB
94902010-01-01 Joel Brobecker <brobecker@adacore.com>
9491
9492 Fix break *FUN'address task NUM.
9493 * ada-lex.l (task): New rule.
9494 * ada-lang.c (valid_task_id): Make sure the Ada task list has
9495 been built before using it.
9496
e1e4d4a4 9497For older changes see ChangeLog-2009.
c906108c
SS
9498\f
9499Local Variables:
9500mode: change-log
9501left-margin: 8
9502fill-column: 74
9503version-control: never
57da7796 9504coding: utf-8
c906108c 9505End:
This page took 1.642717 seconds and 4 git commands to generate.