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