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