]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
[Ada/ravenscar] New name for active-thread symbol
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7f39f34a
JB
12010-11-22 Joel Brobecker <brobecker@adacore.com>
2
3 * ravenscar-thread.c (running_thread_name): Change value.
4 (read_thread_id): Remove advance declaration.
5 (get_running_thread_msymbol): New function.
6 (has_ravenscar_runtime): Use get_running_thread_msymbol to
7 compute msym_running_thread.
8 (get_running_thread_id): Renames read_thread_id. Slight modifications
9 to not take any argument anymore, using get_running_thread_msymbol
10 to determine which symbol to use instead.
11 (ravenscar_running_thread): Use get_running_thread_id instead of
12 read_thread_id.
13
f3890d59
JB
142010-11-22 Joel Brobecker <brobecker@adacore.com>
15
16 * ravenscar-sparc-thread.c (supply_register_at_address):
17 Fix passing of buf in call to regcache_raw_supply.
18
594e8718
JK
192010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
20
21 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
22
7ba86c9e
TT
232010-11-22 Tom Tromey <tromey@redhat.com>
24
25 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
26
1bfda48e
KS
272010-11-19 Keith Seitz <keiths@redhat.com>
28
29 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
30 Remove extraneous '/' after $(DESTDIR).
31 (PYTHON_INSTALL_DIR): Likewise.
32
3f1eff0a
JK
332010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
34
35 Fix stale memory references.
36 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
37 xfree, new comment.
38
954d8cae
TT
392010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
40 Tom Tromey <tromey@redhat.com>
41
42 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
43 (.PHONY): Remove for .y outputs.
44
d53d4ac5
TT
452010-11-19 Will Drewry <wad@google.com>
46 Tavis Ormandy <taviso@google.com>
47 Jan Kratochvil <jan.kratochvil@redhat.com>
48
49 * dwarf2read.c (decode_locdesc): Enforce location description stack
50 boundaries.
51
77bc0675
PM
522010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
53
54 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
55 instruction is found.
56
ba19bb4d
TT
572010-11-17 Tom Tromey <tromey@redhat.com>
58
59 * value.c (value_entirely_optimized_out): Check the
60 'check_any_valid' field.
61
19f220c3
JK
622010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
63
64 * ada-lang.c (modify_general_field): Remove.
65 (make_array_descriptor): Replace all modify_general_field calls by
66 modify_field.
67 * value.c (modify_field): Update comment. New variable bytesize.
68 Normalize BITPOS. Initialize BYTESIZE, use it.
69
87df528e
JK
702010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
71
72 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
73 elements after xfree.
74
97924a97
TT
752010-11-16 Tom Tromey <tromey@redhat.com>
76
77 * gdb-add-index.sh: Really remove.
78
9816fde3
JK
792010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
80
81 Code cleanup.
82 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
83 (init_one_comp_unit): ... this one.
84 (prepare_one_comp_unit): New prototype.
85 (dw2_require_line_header, process_psymtab_comp_unit): Use
86 init_one_comp_unit.
87 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
88 (load_partial_comp_unit): Remove variable attr. Use
89 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
90 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
91 prepare_one_comp_unit.
92 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
93 Use prepare_one_comp_unit.
94 (alloc_one_comp_unit): Rename to ...
95 (init_one_comp_unit): ... here and remove there calloc, new parameter
96 cu.
97 (prepare_one_comp_unit): New function.
98
73c964d6
PM
992010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
100
101 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
102 possible used of uninitialized variable.
103
74af9197
NF
1042010-11-12 Nathan Froyd <froydnj@codesourcery.com>
105
106 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
107 (rs6000_gdbarch_init): Call it.
108
e52d5016
NF
1092010-11-12 Nathan Froyd <froydnj@codesourcery.com>
110
111 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
112 instructions if debugging an E500 binary.
113
621c8364
TT
1142010-11-12 Tom Tromey <tromey@redhat.com>
115
116 * varobj.c (value_get_print_value): Rearrange. Pass stream to
117 apply_varobj_pretty_printer.
118 * c-lang.c: Include exceptions.h.
119 (c_get_string): Throw MEMORY_ERROR when appropriate.
120 * python/py-prettyprint.c (enum string_repr_result): New.
121 (print_stack_unless_memory_error): New function.
122 (print_string_repr): Change return type. Use
123 print_stack_unless_memory_error.
124 (print_children): Use print_stack_unless_memory_error.
125 (apply_val_pretty_printer): Update. Don't print children if
126 string representation threw an exception.
127 (apply_varobj_pretty_printer): Add 'stream' argument. Use
128 print_stack_unless_memory_error.
129 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
130 globals.
131 (_initialize_python): Initialize them.
132 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
133 gdbpy_convert_exception.
134 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
135 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
136 (gdbpy_convert_exception): Declare.
137 (apply_varobj_pretty_printer): Update.
138 * python/py-utils.c (gdbpy_convert_exception): New function.
139
f1b9e6e7
MK
1402010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
141
142 * mi/mi-main.c (mi_cmd_target_detach): Accept new
143 thread-group id format.
144
74884f7b
JK
1452010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
146
147 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
148
84f4c1fe
PM
1492010-11-11 Phil Muldoon <pmuldoon@redhat.com>
150
151 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
152 NULL.
153 (BPPY_SET_REQUIRE_VALID): Ditto.
154 (bpnum_is_valid): Delete function.
155 (bppy_get_visibility): New function.
156 (bppy_new): Parse for, and validate internal keyword. Pass
157 internal keyword to breakpoint or watchpoint functions.
158 (build_bp_list): New function.
159 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
160 iterate_over_breakpoints.
161 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
162 look-aside vector.
163 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
164 to internal breakpoint chain.
165
166 * breakpoint.c (set_breakpoint_number): New function.
167 (breakpoint_1): Check if breakpoint number is more than zero.
168 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
169 (create_breakpoint_sal): Take a new parameter called internal.
170 Call set_breakpoint_number with internal parameter. Do not
171 mention internal breakpoints. All callers updated.
172 (create_breakpoint): Ditto.
173 (create_breakpoints_sal): Ditto.
174 (watch_command_1): Ditto.
175 (watch_command_wrapper): Take a new parameter called internal.
176 All callers updated.
177 (rwatch_command_wrapper): Ditto.
178 (awatch_command_wrapper): Ditto.
179 (save_breakpoints): Update breakpoint save condition check.
180 (iterate_over_breakpoints): New function.
181 * breakpoint.h: Add conditional python includes. Add py_bp_object
182 and comment to struct breakpoint. Update all callers.
183 * defs.h: Add PyObject definition for GDB builds without Python.
184
4dfea560
DE
1852010-11-10 Doug Evans <dje@google.com>
186
f61a2da7
DE
187 * python/lib/gdb/command/pretty_printers.py
188 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
189
4dfea560
DE
190 * value.c (set_value_enclosing_type): Renamed from
191 value_change_enclosing_type. All callers updated.
192 * value.h (set_value_enclosing_type): Update.
193 * valops.c (value_full_object): Always return a copy if we need to
194 make changes to the input value.
195
a1442452
PA
1962010-11-09 Pedro Alves <pedro@codesourcery.com>
197
198 * breakpoint.c (watch_command_1): Get a pointer of the lazy
199 version of the expression's value, even if reading the value from
200 memory fails. When creating a -location watchpoint, get the
201 value's address from the lazy value pointer.
202
803b5f95
JK
2032010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
204
205 * infrun.c (restore_inferior_thread_state): Use
206 discard_inferior_thread_state to free the data.
207 (discard_inferior_thread_state): xfree also siginfo_data.
208
99e7ae30
DE
2092010-11-05 Doug Evans <dje@google.com>
210
211 Make gdb.parameter("directories") work.
212 New command "set directories".
213 * NEWS: Document them.
214 * source.c (set_directories_command): New function.
215 (show_directories_1): Renamed from show_directories.
216 All callers updated.
217 (show_directories_command): New function.
218 (_initialize_source): Install "directories" as a set/show
219 variable instead of just a show command.
220
f4b8a18d
KW
2212010-11-05 Ken Werner <ken.werner@de.ibm.com>
222
223 * NEWS: Mention OpenCL C language support.
224 * Makefile.in (SFILES): Add opencl-lang.c.
225 (COMMON_OBS): Add opencl-lang.o.
226 * opencl-lang.c: New File
227 * defs.h (enum language): Add language_opencl.
228 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
229 IBM XL C OpenCL compiler.
230 * c-lang.h: Include "parser-defs.h".
231 (evaluate_subexp_c): Declare.
232 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
233 (c_op_print_tab): Add declaration.
234 * eval.c (binop_promote): Handle language_opencl.
235 * c-exp.y: Lookup the primitive types instead of referring to the
236 builtins.
237
075ff26d
JK
2382010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
239
240 Fix configure --enable-plugins --without-python.
241 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
242 * configure: Regenerate.
243
14ad3217
JK
2442010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
245
246 * solib.c (solib_read_symbols): Call exception_fprintf even without
247 FROM_TTY. Print also so->so_name.
248
a9d5ef47
SW
2492010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
250
251 * gdbtypes.h (struct rank): Created subrank.
252 * gdbtypes.c: Initialized subrank for all
253 'BADNESS' constants.
254 (distance_to_ancestor): New function.
255 (is_ancestor): Use distance_to_ancestor.
256 (is_public_ancestor): Ditto.
257 (sum_ranks): Handle subrank.
258 (compare_ranks): Ditto.
259 (rank_one_type): Subrank base conversions.
260
6403aeea
SW
2612010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
262
263 * gdbtypes.h: Create struct rank.
264 Convert all 'BADNESS' macros to const struct rank declarations.
265 (sum_ranks): New function.
266 (compare_ranks): New function.
267 * valops.c (find_oload_champ): Updated.
268 (classify_oload_match): Use compare_ranks.
269 Improved comments.
270 (compare_parameters): Use compare_ranks.
271 * gdbtypes.c: Initialize 'BADNESS' constants.
272 (sum_ranks): New function.
273 (compare_ranks): New function.
274 (compare_badness): Use compare_ranks.
275 (rank_function): Use global constants instead of literals.
276 (rank_one_type): Ditto.
277 Return struct rank.
278 Use sum_ranks.
279
23fa7f66
DE
2802010-11-04 Doug Evans <dje@google.com>
281
282 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
283 (find_pretty_printer): Fix comments.
284
608bcef2
HZ
2852010-11-04 Hui Zhu <teawater@gmail.com>
286
287 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
288
9addb3b9
JB
2892010-11-03 Joel Brobecker <brobecker@adacore.com>
290
291 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
292 and `len' declaration and computation inside block where they
293 are being used.
294
75be741b
JB
2952010-11-03 Joel Brobecker <brobecker@adacore.com>
296
297 * valprint.c (val_print_array_elements): Put back handling of
298 empty arrays.
299
dbc98a8b
KW
3002010-11-03 Ken Werner <ken.werner@de.ibm.com>
301
302 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
303 DIE and set the length of the type.
304 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
305 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
306 return 0 if the corresponding bounds of the type are undefined.
307 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
308 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
309 (val_print_array_elements): Use get_array_bounds to compute the number
310 of array elements instead of dividing the length of the array by the
311 length of the element types.
312 * valarith.c (vector_binop): Likewise.
313 * valops.c (value_cast): Likewise.
314 * c-valprint.c (c_val_print): Likewise.
315 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
316
120bd360
KW
3172010-11-03 Ken Werner <ken.werner@de.ibm.com>
318
319 * valarith.c (value_pos, value_neg, value_complement): Handle
320 vector types.
321 * valops.c (value_one): Likewise.
322
c37f7098
KW
3232010-11-03 Ken Werner <ken.werner@de.ibm.com>
324
325 * value.h (value_non_lval): Declare.
326 * value.c (value_non_lval): New function.
327 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
328 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
329 non-lvalue.
330
7b51bc51
DE
3312010-11-02 Doug Evans <dje@google.com>
332
333 New python module gdb.printing, and new commands info pretty-printer,
334 enable pretty-printer, disable pretty-printer.
335 * NEWS: Mention them.
336 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
337 gdb/command/__init__.py, gdb/command/pretty_printers.py.
338 * python/lib/gdb/__init__.py: Install pretty-printer commands.
339 * python/lib/gdb/printing.py: New file.
340 * python/lib/gdb/command/__init__.py: New file.
341 * python/lib/gdb/command/pretty_printers.py: New file.
342
50c97f38
TT
3432010-11-02 Tom Tromey <tromey@redhat.com>
344
345 * NEWS: Mention Guile removal.
346 * defs.h (enum language) <language_scm>: Remove.
347 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
348 scm-valprint.c.
349 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
350 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
351 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
352 Remove.
353
9dea9163
DE
3542010-11-02 Doug Evans <dje@google.com>
355
356 * top.c: #include "python/python.h".
357 (gdb_init): Add a comment regarding initialize_all_files.
358 Call finish_python_initialization at the end.
359 * python/python.h (finish_python_initialization): Declare.
360 * python/python.c (finish_python_initialization): New function.
361 (_initialize_python): Move python-implemented initialization there
362 and call it.
363 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
364
a289b8f6
JK
3652010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
366
367 Revert:
368 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
369 Pedro Alves <pedro@codesourcery.com>
370 * gdbthread.h (currently_stepping): New declaration.
371 * infrun.c (currently_stepping): Remove the forward declaration.
372 (currently_stepping): Make it global.
373 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
374 variables tp and step, initialized them. Pass STEP to to_resume.
375 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
376 * remote.c (currently_stepping_callback): New.
377 (remote_vcont_resume)
378 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
379 New variable tp. Call currently_stepping_callback and step such
380 thread.
381
2209c807
HZ
3822010-11-01 Hui Zhu <teawater@gmail.com>
383
384 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
385
0a2a54b8
HZ
3862010-10-28 Hui Zhu <teawater@gmail.com>
387
388 * tracepoint.c (trace_save): Change utp->actions to
389 utp->step_actions.
390
284a3db3
JB
3912010-10-26 Joel Brobecker <brobecker@adacore.com>
392
393 * (_FILE_OFFSET_BITS): Fix typo in comment.
394
aed1781d
JB
3952010-10-26 Joel Brobecker <brobecker@adacore.com>
396
397 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
398 (PyEval_InitThreads): Remove duplicate. Define as nothing.
399 (PyEval_ReleaseLock): Define as nothing.
400
1e3fad37
JB
4012010-10-26 Joel Brobecker <brobecker@adacore.com>
402
403 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
404 by call to FILENAME_CMP.
405
558b1900
JB
4062010-10-26 Joel Brobecker <brobecker@adacore.com>
407
408 * dictionary.c (dict_hash): Move assignment out of if condition.
409
f474844c
JZ
4102010-10-22 Jie Zhang <jie@codesourcery.com>
411
412 * Makefile.in (install): Remove dependency of install-only and
413 recursively invoke make for install-only.
414 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
415 (install): Pass FLAGS_TO_PASS when recursively make install-only.
416
8991e9fa
HZ
4172010-10-20 Hui Zhu <teawater@gmail.com>
418
419 * tracepoint.c (tfile_get_traceframe_address): Call
420 extract_signed_integer.
421 (tfile_trace_find): Call extract_signed_integer and
422 extract_unsigned_integer. Change data_size to unsigned int.
423 (tfile_fetch_registers): Call extract_unsigned_integer.
424 (tfile_xfer_partial): Ditto.
425 (tfile_get_trace_state_variable_value): Call
426 extract_signed_integer and extract_unsigned_integer.
427
21bce120
VP
4282010-10-20 Vladimir Prus <vladimir@codesourcery.com>
429
430 * remote.c (remote_get_threadlist): If we got empty
431 response, bail out immediately, and don't emit any
432 warnings.
433
ad8b5167
UW
4342010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
435
436 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
437 for "mov pc, REG" as well.
438 (thumb_instruction_changes_pc): Likewise.
439
79afc5ef
SW
4402010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
441
442 PR C++/11500:
443 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
444 * eval.c (evaluate_subexp_standard): Check for overload of
445 'operator->'.
446 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
447 (value_x_unop): Ditto.
448 * valops.c: Include "exceptions.h".
449 (find_overload_match): Throw NOT_FOUND_ERROR.
450 (value_struct_elt): Ditto.
451
cca56ac7
TT
4522010-10-19 Tom Tromey <tromey@redhat.com>
453
454 * python/py-cmd.c (cmdpy_function): Unreference exception state.
455
026ffab7
SW
4562010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
457
458 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
459 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
460 for conversion.
461 Make all other conversions illegal.
462
8c540a24
DE
4632010-10-18 Doug Evans <dje@google.com>
464
465 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
466 assumptions of when this case happens. Print "<unnamed typedef>".
467
3a772aa4
TT
4682010-10-18 Tom Tromey <tromey@redhat.com>
469
470 * valprint.c (val_print_string): Pass 'encoding' to
471 LA_PRINT_STRING.
472
01f8c46d
JK
4732010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
474
475 Fix the `stopped language detection' testcase for gcc-4.5.
476 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
477 * symfile.c (set_initial_language): Move variable filename to a more
478 inner block. Prefer LANGUAGE_OF_MAIN.
479 * symtab.c (language_of_main): New variable.
480 (set_main_name): Always reset LANGUAGE_OF_MAIN.
481 * symtab.h (language_of_main): New declaration.
482
8aeb23f3
JK
4832010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
484 Pedro Alves <pedro@codesourcery.com>
485
486 * gdbthread.h (currently_stepping): New declaration.
487 * infrun.c (currently_stepping): Remove the forward declaration.
488 (currently_stepping): Make it global.
489 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
490 variables tp and step, initialized them. Pass STEP to to_resume.
491 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
492 * remote.c (currently_stepping_callback): New.
493 (remote_vcont_resume)
494 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
495 New variable tp. Call currently_stepping_callback and step such
496 thread.
497
c1e56572
JK
4982010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
499
500 * infrun.c (follow_exec): Replace symbol_file_add_main by
501 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
502 breakpoint_re_set.
503 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
504 clear_symtab_users.
505 * objfiles.c (free_all_objfiles): Likewise.
506 * remote-m32r-sdi.c (m32r_load): Likewise.
507 * solib-som.c (som_solib_create_inferior_hook): Likewise.
508 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
509 clear_symtab_users with ADD_FLAGS.
510 (reread_symbols): Use parameter 0 for clear_symtab_users.
511 (clear_symtab_users): New parameter add_flags. Do not call
512 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
513 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
514 * symtab.h (clear_symtab_users): New parameter add_flags.
515
3a182a69
JK
5162010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
517
518 Fix GCC false warning.
519 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
520
3a9d7214
PM
5212010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
522
523 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
524 display of type of method arguments.
525
09ca9e2e
TT
5262010-10-15 Tom Tromey <tromey@redhat.com>
527
528 PR python/11948:
529 * varobj.c (value_get_print_value): Use val_print_string to print
530 lazy strings.
531 * python/py-prettyprint.c (print_string_repr): Use
532 val_print_string to print lazy strings. Fix cleanup logic.
533 (print_children): Likewise.
534 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
535 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
536 Change return type to 'void', add 'addr' argument.
537 * value.h (val_print_string): Update.
538 * valprint.c (val_print_string): Add 'encoding' argument.
539 * printcmd.c (print_formatted): Update.
540 * p-valprint.c (pascal_val_print): Update.
541 * m2-valprint.c (print_unpacked_pointer): Update.
542 (m2_print_array_contents): Likewise.
543 * jv-valprint.c (java_value_print): Update.
544 * f-valprint.c (f_val_print): Update.
545 * c-valprint.c (c_val_print): Update.
546 * auxv.c (fprint_target_auxv): Update.
547
92163a10
JK
5482010-10-15 Doug Evans <dje@google.com>
549 Jan Kratochvil <jan.kratochvil@redhat.com>
550
551 PR exp/12117
552 * gdbtypes.c (check_typedef): Clean up function comment.
553 Keep track of instance flags as we strip typedefs and create a new
554 type to preserve them if necessary.
555 * gdbtypes.h (type) <instance_flags>: Extend the comment.
556
dae71413
PM
5572010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
558
559 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
560
7062b0a0
SW
5612010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
562
563 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
564 * gdbtypes.c (rank_one_type): Move type comparison code out of here
565 to...
566 (types_equal): ...here. And changed it as follows:
567 Outside of typedefs type must be of the same TYPE_CODE.
568 When compairing two pointers or references they are equal if their
569 targets are equal.
570 Correct pointer conversions.
571
5c3da5ea
PM
5722010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
573
574 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
575 having fields without names.
576
577ce03a
TT
5772010-10-13 Tom Tromey <tromey@redhat.com>
578
579 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
580
a737a51b
DE
5812010-10-13 Doug Evans <dje@google.com>
582
0e3509db
DE
583 New python module gdb.types.
584 * NEWS: Document it.
585 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
586 * python/lib/gdb/types.py: New file.
587
a737a51b
DE
588 * c-typeprint.c: Whitespace cleanup.
589 (cp_type_print_method_args): Remove unnecessary forward decl.
590 (cp_type_print_derivation_info): Ditto.
591 (c_type_print_varspec_prefix): Mark as static at definition.
592 (c_type_print_modifier): Fix arg descriptions.
593
8dc78533
JK
5942010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
595
596 * python/py-breakpoint.c (bppy_set_condition): New comment.
597 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
598 failed PyUnicode_Decode.
599 (cmdpy_completer): Skip element for failed
600 python_string_to_host_string.
601 (cmdpy_init): Return -1 on failed python_string_to_host_string.
602 * python/py-frame.c (frapy_read_var): Extend the function comment.
603 * python/py-function.c (fnpy_init): Return -1 on failed
604 python_string_to_host_string.
605 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
606 the function comment.
607 (infpy_search_memory): Extend the function comment. Remove the
608 PyErr_SetString call on already set error state.
609 * python/py-param.c (set_parameter_value): Extend the function
610 comment. Return -1 on failed python_string_to_host_string, twice.
611 (set_attr): Extend the function comment.
612 (compute_enum_values): Extend the function comment. New variable
613 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
614 failed python_string_to_host_string.
615 (get_doc_string): Call gdbpy_print_stack on failed
616 python_string_to_host_string.
617 (parmpy_init): Extend the function comment.
618 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
619 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
620 failed python_string_to_host_string.
621 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
622 (valpy_binop, valpy_richcompare): Extend the function comment.
623 * python/python.c
624 (struct python_env) <error_type, error_value, error_traceback>: New
625 fields.
626 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
627 (ensure_python_env): Call PyErr_Fetch.
628 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
629 failed convert_value_from_python.
630 (value_get_print_value): Call gdbpy_print_stack on failed
631 python_string_to_target_python_string.
632
1bdb0c54
TT
6332010-10-12 Tom Tromey <tromey@redhat.com>
634
635 * python/py-prettyprint.c (search_pp_list): Fix error checking.
636
0526b37a
SW
6372010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
638
639 * gdbtypes.c (do_is_ancestor): New function.
640 (is_ancestor): Use do_is_ancestor.
641 (is_public_ancestor): Use do_is_ancestor.
642
c1b5be38
PM
6432010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
644
645 * ser-go32.c (struct dos_ops): Add missing fdopen field.
646
68770265
MGD
6472010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
648
649 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
650
64b00020
DE
6512010-10-11 Doug Evans <dje@google.com>
652
653 * c-typeprint.c (c_type_print_modifier): Add note that this prints
654 the address space id too.
655
43b8e241
JK
6562010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
657
658 Fix attaching to re-prelinked executables on ppc64.
659 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
660 initialize it, try to adjust FILESZ field by it.
661
417b5110
DJ
6622010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
663
664 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
665 messages if info_verbose.
666
3bdf2bbd
KW
6672010-10-08 Ken Werner <ken.werner@de.ibm.com>
668
669 * valops.c (value_cast): Handle vector types.
670 * valarith.c (value_binop): Widen scalar to vector if appropriate.
671
ec3d575a
UW
6722010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
673
674 * arm-tdep.c (thumb_expand_immediate): New function.
675 (thumb_instruction_changes_pc): Likewise.
676 (thumb2_instruction_changes_pc): Likewise.
677 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
678 prologue parsing. Improved support for optimized code.
679 (thumb_scan_prologue): Do not reply on line-number information,
680 use same heuristics as arm_scan_prologue insead.
681 (skip_prologue_function): Accept functions
682 "__tls_get_addr" and "__aeabi_read_tp".
683
4024ca99
UW
6842010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
685 Daniel Jacobowitz <dan@codesourcery.com>
686
687 * arm-tdep.c (thumb_in_function_epilogue_p)
688 (arm_in_function_epilogue_p): New.
689 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
690 gdbarch_in_function_epilogue_p callback.
691
855c153f
DE
6922010-10-07 Doug Evans <dje@google.com>
693
00e14314
DE
694 * cc-with-index.sh (output_file): Default to a.out.
695
3876f04e
DE
696 * dwarf2read.c (mapped_index): Rename member index_table to
697 symbol_table and index_table_slots to symbol_table_slots.
698 All uses updated.
699 (create_symbol_hash_table): Renamed from create_index_table.
700 All callers updated.
701 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
702 (write_hash_table): Rename local index_table to symbol_hash_table.
703
855c153f
DE
704 * addrmap.h (addrmap_foreach_fn): New typedef.
705 (addrmap_foreach): Declare.
706 * addrmap.c (struct addrmap_funcs): New member foreach.
707 (addrmap_foreach): New function.
708 (addrmap_fixed_foreach): New function.
709 (addrmap_fixed_funcs): Update.
710 (struct mutable_foreach_data): New struct.
711 (addrmap_mutable_foreach_worker): New function.
712 (addrmap_mutable_foreach): New function.
713 (addrmap_mutable_funcs): Update.
714
1d2a4540
PH
7152010-10-07 Paul Hilfinger <hilfinger@adacore.com>
716
717 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
718 more cases.
719
40658b94
PH
7202010-10-07 Paul Hilfinger <hilfinger@adacore.com>
721
722 * ada-lang.c (full_match): Declare.
723 (ada_match_name): Rename to match_name (we should avoid prefixing static
724 symbols with "ada_").
725 (match_name): New name for ada_match_name.
726 (struct ada_psym_data): Remove and replace with...
727 (struct match_data): User data for map_matching_symbols.
728 (ada_add_psyms): Remove.
729 (aux_add_nonlocal_symbols): New function, used as callback for
730 map_matching_symbols.
731 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
732 symbols.
733 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
734 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
735 Rework to use map_matching_symbols instead of map_ada_symtabs.
736 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
737 * psymtab.c: Include dependency on dictionary.h.
738 (match_partial_symbol): New function.
739 (ada_lookup_partial_symbol): Remove.
740 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
741 (map_matching_symbols_psymtab): New function.
742 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
743 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
744
c4d840bd
PH
7452010-10-06 Paul Hilfinger <hilfinger@adacore.com>
746
747 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
748 (wild_match): Change API to be consistent with that of strcmp_iw;
749 return 0 for a match, and switch operand order.
750 (full_match): New function.
751 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
752 matching to allow use of hashing.
753 * dictionary.c (struct dict_vector): Generalize iter_name_first,
754 iter_name_next ot iter_match_first, iter_match_next.
755 (iter_name_first_hashed): Replace with iter_match_first_hashed.
756 (iter_name_next_hashed): Replace with iter_match_next_hashed.
757 (iter_name_first_linear): Replace with iter_match_first_linear.
758 (iter_name_next_linear): Replace with iter_match_next_linear.
759 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
760 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
761 (dict_iter_match_first): New function.
762 (dict_iter_match_next): New function.
763 (dict_hash): New function.
764 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
765 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 766
543ecec7
DE
7672010-10-06 Doug Evans <dje@google.com>
768
769 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
770
2f608a3a
KW
7712010-10-06 Ken Werner <ken.werner@de.ibm.com>
772
773 * dwarf2read.c (read_tag_const_type): Handle const arrays.
774
aa2e2d8d
DE
7752010-10-06 Doug Evans <dje@google.com>
776
9c9606fb
DE
777 * Makefile.in (REQUIRED_SUBDIRS): New var.
778 (subdir_do): Verify required subdir Makefiles exist.
779
aa2e2d8d
DE
780 Create subdir data-directory.
781 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
782 data-directory/Makefile.in.
783 (SUBDIRS): Add data-directory.
784 (all): Remove xml-syscall-copy dependency.
785 (xml-syscall-copy): Moved to data-directory/Makefile.in as
786 stamp-syscalls.
787 (xml-syscall-install): Moved to data-directory/Makefile.in as
788 install-syscalls.
789 (install-only): Remove xml-syscall-install dependency.
790 (all-data-directory): New rule.
791 (data-directory/Makefile): New rule.
792 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
793 * configure: Regenerate.
794 * data-directory/Makefile.in: New file.
795 * python/lib/gdb/__init__.py: New file.
796
aa27d0b3
JB
7972010-10-06 Joel Brobecker <brobecker@adacore.com>
798
799 Fix ARI warnings in advance_wild_match.
800 * ada-lang.c (advance_wild_match): Delete local variable t2.
801 Adjust code accordingly. Minor reformatting.
802
2844d6b5
KW
8032010-10-06 Ken Werner <ken.werner@de.ibm.com>
804
805 * gdbtypes.h (struct main_type): Remove flag_nottext.
806 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
807 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
808 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
809 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
810 of TYPE_FLAG_NOTTEXT.
811 (init_type): Remove the initialization of the flag_nottext field.
812 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
813 TYPE_FLAG_NOTTEXT.
814 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
815
2fdf6df6
DE
8162010-10-04 Doug Evans <dje@google.com>
817
ea65fe05
DE
818 * cc-with-index.sh: New file.
819
2fdf6df6
DE
820 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
821 function comment.
822 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
823 (create_cus_from_index, create_addrmap_from_index): Ditto.
824 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
825 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
826 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
827 (eq_strtab_entry, create_strtab, add_string): Ditto.
828 (hash_strtab_entry): Ditto.
829 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
830 (create_index_table, create_mapped_symtab, find_slot): Ditto.
831 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
832 (write_hash_table, add_address_entry, write_psymbols): Ditto.
833 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
834 (write_psymtabs_to_index): Ditto.
2fdf6df6 835
40bc484c
JB
8362010-10-04 Joel Brobecker <brobecker@adacore.com>
837
838 * ada-lang.c: #include "value.h".
839 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
840 arguments. Implement using value_allocate_space_in_inferior
841 instead of allocating memory from the stack.
842 (make_array_descriptor): Remove gdbarch and sp parameters. Update
843 calls to ensure_lval.
844 (ada_convert_actual): Remove gdbarch and sp parameters. Update
845 calls to make_array_descriptor and ensure_lval.
846 * ada-lang.h (ada_convert_actual): Update declaration.
847 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
848
f17618ea
DE
8492010-10-04 Doug Evans <dje@google.com>
850
851 * python/python.c (_initialize_python): Define new function
852 GdbSetPythonDirectory in python. Use it to update sys.path and
853 gdb.__path__.
854
83e3a93c
PH
8552010-10-03 Paul Hilfinger <hilfinger@adacore.com>
856
857 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
858 incorporating and generalizing print_record_field_types.
859 (print_record_field_types): Change return value and update comment.
860 Re-implement using print_selected_record_field_types.
861 (print_choices): Print "=>" here.
862 Handle case of unencoded variant branch.
863 (print_variant_clauses): Reformat comment.
864 Special-case unencoded variant branch.
865
8662010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
867
868 * ada-lang.c (wild_match): Reimplement.
869 Change API to eliminate unused length argument, reverse arguments and
870 make 0 the 'true' return value.
871 (advance_wild_match): New auxiliary function for wild_match to improve
872 readability.
873 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
874 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
875 API for wild_match.
876 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
877 wild_match.
878 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
879
11570e71
DE
8802010-10-01 Doug Evans <dje@google.com>
881
882 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
883 for `save gdb-index' command.
884
72b9f47f
TT
8852010-10-01 Tom Tromey <tromey@redhat.com>
886
887 * symfile.h (allocate_symtab): Update.
888 * symfile.c (allocate_symtab): Make 'filename' const.
889 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
890 (add_psymbol_to_list): Likewise.
891 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
892 const.
893 (add_psymbol_to_list): Update.
894 * mdebugread.c (new_symtab): Make 'name' const.
895 (psymtab_to_symtab_1): Make 'filename' const.
896 * elfread.c (elfstab_offset_sections): Update.
897 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
898 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
899 (psymtab_include_file_name): Update.
900 * dbxread.c (find_stab_function_addr): Make 'filename' const.
901 * buildsym.h (start_subfile): Update.
902 * buildsym.c (start_subfile): Make arguments const.
903
55e39473
MS
9042010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
905
906 * fork-child.c (breakup_args): Fix crash if shell forking is
907 disabled at compile time.
908
05e522ef
JB
9092010-10-01 Joel Brobecker <brobecker@adacore.com>
910
911 * ada-lang.c (desc_bounds): Add handling of the case where
912 the P_BOUNDS field is a pointer to a stub.
913 (desc_data_target_type): Same for P_ARRAY field.
914 (ada_check_typedef): Strip the typedef layers from the type
915 found by ada_find_any_type.
916
49a45ecf
JB
9172010-10-01 Joel Brobecker <brobecker@adacore.com>
918
919 * sparc-tdep.c (sparc32_frame_align): New function.
920 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
921 * sparc64-tdep.c (sparc64_frame_align): New function.
922 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
923
a5916a62
L
9242010-09-30 H.J. Lu <hongjiu.lu@intel.com>
925
926 * defs.h (MAX_REGISTER_SIZE): Set to 64.
927
00b5771c
TT
9282010-09-30 Tom Tromey <tromey@redhat.com>
929
930 * symfile.h (struct sym_fns) <next>: Remove.
931 (add_symtab_fns): Update.
932 * symfile.c (sym_fns_ptr): New typedef.
933 (symtab_fns): Now a VEC.
934 (add_symtab_fns): Update. Change argument type.
935 (find_sym_fns): Update. Change return type.
936 (get_symfile_segment_data): Update.
937 * objfiles.h (struct objfile) <sf>: Now const.
938 * somread.c (som_sym_fns): Now const. Update.
939 * xcoffread.c (xcoff_sym_fns): Now const. Update.
940 * mipsread.c (ecoff_sym_fns): Now const. Update.
941 * machoread.c (macho_sym_fns): Now const. Update.
942 * elfread.c (elf_sym_fns): Now const. Update.
943 (elf_sym_fns_gdb_index): Likewise.
944 * dbxread.c (aout_sym_fns): Now const. Update.
945 * coffread.c (coff_sym_fns): Now const. Update.
946
38f12cfc
TT
9472010-09-30 Tom Tromey <tromey@redhat.com>
948
949 * value.c (value_primitive_field): Take 'offset' into account for
950 packed field.
951
9ae8282d
TT
9522010-09-30 Tom Tromey <tromey@redhat.com>
953
954 * completer.c (count_struct_fields): Handle anonymous structs and
955 unions.
956 (add_struct_fields): Likewise.
957
e9e07ba6
JK
9582010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
959
960 Fix printing parameters of inlined functions.
961 * ada-lang.c (is_known_support_routine)
962 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
963 for find_frame_funname.
964 * python/py-frame.c (frapy_name): Likewise.
965 * stack.c (find_frame_funname): New parameter funcp. Update the
966 function comment. Fill it in.
967 (print_frame): New variable func. Initialize it by
968 find_frame_funname. Print arguments only if FUNC is not NULL. Use
969 FUNC as the parameter of print_args_stub.
970 * stack.h (find_frame_funname): New parameter funcp. Remove the
971 function declaration comment.
972
cd2effb2
JK
9732010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
974
975 PR corefiles/12071.
976 * inferior.c (have_live_inferiors): New variables old_chain, inf and
977 tp. Iterate INFERIOR_LIST and call target_has_execution.
978
bceffbf3
JK
9792010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
980
981 Fix GDB crash on inferior calls with self-referencing classes.
982 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
983 member fields.
984
abc72ce4
DE
9852010-09-29 Doug Evans <dje@google.com>
986
987 Workaround for gcc/45682.
988 * dwarf2read.c (partial_die_info): New fields fixup_called,
989 linkage_name.
990 (guess_partial_die_structure_name): Renamed from guess_structure_name.
991 Move definition next to use. Use linkage_name to determine if class
992 is in a namespace. All callers updated.
993 (fixup_partial_die): Return early if already called.
994 Set fixup_called when done.
995 (guess_full_die_structure_name): New function.
996 (determine_prefix): Call it for class/struct/union dies if c++ and
997 .debug_types section is present and parent is DW_TAG_compile_unit.
998
0ac7be25
JB
9992010-09-28 Joel Brobecker <brobecker@adacore.com>
1000
1001 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
1002 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
1003
6e1bb179
JB
10042010-09-28 Joel Brobecker <brobecker@adacore.com>
1005
1006 * NEWS: Announce Ravenscar Profile support.
1007
036b1ba8
JB
10082010-09-28 Joel Brobecker <brobecker@adacore.com>
1009 Jerome Guitton <guitton@adacore.com>
1010
1011 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
1012 New files.
1013 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
1014 ravenscar-sparc-thread.o to gdb_target_obs.
1015
474011fb
JB
10162010-09-28 Joel Brobecker <brobecker@adacore.com>
1017
1018 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1019 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1020
99e24b90
PM
10212010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1022
1023 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1024 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1025 skip_main_prologue method.
1026
987d643c
TT
10272010-09-27 Tom Tromey <tromey@redhat.com>
1028
1029 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1030 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1031 Only emit a given psymbol once.
1032 (struct signatured_type_index_data) <psyms_seen>: New field.
1033 (write_one_signatured_type): Update.
1034 (cleanup_htab): New function.
1035 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1036 version to 3.
1037 (save_gdb_index_command): Update index documentation.
1038
d3aff959
TT
10392010-09-27 Tom Tromey <tromey@redhat.com>
1040
1041 * bcache.c (expand_hash_table): Use hash_function, not hash.
1042
716b65bf
TT
10432010-09-27 Tom Tromey <tromey@redhat.com>
1044
1045 * gdb_wchar.h: Change minimum libiconv to 0x108.
1046
1736ad11
JK
10472010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1048
1049 Fix lost siginfo_t for inferior calls.
1050 * infrun.c
1051 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1052 (save_inferior_thread_state): New variables regcache, gdbarch and
1053 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1054 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1055 using REGCACHE.
1056 (restore_inferior_thread_state): New variables regcache and gdbarch.
1057 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1058 REGCACHE. Free also SIGINFO_DATA.
1059
4b5246aa
TT
10602010-09-24 Tom Tromey <tromey@redhat.com>
1061
1062 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1063 MAYBE_SWAPs.
1064 (dw2_map_symbol_names): Likewise.
1065
2a7d6a25
SW
10662010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1067
1068 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1069 discard_cleanups do_cleanups.
1070
b53a1623
PA
10712010-09-24 Pedro Alves <pedro@codesourcery.com>
1072
e6ee044d
PA
1073 PR gdb/11842
1074
b53a1623
PA
1075 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1076 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1077 si_code is < 0. Check for si_code == SI_TIMER before checking for
1078 si_code < 0.
1079
96a8853a
PA
10802010-09-24 Pedro Alves <pedro@codesourcery.com>
1081
1082 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1083
39383a48
JB
10842010-09-22 Joel Brobecker <brobecker@adacore.com>
1085
1086 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1087 debugging a core file.
1088
d31d2fc3
JK
10892010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1090
1091 Code cleanup.
1092 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1093 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1094 xfree.
1095 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1096 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1097 Remove.
1098 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1099 Remove the conditional.
1100 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1101
7f6130ff
JK
11022010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1103
1104 * main.c: Include objfiles.h.
1105 (captured_main): New variable objfile. Call
1106 load_auto_scripts_for_objfile for ALL_OBJFILES.
1107
c2b0a229
JK
11082010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1109
1110 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1111 DW_TAG_constant.
1112
72929c62
JB
11132010-09-22 Joel Brobecker <brobecker@adacore.com>
1114
1115 * dwarf2read.c (scan_partial_symbols): Add handling of
1116 DW_TAG_constant DIEs.
1117 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1118
496c0e1b
JB
11192010-09-22 Joel Brobecker <brobecker@adacore.com>
1120
1121 * configure.ac: Add support for --enable-gdbserver.
1122 * configure: Regenerate.
1123
ec322823
SW
11242010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1125
1126 PR C++/12028
1127 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1128 'old_cleanups' reassignment.
1129
1558ab4c
JK
11302010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1131
1132 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1133 characters.
1134
875b4ff5
PM
11352010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1136
1137 PR mi/11407
1138 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1139 read_var_value and common_val_print and print a warning.
1140
65dedcb2
JK
11412010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1142
1143 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1144 keep the list in alphabetical order. Use longer e-mail address.
1145
0e780a22
TT
11462010-09-15 Tom Tromey <tromey@redhat.com>
1147
1148 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1149
62234ccc
TT
11502010-09-15 Tom Tromey <tromey@redhat.com>
1151
1152 * charset.c (iconv_open): New define.
1153 (iconv): Likewise.
1154 (iconv_close): Likewise.
1155 (phony_iconv_open): Add "phony_" prefix.
1156 (phony_iconv_close): Likewise.
1157 (phony_iconv): Likewise.
1158 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1159 Change how INTERMEDIATE_ENCODING is defined.
1160
4950bc1c
DE
11612010-09-15 Doug Evans <dje@google.com>
1162
1163 * dwarf2read.c (struct die_info): Fix comment.
1164
349126ea
AM
11652010-09-15 Alan Modra <amodra@gmail.com>
1166
1167 PR 4606
1168 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1169 than setting SEC_NEVER_LOAD on sections that need not be copied.
1170
923c6a3d
TT
11712010-09-14 Tom Tromey <tromey@redhat.com>
1172
1173 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1174 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1175 Declare.
1176 * symfile.h (extend_psymbol_list): Remove.
1177 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1178 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1179 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1180
a9e6a4bb
JK
11812010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1182
1183 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1184 Update the comment.
1185
7155d578
TT
11862010-09-14 Tom Tromey <tromey@redhat.com>
1187
1188 PR symtab/8399:
1189 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1190 for unrecognized frame base expression.
1191
515ed532
TT
11922010-09-14 Tom Tromey <tromey@redhat.com>
1193
1194 PR exp/11803:
1195 * value.c (value_static_field): Use value_of_variable.
1196
b467f580
PM
11972010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1198
1199 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1200 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1201
450ca57c
SW
12022010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1203
1204 PR symtab/11992:
1205 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1206 UNKNOWN_CPP_NAME.
1207
1aee7009
JB
12082010-09-13 Joel Brobecker <brobecker@adacore.com>
1209
1210 * NEWS: Add x86-lynxos to the list of platforms supported by
1211 gdbserver.
1212
5ec6ebf9
JB
12132010-09-13 Joel Brobecker <brobecker@adacore.com>
1214
1215 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1216
1863c96c
TT
12172010-09-13 Tom Tromey <tromey@redhat.com>
1218
1219 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1220
0c5acf93
L
12212010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1222
1223 * i386-tdep.c (i386_ymm_type): Set type name to
1224 builtin_type_vec256i.
1225
1c6272a6
MS
12262010-09-12 Michael Snyder <msnyder@vmware.com>
1227
1228 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1229
e866c497
L
12302010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1231
1232 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1233
9191d390
L
12342010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1235
1236 * amd64-tdep.c (amd64_register_name): Removed.
1237 (amd64_init_abi): Don't call set_gdbarch_register_name.
1238
1239 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1240
1241 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1242
8d4d924b
JK
12432010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1244 Paul Bolle <pebolle@tiscali.nl>
1245
1246 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1247 * cli-logging.c (struct saved_output_files) <targerr>: New.
1248 (set_logging_redirect, pop_output_files, handle_redirections):
1249 Redirect also gdb_stdtargerr.
1250 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1251 declarations.
1252 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1253 also gdb_stdtargerr.
1254 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1255 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1256 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1257 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1258 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1259 New functions.
1260
3329c4b5
PM
12612010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1262
1263 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1264 to display a host address.
1265 * monitor.c (monitor_read_memory): Likewise.
1266 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1267
5e8db398
PM
12682010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1269
1270 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1271 `CORE_ADDRESS' as it might contain target addresses.
1272
37049e31
PM
12732010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1274
1275 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1276 before cast to pointer to avoid warning.
1277
351a3e56
KB
12782010-09-09 Kevin Buettner <kevinb@redhat.com>
1279
1280 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1281 type to be signed.
349126ea 1282
6afafb54
UW
12832010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1284
1285 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1286 anonymous class partial DIEs.
1287
60430eff
DJ
12882010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1289
1290 * dwarf2read.c (dwarf2_compute_name): Check that the first
1291 argument is a pointer.
1292
f1078f66
DJ
12932010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1294
1295 * dwarf2read.c (read_func_scope, read_structure_type)
1296 (read_common_block): Check for a NULL return from new_symbol.
1297
82430852
JK
12982010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1299
1300 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1301
c767944b
DJ
13022010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1303
1304 * dwarf2read.c (read_structure_type): Move processing of
1305 fields and member functions from here...
1306 (process_structure_scope): ... to here.
1307
561d3825
DJ
13082010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1309
1310 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1311 the domain type.
1312 (gnuv3_make_method_ptr): Likewise.
1313
9bd89d67
TT
13142010-09-08 Tom Tromey <tromey@redhat.com>
1315
1316 * breakpoint.c (create_breakpoint): Add missing _().
1317
1d040b0d
DE
13182010-09-08 Doug Evans <dje@google.com>
1319
1320 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1321
774b6a14
TT
13222010-09-08 Tom Tromey <tromey@redhat.com>
1323
1324 Revert:
1325 2010-09-01 Tom Tromey <tromey@redhat.com>
1326 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1327 symtab.h: Revert earlier change.
1328
fc956729
SW
13292010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1330
1331 * psymtab.c (add_psymbol_to_bcache): Initialize
1332 obj_section.
1333 memset psymbol.ginfo.value to 0.
1334
48f9886d
PA
13352010-09-06 Pedro Alves <pedro@codesourcery.com>
1336
1337 * infrun.c (resume): Extend comment on ignoring single-step
1338 requests on vfork parents waiting for a vfork-done.
1339
423ec54c
JK
13402010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1341 Pedro Alves <pedro@codesourcery.com>
1342
1343 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1344 is NULL.
1345 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1346 target_signal type.
1347 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1348 calling strsignal. Use enum target_signal type for saved_signo.
1349 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1350 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1351 target_signal_to_host before calling strsignal.
1352 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1353 TARGET_SIGNAL_0.
1354
a6eb9bc8
JK
13552010-09-06 Pedro Alves <pedro@codesourcery.com>
1356 Jan Kratochvil <jan.kratochvil@redhat.com>
1357
1358 * common/signals.c (ANY): Remove.
1359 (SET): No longer use ANY.
1360
74609e71
YQ
13612010-09-06 Yao Qi <yao@codesourcery.com>
1362
1363 * infrunc(resume): When inferior is waiting_for_vfork_done,
1364 clear step and don't use displaced stepping.
1365
8464be76
DJ
13662010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1367
1368 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1369 value specially.
1370
33d62d64
JK
13712010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1372
1373 Code cleanup - split print_stop_reason.
1374 * infrun.c (enum inferior_stop_reason): Remove.
1375 (print_stop_reason): Remove by splitting into ...
1376 (print_exited_reason, print_signal_exited_reason)
1377 (print_no_history_reason, print_signal_received_reason)
1378 (print_end_stepping_range_reason): ... these new functions. Update
1379 the preceding comment.
1380 (handle_inferior_event): Change the calls to print_exited_reason,
1381 print_signal_exited_reason, print_no_history_reason,
1382 print_signal_received_reason, print_end_stepping_range_reason.
1383 (handle_step_into_function, handle_step_into_function_backward):
1384 Change the calls to print_end_stepping_range_reason.
1385
14dba4b4
JK
13862010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1387
1388 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1389 * cli-out.c: Include vec.h.
1390 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1391 variable stream, initialize it, use it.
1392 (cli_redirect): New function comment. Replace the stream and
1393 original_stream fields by the new streams field. Remove the
1394 original_stream != NULL conditional, assert error on NULL instead.
1395 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1396 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1397 original_stream fields by the new streams field.
1398 (cli_out_set_stream): Replace the stream field by the new streams
1399 field.
1400 * cli-out.h: Include vec.h.
1401 (ui_filep): New typedef, call DEF_VEC_P for it.
1402 (struct cli_ui_out_data): Replace the stream and original_stream
1403 fields by the new streams field.
1404 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1405 NULL first. Extend the comment.
1406 (handle_redirections): Call ui_out_redirect with output.
1407 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1408 calls outside of the TRY_CATCH block.
1409
b04bc5d4 14102010-09-03 Joel Brobecker <brobecker@adacore.com>
1411
1412 GDB 7.2 released.
1413
080db4e0
JB
14142010-09-02 Joel Brobecker <brobecker@adacore.com>
1415
1416 Back out the following change:
1417 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1418 | * record.c (set_record_pic_cmdlist,
1419 | show_record_pic_cmdlist): New variables.
1420 | (set_record_pic_command,
1421 | show_record_pic_command): New functions.
1422 | (record_pic_function, record_pic_line, record_pic_enum,
1423 | set_record_pic_type, record_pic_hide_nofunction,
1424 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1425 | (record_pic_fputs): New function.
1426 | (function_list, node_list, edge_list): New struct.
1427 | (function_list, node_list, edge_list): New variables.
1428 | (record_pic_cleanups, record_pic_node,
1429 | record_pic_edge, cmd_record_pic): New functions.
1430 | (_initialize_record): Add new commands for record pic.
1431
0a4f61e3
DJ
14322010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1433
1434 * config.in, configure: Regenerated.
1435 * configure.ac: Check for waitpid.
1436 * ser-pipe.c (pipe_close): Wait for the program to exit.
1437
58b61394
JK
14382010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1439
ba720883 1440 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
1441 (set_logging_overwrite): New function.
1442 (logging_redirect): New comment.
1443 (logging_no_redirect_file, set_logging_redirect)
1444 (pop_output_files) <logging_no_redirect_file>: New.
1445 (handle_redirections) <!logging_redirect>: New variable
1446 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1447 discard cleanup for the close of former OUTPUT. Set
1448 LOGGING_NO_REDIRECT_FILE.
1449 (handle_redirections) <logging_redirect>: gdb_assert
1450 LOGGING_NO_REDIRECT_FILE.
1451 (show_logging_command) <logging_redirect handling>: Adjust messages
1452 for SAVED_FILENAME not NULL.
1453 (_initialize_cli_logging): Install set_logging_overwrite and
1454 set_logging_redirect.
1455
706774f2
JK
14562010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1457
1458 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1459
9a35ccf7
JK
14602010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1461
1462 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1463 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1464 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1465 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1466
ba9b2ec3
YQ
14672010-09-02 Yao Qi <yao@codesourcery.com>
1468
1469 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1470 number from a WIFSIGNALED status.
1471
faf68db7
TT
14722010-09-01 Tom Tromey <tromey@redhat.com>
1473
1474 * symtab.h (lookup_type_symbol): Declare.
1475 * symtab.c (lookup_symbol_in_language_full): Rename from
1476 lookup_symbol_in_language. Add 'for_type' argument.
1477 (lookup_symbol_in_language): New function.
1478 (lookup_type_symbol): Likewise.
1479 (lookup_symbol_aux): Add 'for_type' argument.
1480 (match_symbol_aux): New function.
1481 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1482 (match_transparent_type): New function.
1483 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1484 * symfile.h (struct quick_symbol_functions)
1485 <pre_expand_symtabs_matching>: Remove.
1486 <expand_one_symtab_matching>: New field.
1487 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1488 (pre_expand_symtabs_matching_psymtabs): Remove.
1489 (psym_functions): Update.
1490 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1491 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1492 (dw2_pre_expand_symtabs_matching): Remove.
1493 (dw2_expand_one_symtab_matching): New function.
1494 (dwarf2_gdb_index_functions): Update.
1495
248c9dbc
JB
14962010-09-01 Joel Brobecker <brobecker@adacore.com>
1497
1498 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1499
f75d858b
MK
15002010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1501
1502 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1503 as a feature reported by -list-target-features.
1504
0482b03b
JB
15052010-09-01 Joel Brobecker <brobecker@adacore.com>
1506
1507 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1508 (powerpc-32.o, powerpc-32.c): New rules.
1509 (clean): Also remove powerpc-32.c.
1510 * regformats/rs6000/powerpc-32.dat: Generate.
1511
710e1a31
SW
15122010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1513
1514 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1515 psymbol_bcache_init.
1516 * psymtab.h (psymbol_bcache_init): New function prototype.
1517 (psymbol_bcache_free): New function prototype.
1518 (psymbol_bcache_get_bcache): New function prototype.
1519 * psymtab.c (psymbol_bcache_init): New function.
1520 (psymbol_bcache_free): New function.
1521 (psymbol_bcache_full): New function.
1522 (psymbol_bcache_get_bcache): New function.
1523 (add_psymbol_to_bcache): use psymbol_bcache_full.
1524 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1525 psymbol_bcache.
1526 * symmisc.c (print_symbol_bcache_statistics): Updated.
1527 (print_objfile_statistics): Updated.
1528 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1529 psymbol_cache.
1530 (free_objfile): Use psymbol_bcache_free.
1531
64382290
TT
15322010-08-31 Tom Tromey <tromey@redhat.com>
1533
1534 PR c++/11961:
1535 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1536 Don't set TYPE_NAME on the type.
1537
8bbed405
MS
15382010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1539
1540 * infrun.c (set_exec_direction_func): Error out if target does not
1541 support reverse execution.
1542
06253dd3
JK
15432010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1544
1545 Make linux_get_siginfo_type `type *' unique.
1546 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1547 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1548 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1549 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1550 (_initialize_linux_tdep): New.
1551
b8edc417
JK
15522010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1553
1554 Code cleanup.
1555 * defs.h (find_memory_region_ftype): New typedef.
1556 (exec_set_find_memory_regions): Use it.
1557 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1558 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1559 * gcore.c (objfile_find_memory_regions): Likewise.
1560 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1561 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1562 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1563 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1564 find_memory_region_ftype.
1565 (insert_dbx_link_bpt_in_region): Likewise.
1566 (iterate_over_mappings): Likewise. Drop the comment part about the
1567 function prototype.
1568 (find_memory_regions_callback): Use find_memory_region_ftype.
1569 (proc_find_memory_regions): Likewise.
1570 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1571 find_memory_region_ftype.
1572 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1573 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1574
cbd70537
SW
15752010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1576
1577 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1578 'static partial_symbol psymbol'.
1579 (psymbol_hash): New function.
1580 (psymbol_compare): New function.
1581 * bcache.c (hash_continue): New.
1582 (hash): Use hash_continue.
1583 * bcache.c: Add hash_function and compare_function
1584 pointers to bcache struct.
1585 (bcache_full): Use bcache->hash_function, and
1586 bcache->compare_function.
1587 (bcache_compare): New function.
1588 (bcache_xmalloc): Take hash_function and
1589 compare_function arguments and initialize the
1590 bcach's pointers.
1591 Updated comment.
1592 * objfiles.c (allocate_objfile): Updated.
1593 * symfile.c (reread_symbols): Updated.
1594 * python/py-type.c (typy_richcompare): Updated.
1595
03f17ccf
TT
15962010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1597 Tom Tromey <tromey@redhat.com>
1598
1599 PR python/11792:
1600 * python/py-value.c (valpy_get_dynamic_type): New function.
1601 (value_object_getset): Add "dynamic_type".
1602 (valpy_get_type): Fail on error.
1603
25b41d01
YQ
16042010-08-30 Yao Qi <yao@codesourcery.com>
1605
1606 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1607 (arm_linux_syscall_next_pc): New.
1608 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1609 (arm_linux_init_abi): Initialize syscall_next_pc.
1610 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1611 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1612 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1613 Declare arm_frame_is_thumb.
1614
5760d0ab
JK
16152010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1616
1617 Code cleanup.
1618 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1619 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1620 code.
1621 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1622 calls of bpstat_alloc. Remove explicit bs chain termination.
1623
46a96992
JK
16242010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1625
1626 Code cleanup.
1627 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1628 (my_waitpid): Likewise.
1629
36374493
DE
16302010-08-27 Doug Evans <dje@google.com>
1631
1632 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1633 as appropriate.
1634
8b93c54c
TT
16352010-08-27 Tom Tromey <tromey@redhat.com>
1636
1637 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1638 TYPE_FIELD_IGNORE_BITS.
1639
16be1145
DE
16402010-08-27 Doug Evans <dje@google.com>
1641
1642 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1643 the order they're defined in. munmap .debug_types buffer.
1644
e254ef6a
DE
16452010-08-26 Doug Evans <dje@google.com>
1646
1647 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1648 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1649 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1650 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1651 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1652 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1653 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1654 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1655 (write_psymtabs_to_index): Ditto.
1656
ae53ffa4
PA
16572010-08-26 Pedro Alves <pedro@codesourcery.com>
1658
1659 * NEWS: Mention libthread_db debugging with core files.
1660
c6da4cef
DE
16612010-08-26 Doug Evans <dje@google.com>
1662
1663 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1664 forward decl. Pass pst->dirname to dwarf_decode_lines.
1665 (psymtab_include_file_name): New function.
1666 (dwarf_decode_lines): Call it. Update comments.
1667
cd02d79d
PA
16682010-08-25 Pedro Alves <pedro@codesourcery.com>
1669
1670 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1671 compilation unit being different from target die's.
1672
673bfd45
DE
16732010-08-24 Doug Evans <dje@google.com>
1674
1675 PR symtab/11942
1676 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1677 debug_types_type_hash.
1678 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1679 All uses updated.
1680 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1681 appropriate type_hash table. All callers updated.
1682 (allocate_signatured_type_table): Renamed from
1683 allocate_signatured_type_hash_table. All callers updated.
1684 (create_signatured_type_table_from_index): Renamed from
1685 create_signatured_type_hash_from_index. All callers updated.
1686 (read_die_type): Add comment. Move actual reading to ...
1687 (read_die_type_1): ... here. New function.
1688 (follow_die_ref_or_sig): Tweak comment.
1689 (set_die_type): Rewrite to use appropriate choice of
1690 debug_info_type_hash or debug_types_type_hash.
1691 (get_die_type_at_offset): New function.
1692 (get_die_type): Call it.
1693
e8fd65ef
JK
16942010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 * python/py-type.c (typy_richcompare): Initialize worklist.
1697
9779414d
DJ
16982010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1699 Kazu Hirata <kazu@codesourcery.com>
1700 Jonathan Larmour <jifl@eCosCentric.com>
1701
1702 * arm-tdep.c: Include features/arm-with-m.c.
1703 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1704 call this function.
1705 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1706 Check is_m after force-mode.
1707 (arm_gdbarch_init): Check the binary before the target description.
1708 Add check for M profile attribute. If we have an M-profile device,
1709 but no target register description, use arm-with-m. Recognize the
1710 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1711 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1712 * arm-tdep.h (XPSR_T): Define.
1713 (struct gdbarch_tdep): Add is_m member.
1714 * features/arm-m-profile.xml, features/arm-with-m.c,
1715 features/arm-with-m.xml: New files.
1716
9dc481d3
DE
17172010-08-23 Doug Evans <dje@google.com>
1718
1719 * dwarf2read.c (read_structure_type): Add comment.
1720 (read_enumeration_type): Add comment.
1721 (process_enumeration_scope): Move definition of some locals
1722 closer to their use.
1723 (read_namespace_type): Add comment.
e71ec853 1724 (set_die_type): Fix typo in comment.
9dc481d3 1725
f9ffd4bb
TT
17262010-08-23 Tom Tromey <tromey@redhat.com>
1727
1728 PR python/11145:
1729 * python/py-value.c: Include expression.h.
1730 (valpy_do_cast): New function.
1731 (valpy_cast): Use it.
1732 (valpy_dynamic_cast): New function.
1733 (valpy_reinterpret_cast): Likewise.
1734 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1735
96f73ba5
TT
17362010-08-23 Tom Tromey <tromey@redhat.com>
1737
1738 PR python/11391:
1739 * python/py-value.c (valpy_nonzero): Don't throw error for other
1740 Value types.
1741
d839c8a4
TT
17422010-08-23 Tom Tromey <tromey@redhat.com>
1743
1744 PR python/10676:
1745 * python/py-type.c: Include bcache.h, vec.h.
1746 (struct type_equality_entry): New.
1747 (compare_strings): New function.
1748 (check_types_equal): Likewise.
1749 (check_types_worklist): Likewise.
1750 (typy_richcompare): Likewise.
1751 (type_object_type): Set tp_richcompare field.
1752
05d0e1e7
TT
17532010-08-23 Tom Tromey <tromey@redhat.com>
1754
1755 PR python/10953:
1756 * python/py-type.c (typy_fields): Call check_typedef.
1757 (typy_template_argument): Add TRY_CATCH.
1758
702c2711
TT
17592010-08-23 Tom Tromey <tromey@redhat.com>
1760
1761 PR python/11915:
1762 * python/py-type.c (typy_array): New function.
1763 (type_object_methods): Add "array".
1764
4a532131
PA
17652010-08-20 Pedro Alves <pedro@codesourcery.com>
1766
1767 * python/python.c: Include "serial.h".
1768 (gdbpy_event_fds): Change type to `struct serial *' a array from
1769 int array.
1770 (gdbpy_run_events): Change parameters. Use serial_readchar in
1771 place of read.
1772 (gdbpy_post_event): Use serial_write in place of write.
1773 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1774 serial_async in place of add_file_handler.
1775
58f07bae
PA
17762010-08-20 Pedro Alves <pedro@codesourcery.com>
1777
1778 * serial.h (gdb_pipe, serial_pipe): Declare.
1779 * serial.c (serial_interface_lookup): Take a const char pointer.
1780 (serial_fdopen): Rename to ...
1781 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1782 Call the OPS' fdopen function if there is one.
1783 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1784 (serial_pipe): New.
1785 (struct serial_ops) <fdopen>: New field.
1786
1787 * ser-mingw.c (free_pipe_state):
1788 (free_pipe_state): Close output on non-pex pipes.
1789 (pipe_windows_fdopen): New.
1790 (gdb_pipe): New.
1791 (_initialize_ser_windows): Register pipe_windows_fdopen.
1792 * ser-go32.c (gdb_pipe): New.
1793 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1794 no state pointer.
1795 (pipe_ops): Delete.
1796 (gdb_pipe): New.
1797
3da10d80
KS
17982010-08-20 Keith Seitz <keiths@redhat.com>
1799
1800 PR symtab/11465:
889bf7c5 1801 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
1802 (struct dwarf2_cu): Add vector method_list.
1803 (scan_partial_symbols): Count methods for union, class, structure,
1804 and interface types.
1805 (add_to_method_list): New function.
1806 (free_delayed_list): New function.
1807 (compute_delayed_physnames): New function.
1808 (process_full_comp_unit): Make a cleanup for the CU's delayed
1809 physname list, compute the delayed physnames, and free the
1810 the list.
1811 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1812 of the physname until after the CU is read.
1813
1814 * dwarf2read.c (read_structure_type): Check if the current
1815 DIE's type was already completed after dwarf2_full_name
1816 was called.
889bf7c5 1817
ca11e899
SS
18182010-08-19 Stan Shebs <stan@codesourcery.com>
1819
1820 * NEWS: Mention some additional changes.
1821
4d2dc20a
TT
18222010-08-19 Tom Tromey <tromey@redhat.com>
1823
1824 * Makefile.in (install-python): Add DESTDIR.
1825
d30f5e1f
DE
18262010-08-19 Doug Evans <dje@google.com>
1827
1828 PR exp/11926
1829 * parser-defs.h (parse_float, parse_c_float): Declare.
1830 * parse.c (parse_float, parse_c_float): New function.
1831 * c-exp.y (parse_number): Call parse_c_float.
1832 * objc-exp.y (parse_number): Ditto.
1833 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1834 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1835
2837d59e
JB
18362010-08-19 Joel Brobecker <brobecker@adacore.com>
1837
1838 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1839 the arguments in the correct order.
1840 * symtab.c (maybe_add_partial_symtab_filename): Declare
1841 the arguments in the correct order.
1842
35633fef
JK
18432010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1844
1845 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1846 initialize it by null_frame_id, wrap its usage by get_frame_id,
1847 frame_id_p and frame_find_by_id.
1848
94f7449c
TT
18492010-08-18 Tom Tromey <tromey@redhat.com>
1850
1851 PR python/11900:
1852 * configure: Rebuild.
1853 * configure.ac: Add install-python to CONFIG_INSTALL.
1854 * Makefile.in (install-python): New.
1855
f3574227
DE
18562010-08-18 Doug Evans <dje@google.com>
1857
1858 * gdb_assert.h (gdb_assert_not_reached): New macro.
1859 (gdb_assert_fail): Fix typo in comment.
1860 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1861 gdb_assert (0).
1862 * darwin-nat.c (darwin_check_new_threads): Ditto.
1863 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1864 (munmap_section_buffer): Ditto.
1865 * m32c-tdep.c (make_types): Ditto.
1866 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1867 * macroexp.c (get_character_constant): Ditto.
1868 (get_string_literal): Ditto.
1869 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1870 (mep_pseudo_cr_index, mep_register_type): Ditto.
1871 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1872 (mep_get_insn, mep_analyze_prologue): Ditto.
1873 * objfiles.c (qsort_cmp): Ditto.
1874 * prologue-value.c (pv_is_identical): Ditto.
1875 * record.c (record_get_loc): Ditto.
1876 * value.c (value_static_field): Ditto.
1877 * xtensa-tdep.c (call0_track_op): Ditto.
1878
c92817ce
TT
18792010-08-18 Tom Tromey <tromey@redhat.com>
1880
1881 PR symtab/11919:
1882 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1883 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1884 name-copying lower. Document exception behavior.
1885 * completer.c (expression_completer): Catch exceptions from
1886 parse_field_expression.
1887
856d6f99
PA
18882010-08-18 Pedro Alves <pedro@codesourcery.com>
1889
1890 PR corefile/8210
1891
1892 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1893 workaround on core files.
1894 (try_thread_db_load_1): Don't try enabling thread event reporting
1895 on core files.
1896 (thread_db_load): Allow thread_db on core files.
1897 (attach_thread): Don't check thread signals on core files, nor try
1898 really attaching to the thread, nor enabling thread event event
1899 reporting.
1900 (thread_db_detach): Don't try disabing thread event reporting or
1901 removing thread event breakpoints when debugging a core file.
1902 (find_new_threads_callback): Don't try enabling thread event
1903 reporting on core files.
1904 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1905 debugging a core file.
1906 (thread_db_find_new_threads): Don't update thread
1907 cores (processors) when debugging a core (dump).
1908
261b8d08
PA
19092010-08-18 Pedro Alves <pedro@codesourcery.com>
1910
1911 PR corefile/8210
1912
1913 * corelow.c (add_to_thread_list): Don't use
1914 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1915 (get_core_register_section): Don't use
1916 gdbarch_core_reg_section_encodes_pid.
1917
1918 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1919 * gdbarch.h, gdbarch.c: Regenerate.
1920 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1921 gdbarch_core_reg_section_encodes_pid.
1922 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1923 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1924 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1925
f9b42018
YQ
19262010-08-18 Yao Qi <yao@codesourcery.com>
1927
1928 * MAINTAINERS : Add myself under Write After Approval.
1929
def98928
TT
19302010-08-17 Tom Tromey <tromey@redhat.com>
1931
1932 * NEWS: Mention template parameter support.
1933
0807b50c
PA
19342010-08-17 Pedro Alves <pedro@codesourcery.com>
1935
1936 PR breakpoints/11371
1937
1938 * breakpoint.c (decref_bp_location): Assert the reference count is
1939 sane.
1940
f431efe5
PA
19412010-08-17 Pedro Alves <pedro@codesourcery.com>
1942
1943 PR breakpoints/11371
1944
1945 * breakpoint.c (breakpoint_init_inferior): Decrement the
1946 location's reference count instead of deleting right away.
1947 (bpstat_free): Decrement the location's reference count. Make
1948 static.
1949 (bpstat_copy): Increment the location's reference count.
1950 (bpstat_find_breakpoint): Adjust.
1951 (bpstat_num): Adjust.
1952 (print_it_typical): Adjust. Use the breakpoint pointer in the
1953 bpstat instead of the location's owner.
1954 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1955 Adjust to record the location's owner in the bpstat.
1956 (watchpoint_check): Use the breakpoint pointer in the bpstat
1957 instead of the location's owner.
1958 (bpstat_check_breakpoint_conditions): Don't handle
1959 bp_watchpoint_scope here. Use the breakpoint pointer in the
1960 bpstat instead of the location's owner.
1961 (bpstat_stop_status): Defer inferior function calls to after
1962 building the bpstat list. Handle bp_watchpoint_scope here. Use
1963 the breakpoint pointer in the bpstat instead of the location's
1964 owner.
1965 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1966 the location's owner.
1967 (free_bp_location): Don't walk bpstats clearing locations.
1968 (incref_bp_location): New.
1969 (decref_bp_location): New.
1970 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1971 instead of the location's owner.
1972 (update_global_location_list): Clear the location's owner, and
1973 decrement the location's reference count instead of deleting it
1974 right away.
1975 (breakpoint_retire_moribund): Decrement the location's reference
1976 count instead of deleting it right away.
1977 (bpstat_remove_bp_location): Delete.
1978 (bpstat_remove_breakpoint): New.
1979 (bpstat_remove_bp_location_callback): Delete.
1980 (bpstat_remove_breakpoint_callback): New.
1981 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1982 clearing references to the breakpoint that is being deleted.
1983
1984 * breakpoint.h (struct bp_location) <refc>: New field.
1985 <owner>: Update comments.
1986 (bpstat_free): Delete declaration.
1987 (struct bpstats): Change the type of the breakpoint_at field to
1988 struct breakpoint point, from struct bp_location pointer. Add new
1989 field bp_location_at.
1990
14c0d4e1
TT
19912010-08-16 Tom Tromey <tromey@redhat.com>
1992
1993 * NEWS: Fix typo.
1994
b56df873
TT
19952010-08-16 Tom Tromey <tromey@redhat.com>
1996
1997 * NEWS: Mention watch -location.
1998
d63d0675
JK
19992010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2000
2001 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
2002 EXP_STRING_REPARSE to EXP_STRING.
2003 (watch_command_1): Set also EXP_STRING_REPARSE.
2004 (delete_breakpoint): Free also EXP_STRING_REPARSE.
2005 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
2006 Update comment for exp_string.
2007
06a64a0b
TT
20082010-08-16 Tom Tromey <tromey@redhat.com>
2009
2010 * value.c (release_value): Clear 'next' pointer.
2011 * breakpoint.c (watch_command_1): Add 'just_location' argument.
2012 (watch_command_wrapper): Update.
2013 (watch_maybe_just_location): New function.
2014 (watch_command): Update.
2015 (rwatch_command_wrapper): Update.
2016 (rwatch_command): Update.
2017 (awatch_command_wrapper): Update.
2018 (awatch_command): Update.
2019 (check_for_argument): New function.
2020 (_initialize_breakpoint): Update help text.
2021
f96b8fa0
UW
20222010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2023
2024 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2025 typedef'ed function types correctly.
2026
4eb54052
TT
20272010-08-13 Tom Tromey <tromey@redhat.com>
2028
2029 * python/python-internal.h (gdbpy_get_hook_function): Don't
2030 declare.
2031
44be957e
JK
20322010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2033
ba720883 2034 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2035 static.
2036
76d8b686
KW
20372010-08-13 Ken Werner <ken.werner@de.ibm.com>
2038
2039 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2040 the format strings to be compatible with Python 2.4.
2041
8dedea02
VP
20422010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2043
2044 Easier and more stubborn MI memory read commands.
2045
2046 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2047 and data-write-memory-bytes.
2048 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2049 (mi_cmd_data_write_memory_bytes): New.
2050 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2051 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2052 New.
2053 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2054 * target.c (target_read_until_error): Remove.
2055 (read_whatever_is_readable, free_memory_read_result_vector)
2056 (read_memory_robust): New.
2057 * target.h (target_read_until_error): Remove.
2058 (struct memory_read_result, free_memory_read_result_vector)
2059 (read_memory_robust): New.
2060
1d9ec526
HZ
20612010-08-13 Hui Zhu <teawater@gmail.com>
2062
2063 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2064 (read_comp_unit): Initialize back_to.
2065
98bfdba5
PA
20662010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2067 Pedro Alves <pedro@codesourcery.com>
2068
2069 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2070 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2071 (struct partial_die_info) <has_template_arguments>: New field.
2072 <num_attrs>: Change type to unsigned char.
2073 <building_fullname>: New field.
2074 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2075 allocate a CU if we don't have one already. Add a cleanup for the
2076 CU.
2077 (partial_die_full_name): Handle template arguments not in
2078 DW_AT_name.
2079 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2080 (load_full_comp_unit): Only allocate a CU if we don't have one
2081 already.
2082 (do_ui_file_peek_last): New.
2083 (dwarf2_compute_name): Handle template parameters not in
2084 DW_AT_name.
2085 (read_comp_unit): Read and free abbrevs if not read yet.
2086 (load_partial_dies): Handle template arguments not in DW_AT_name.
2087 (find_partial_die): If we have a CU, but no a partial dies yet,
2088 also read in the CU.
2089 (dwarf2_const_value_attr): New, abstracted out from
2090 dwarf2_const_value.
2091 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2092 dwarf2_const_value_attr.
2093 (determine_prefix): Detect and break loops created by RCVT's debug
2094 info.
2095 (maybe_queue_comp_unit): Bail out early if reading partial
2096 symbols.
2097 (follow_die_offset): Load full CU if we have no dies.
2098 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2099 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2100
ca5c20b6 21012010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2102 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2103
2104 * python/python.c (gdbpy_run_events): New function.
2105 (gdbpy_post_event): Likewise.
2106 (gdbpy_initialize_events): Likewise.
2107 (_initialize_python): Call gdbpy_initialize_events.
2108
7346b668
KW
21092010-08-11 Ken Werner <ken.werner@de.ibm.com>
2110
2111 * gdb/valarith.c (vector_binop): New function.
2112 (scalar_binop): Likewise.
2113 (value_binop): Call scalar_binop or vector_binop depending on the types.
2114 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2115 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2116 to pointers.
2117 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2118
62183e15
TT
21192010-08-11 Brad Roberts <braddr@puremagic.com>
2120
2121 * d-lang.c (extract_identifiers): Handle multiple digits.
2122
39d7b0e2
JK
21232010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2124
2125 Code cleanup.
2126 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2127 Rename to dummy_frame_unwind.
2128 (dummy_frame_unwind): Remove.
2129 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2130 * frame-unwind.c (frame_unwind_init): Use address of
2131 dummy_frame_unwind and inline_frame_unwind.
2132 * frame.c (create_sentinel_frame): Use address of
2133 sentinel_frame_unwind.
2134 * inline-frame.c (inline_frame_unwinder): Rename to
2135 inline_frame_unwind.
2136 (inline_frame_unwind): Remove.
2137 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2138 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2139 sentinel_frame_unwind.
2140 (sentinel_frame_unwind): Remove.
2141 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2142 struct.
2143
9f9a8002
JK
21442010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2145
2146 Code cleanup.
2147 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2148 and returned value. New comment from frame-unwind.h.
2149 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2150 Extend the comment.
2151 * frame.c (get_frame_id, frame_unwind_register_value)
2152 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2153 (get_frame_type, frame_unwind_arch): Do not use the return value of
2154 frame_unwind_find_by_frame.
2155
cb2e07a6 21562010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2157 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2158 Tom Tromey <tromey@redhat.com>
2159
2160 * python/python.c (gdbpy_solib_address): New function.
2161 (gdbpy_decode_line): Likewise.
2162
c29c521f
TT
21632010-08-10 Tom Tromey <tromey@redhat.com>
2164
2165 Revert gdb-add-index addition:
2166 * Makefile.in (install-only): Don't install gdb-add-index.
2167 * gdb-add-index.sh: Remove.
2168
0c012db1
KB
21692010-08-09 Kevin Buettner <kevinb@redhat.com>
2170
2171 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2172 `target_has_execution' check with `to_has_memory' check.
2173 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2174 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2175 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2176
db04efe6
KB
21772010-08-09 Kevin Buettner <kevinb@redhat.com>
2178
2179 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2180 (resume_siggnal, resume_step): Move these static globals...
2181 (struct sim_inferior_data): ...into this new struct.
2182 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2183 New static globals.
2184 (gdb_callback, callbacks_initialized): Move these globals to
2185 a point earlier in the file.
2186 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2187 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2188 (gdbsim_close_inferior, gdbsim_resume_inferior)
2189 (gdbsim_stop_inferior): New functions.
2190 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2191 New constants.
2192 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2193 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2194 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2195 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2196 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2197 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2198 new local variable `sim_data' in each of these functions. Use
2199 `sim_data' to reference former globals `program_loaded',
2200 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2201 `resume_step'.
2202 (gdbsim_open): Remove local variable `argv'. Put results of call
2203 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2204 make a cleanup for it. Free it though when a sim instance cannot
2205 be obtained.
2206 (gdbsim_close): Free sim_argv and null it out as appropriate.
2207 Close sim instances in all inferiors.
2208 (gdbsim_cntrl_c): Stop all inferiors.
2209 (gdbsim_wait):
2210 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2211
e37fd15a
SW
22122010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2213
2214 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2215 function after symbol construction is complete.
2216 Do the same for template symbol addition to template_symbols list.
2217
45c58896
SW
22182010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2219
2220 * symtab.c (symbol_get_demangled_name): Remove assertion and
2221 return NULL when language_specific.cplus_specific is not initialized.
2222 * stabsread.c (define_symbol): Set the name before calling
2223 cp_scan_for_anonymous_namespaces.
2224
33e5013e
SW
22252010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2226
2227 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2228 SYMBOL_SET_LANGUAGE.
2229 (symbol_init_language_specific): Renamed to symbol_set_language.
2230 * symtab.c (symbol_init_language_specific): Removed redundant check
2231 for language_cplus.
2232 Renamed to symbol_set_language.
2233 * stabsread.c (define_symbol): Updated.
2234 (read_enum_type): Updated
2235 * psymtab.c (add_psymbol_to_bcache): Updated.
2236 * minsyms.c (install_minimal_symbols): Updated.
2237 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2238 SYMBOL_LANGUAGE to set the language.
2239 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2240 * mdebugread.c (new_symbol): Ditto.
2241 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2242 * dwarf2read.c (new_symbol_full): Ditto.
2243 * jv-lang.c (add_class_symbol): Ditto.
2244
5da1313b
JK
22452010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2246
2247 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2248 (make_cleanup_restore_page_info)
2249 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2250 * gdbcmd.h (execute_command_to_string): New declaration.
2251 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2252 (make_cleanup_restore_ui_file): Move to utils.c
2253 (execute_gdb_command) <to_string>: Move ...
2254 * top.c (execute_command_to_string): ... here. Call
2255 set_batch_flag_and_make_cleanup_restore_page_info.
2256 * utils.c (make_cleanup_restore_integer): New source file blank line.
2257 (make_cleanup_restore_uinteger): New.
2258 (struct restore_ui_file_closure, do_restore_ui_file)
2259 (make_cleanup_restore_ui_file): Move here from python/python.c.
2260 (init_page_info) <batch_flag>
2261 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2262 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2263
c820c52a
PA
22642010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2265
2266 * thread.c (add_thread_silent): Use null_ptid instead of
2267 minus_one_ptid while getting rid of stale inferior_ptid.
2268
8da614df
CV
22692010-08-06 Corinna Vinschen <vinschen@redhat.com>
2270
2271 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2272 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2273 (decode_frame_entry_1): Remove redundant setting of
2274 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2275 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2276 on examined frame section. Add comment to explain why.
2277 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2278 comment to explain usage.
2279 * gdbarch.c: Regenerate.
2280 * gdbarch.h: Regenerate.
2281
2282 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2283
e4195b40
JK
22842010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2285
2286 Code cleanup.
2287 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2288 a more inner block.
2289
a3217aa0
PA
22902010-08-05 Pedro Alves <pedro@codesourcery.com>
2291
2292 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2293 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2294 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2295 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2296 linux-tdep.o to gdb_target_obs.
2297
e2b4a699 22982010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2299
2300 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2301 argument.
889bf7c5 2302
50e8a0d5
HZ
23032010-08-05 Hui Zhu <teawater@gmail.com>
2304
2305 * mips-linux-tdep.c(regset.h): New include.
2306 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2307 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2308 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2309 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2310 mips_linux_regset_from_core_section): New functions.
2311 (fetch_core_registers, regset_core_fns): Deleted.
2312 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2313 Deleted regset_core_fns.
2314 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2315 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2316 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2317 and fpregset64.
2318
70728992
PA
23192010-08-04 Pedro Alves <pedro@codesourcery.com>
2320
2321 * s390-tdep.c: Include linux-tdep.h.
2322 (s390_gdbarch_init): Call linux_init_abi.
2323
a5ee0f0c
PA
23242010-08-04 Pedro Alves <pedro@codesourcery.com>
2325
2326 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2327 instead of printing "Thread" here.
2328 * linux-tdep.c: Include inferior.h.
2329 (linux_core_pid_to_str): New.
2330 (linux_init_abi): New.
2331 * linux-tdep.h (linux_init_abi): Declare.
2332 * alpha-linux-tdep.c: Include linux-tdep.h.
2333 (alpha_linux_init_abi): Call linux_init_abi.
2334 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2335 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2336 * frv-linux-tdep.c: Include linux-tdep.h
2337 (frv_linux_init_abi): Call linux_init_abi.
2338 * hppa-linux-tdep.c: Include linux-tdep.h
2339 (hppa_linux_init_abi): Call linux_init_abi.
2340 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2341 * ia64-linux-tdep.c: Include linux-tdep.h.
2342 (ia64_linux_init_abi): Call linux_init_abi.
2343 * m32r-linux-tdep.c: Include linux-tdep.h.
2344 (m32r_linux_init_abi): Call linux_init_abi.
2345 * m68klinux-tdep.c: Include linux-tdep.h.
2346 (m68k_linux_init_abi): Call linux_init_abi.
2347 * microblaze-linux-tdep.c: Include linux-tdep.h.
2348 (microblaze_linux_init_abi): Call linux_init_abi.
2349 * mips-linux-tdep.c: Include linux-tdep.h.
2350 (mips_linux_init_abi): Call linux_init_abi.
2351 * mn10300-linux-tdep.c: Include linux-tdep.h.
2352 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2353 'gdbinfo' parameter to 'info'.
2354 * ppc-linux-tdep.c: Include linux-tdep.h.
2355 (ppc_linux_init_abi): Call linux_init_abi.
2356 * sh-linux-tdep.c: Include linux-tdep.h.
2357 (sh_linux_init_abi): Call linux_init_abi.
2358 * sparc-linux-tdep.c: Include linux-tdep.h.
2359 (sparc32_linux_init_abi): Call linux_init_abi.
2360 * sparc64-linux-tdep.c: Include linux-tdep.h.
2361 (sparc64_linux_init_abi): Call linux_init_abi.
2362 * xtensa-linux-tdep.c: Include linux-tdep.h.
2363 (xtensa_linux_init_abi): Call linux_init_abi.
2364 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2365 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2366 callback.
2367
bc043ef3
DE
23682010-08-03 Doug Evans <dje@google.com>
2369
2370 * breakpoint.c (bpdisp_text): Constify bpdisps.
2371 * solib-svr4.c (solib_break_names): Constify.
2372 (bkpt_names, main_name_list): Constify.
2373 (match_main): Constify soname arg.
63cdd227
DE
2374 (bfd_lookup_symbol): Remove unnecessary forward decl.
2375 Constify symname arg.
bc043ef3
DE
2376 (enable_break): Constify bkpt_namep.
2377 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2378 (symtab_symbol_info): Constify classnames.
2379
585d1eb8
PM
23802010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2381
2382 * NEWS: Document Python value inferior function calls.
2383
2de00c64
DE
23842010-08-02 Doug Evans <dje@google.com>
2385
2386 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2387
02d868e8
PP
23882010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2389
2390 * linux-thread-db.c (libthread_db_debug): New variable.
2391 (thread_db_find_new_threads_silently): Control verbosity with it.
2392 (try_thread_db_load_1, try_thread_db_load): Likewise.
2393 (find_new_threads_once): Likewise.
2394 (_initialize_thread_db): Set/show it.
2395
a19cae16
JK
23962010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2397
2398 * common/signals.c (signals): Move the content to signals.def.
2399 Include it. Remove the INDENT comments.
2400
c2bbed2a
TT
24012010-07-30 Tom Tromey <tromey@redhat.com>
2402
2403 * Makefile.in (install-only): Install gdb-add-index.
2404 * gdb-add-index.sh: New file.
2405
f32b2f09
CR
24062010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2407
2408 * MAINTAINERS: Add myself for write after approval privileges.
2409
1276c759
JK
24102010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2411
2412 * symfile.c (addr_section_name): New function.
2413 (addrs_section_compar): Use it.
2414 (addr_info_make_relative): Use it. Move variable sect_name into a more
2415 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2416
420697bb
TT
24172010-07-30 Tom Tromey <tromey@redhat.com>
2418
2419 * configure: Rebuild.
2420 * configure.ac: Add missing case for Python 2.7.
2421
d0d99561
DD
24222010-07-29 DJ Delorie <dj@redhat.com>
2423
2424 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2425 conditions.
2426
0b29bdde
PA
24272010-07-29 Pedro Alves <pedro@codesourcery.com>
2428
2429 * PROBLEMS: Remove mention of all problems.
2430
110ed339
PA
24312010-07-28 Pedro Alves <pedro@codesourcery.com>
2432
2433 PR build/11848
2434 * configure.ac: Check for wresize.
2435 * configure, config.in: Regenerate.
2436 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2437 with HAVE_WRESIZE.
2438
326fd672
TT
24392010-07-28 Tom Tromey <tromey@redhat.com>
2440
2441 PR python/11060:
2442 * python/py-type.c (typy_legacy_template_argument): New function,
2443 extracted from typy_template_argument.
2444 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2445 value when needed.
2446
4ac8c4da
TT
24472010-07-28 Oleg Nesterov <oleg@redhat.com>
2448
2449 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2450
053315c2
TT
24512010-07-27 Tom Tromey <tromey@redhat.com>
2452
2453 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2454
3ce3b1ba
PA
24552010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2456
2457 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2458 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2459
2bb4f988
TT
24602010-07-28 Tom Tromey <tromey@redhat.com>
2461
2462 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2463
74232302
JB
24642010-07-28 Joel Brobecker <brobecker@adacore.com>
2465
2466 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2467 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2468
385d04dc
JB
24692010-07-28 Joel Brobecker <brobecker@adacore.com>
2470
2471 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2472 down, just before the block that parse the breakpoint addr_string.
2473
34eaf542
TT
24742010-07-28 Tom Tromey <tromey@redhat.com>
2475
2476 PR c++/9946:
2477 * symfile.c (reread_symbols): Clear template_symbols.
2478 * symtab.h (struct symbol) <is_cplus_template_function>: New
2479 field.
2480 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2481 (struct template_symbol): New.
2482 * symtab.c (lookup_symbol_aux_local): Use
2483 cp_lookup_symbol_imports_or_template.
2484 * objfiles.h (struct objfile) <template_symbols>: New field.
2485 * objfiles.c (relocate_one_symbol): New function.
2486 (objfile_relocate1): Use it. Relocate isolated symbols.
2487 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2488 template_arguments>: New fields.
2489 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2490 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2491 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2492 (lookup_typename): Update.
2493 * gdbtypes.c (lookup_typename): Constify "block" argument.
2494 * dwarf2read.c: Include vec.h.
2495 (symbolp): New typedef.
2496 (read_func_scope): Read template arguments. Allocate a
2497 template_symbol when needed.
2498 (read_structure_type): Read template arguments.
2499 (new_symbol_full): New function, from new_symbol. Handle
2500 DW_TAG_template_type_param and DW_TAG_template_value_param.
2501 (new_symbol): Rewrite as wrapper.
2502 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2503 * cp-namespace.c: Include language.h.
2504 (search_symbol_list): New function.
2505 (cp_lookup_symbol_imports_or_template): Likewise.
2506
d27b3be4
PA
25072010-07-28 Balazs Kezes <rlblaster@gmail.com>
2508
2509 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2510 the command window to the new size and position.
2511
0036e657
PA
25122010-07-28 Balazs Kezes <rlblaster@gmail.com>
2513
a782f43e 2514 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
2515 coordinates.
2516
36900355
PA
25172010-07-28 Balazs Kezes <rlblaster@gmail.com>
2518
a782f43e 2519 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 2520 after a detecting a resize.
a782f43e 2521 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
2522 call.
2523
db5e03ae
PA
25242010-07-28 Pedro Alves <pedro@codesourcery.com>
2525
2526 * configure.ac: Check for resize_term.
2527 * configure, config.in: Regenerate.
2528
b71fff68
JB
25292010-07-27 Joel Brobecker <brobecker@adacore.com>
2530
2531 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2532
9b1c24c8
PA
25332010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2534
2535 * dwarf2read.c (read_string): Rename to ...
2536 (read_direct_string): ... this.
2537 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2538 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2539
00390b84
JK
25402010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2541
2542 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2543 (count_events_callback, select_event_lwp_callback)
2544 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2545
26ab7092
JK
25462010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2547
2548 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2549 (_initialize_ia64_linux_nat): Install it.
2550 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2551 (linux_nat_set_status_is_event): New.
2552 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2553 cancel_breakpoints_callback, linux_nat_filter_event)
2554 (linux_nat_wait_1): Use linux_nat_status_is_event.
2555 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2556
283e6a52
TT
25572010-07-27 Tom Tromey <tromey@redhat.com>
2558
2559 * NEWS: Mention labels, .gdb_index.
2560
53a71c06
CR
25612010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2562
2563 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 2564 "start,+length" form of arguments.
53a71c06
CR
2565 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2566 since GDB 7.1"; and merge two separated paragraphs of disassemble
2567 description in "Changes in GDB 7.0".
2568
c63a1f86
JK
25692010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2570
2571 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2572 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2573 (fputs_maybe_filtered): Do not do filtering also on
2574 ! INPUT_FROM_TERMINAL_P.
2575
abebb8b0
JB
25762010-07-27 Joel Brobecker <brobecker@adacore.com>
2577
2578 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2579 in warning message.
2580
5374244e
PM
25812010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2582
2583 * python/py-value.c (valpy_call): New Function.
2584
ac0b195c
KW
25852010-07-27 Ken Werner <ken.werner@de.ibm.com>
2586
889bf7c5 2587 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
2588 types_list_elements variables.
2589
09d8bd00
TT
25902010-07-26 Tom Tromey <tromey@redhat.com>
2591
2592 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2593 TLS with DW_OP_const4u or DW_OP_const8u.
2594
9fe70b4f
TJB
25952010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2596
2597 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2598 VSX registers contents.
2599
caac4577
JG
26002010-07-26 Jerome Guitton <guitton@adacore.com>
2601
2602 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2603 its adress is null. Add comment to explain why.
2604 (new_symbol): Ditto.
2605
857d11d0
JK
26062010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2607
2608 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2609 the host signal first.
2610
1fd400ff
TT
26112010-07-23 Tom Tromey <tromey@redhat.com>
2612
2613 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2614 type_comp_units>: New fields.
2615 (dw2_get_cu): New function.
2616 (create_cus_from_index): Remove unused argument.
2617 (create_signatured_type_hash_from_index): New function.
2618 (create_addrmap_from_index): Update.
2619 (dwarf2_read_index): Handle version 2.
2620 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2621 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2622 (dw2_print_stats, dw2_expand_all_symtabs)
2623 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2624 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2625 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2626 (allocate_signatured_type_hash_table): New function.
2627 (add_signatured_type_cu_to_list): Likewise.
2628 (create_debug_types_hash_table): Use them. Set type_comp_units.
2629 (read_signatured_type): Ensure section data is available.
2630 (add_address_entry): Don't record empty ranges.
2631 (struct signatured_type_index_data): New.
2632 (write_one_signatured_type): New function.
2633 (write_psymtabs_to_index): Write type CUs.
2634 (save_gdb_index_command): Update comment.
2635 (process_type_comp_unit): Move inititalization of
2636 from_debug_types...
2637 (create_debug_types_hash_table): ... here.
2638
3a674486
JK
26392010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2640
2641 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2642 cleanup and generating of gdb script to it.
2643 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2644 and terminal size. Convert $tmpfile to a series of -ex-es.
2645
54ec275a
KS
26462010-07-23 Keith Seitz <keiths@redhat.com>
2647
2648 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2649 hook for STATIC_BLOCK types, too.
2650
8fd447e6
KS
26512010-07-23 Keith Seitz <keiths@redhat.com>
2652
2653 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2654 and vector definition.
2655
25b72dde
JK
26562010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2657
2658 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2659
96d19272
JK
26602010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2661
2662 * dwarf2read.c: Include completer.h.
2663 (save_gdb_index_command): Use matching usage command name.
2664 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2665 Set filename_completer for it.
2666
ca1f3406
TT
26672010-07-22 Tom Tromey <tromey@redhat.com>
2668
2669 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2670 type signature's per-CU data.
2671
ba25b921
PA
26722010-07-22 Pedro Alves <pedro@codesourcery.com>
2673
2674 * NEWS: Mention target reported shared libraries support by
2675 default.
2676
23bd0f7c
PA
26772010-07-21 Pedro Alves <pedro@codesourcery.com>
2678
2679 PR symtab/11827
2680
2681 Revert:
2682 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2683 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2684 and DW_TAG_volatile_type.
2685 (new_symbol): Likewise.
2686
883df6dd
SW
26872010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2688
2689 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2690 function symbols before overload resolution.
2691
269b11a2
PA
26922010-07-21 Pedro Alves <pedro@codesourcery.com>
2693
2694 * breakpoint.c (bptype_string): New, abstracted out from
2695 print_one_breakpoint_location.
2696 (print_one_breakpoint_location): Adjust.
2697 (breakpoint_1): Adjust the type column width dynamically.
2698
569b05a5
JK
26992010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2700
2701 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2702 a gdb_assert call, new comment.
2703
ad34eb2f
JK
27042010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2705
2706 * linux-nat.c (linux_handle_extended_wait): Handle case when
2707 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2708
33355866
JK
27092010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2710
2711 Code cleanup.
2712 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2713 linux_nat_wait_1. Use always LP->STATUS afterwards.
2714
26590820
HZ
27152010-07-20 Hui Zhu <teawater@gmail.com>
2716
2717 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2718 (inf_ptrace_attach): Ditto.
2719
c0edd9ed
JK
27202010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2721
2722 Make core files the process_stratum.
2723 * corefile.c (core_target): New variable.
2724 (core_file_command): Remove variable t, use core_target.
2725 * corelow.c (core_ops): Make it static.
2726 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2727 * defs.h (make_cleanup_unpush_target): New prototype.
2728 * gdbarch.h: Regenerate.
2729 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2730 * gdbcore.h (core_target): New declaration.
2731 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2732 variables ops_already_pushed and back_to. Use push_target,
2733 make_cleanup_unpush_target and discard_cleanups calls.
2734 * record.c (record_open): Replace core_stratum by a core_bfd check.
2735 * target.c (target_is_pushed): New function.
2736 (find_core_target): Remove.
2737 * target.h (enum strata) <core_stratum>: Remove.
2738 (target_is_pushed): New declaration.
2739 (find_core_target): Remove declaration.
2740 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2741 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2742
f02253f1
HZ
27432010-07-19 Hui Zhu <teawater@gmail.com>
2744
2745 * breakpoint.c (single_step_breakpoints_inserted): New
2746 function.
2747 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2748 * infrun.c (maybe_software_singlestep): Add check code.
2749 * record.c (record_resume): Add code for software single step.
2750 (record_wait): Ditto.
2751
78768c4a
JK
27522010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2755 a more inner block. Remove its unused declaration initializer.
2756
431e49aa
TJB
27572010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2758
2759 * NEWS: Mention support for the new ptrace interface and hardware
2760 accelerated watchpoint conditions on powerpc-linux.
2761
bd91e7ae
OS
27622010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2763
2764 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2765 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2766 and host_address_to_string() and %s for pointers.
2767 (debug_to_remove_breakpoint): Likewise.
2768 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2769 (debug_to_can_accel_watchpoint_condition): Likewise.
2770 (debug_to_stopped_data_address): Likewise.
2771 (debug_to_watchpoint_addr_within_range): Likewise.
2772 (debug_to_insert_hw_breakpoint): Likewise.
2773 (debug_to_remove_hw_breakpoint): Likewise.
2774 (debug_to_insert_watchpoint): Likewise.
2775 (debug_to_remove_watchpoint): Likewise.
2776
29df156d
SW
27772010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2778
2779 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2780 argument.
2781 (cplus_specific): New struct.
2782 * symtab.c (symbol_set_demangled_name): Updated.
2783 Use cplus_specific for cplus symbols.
2784 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2785 struct for cplus symbols.
2786 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2787 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2788 * symtab.c (symbol_init_cplus_specific): New function.
2789
b250c185
SW
27902010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2791
2792 * symtab.h (symbol_set_demangled_name): New function.
2793 (symbol_get_demangled_name): New function.
2794 * symtab.c (symbol_set_demangled_name): New function.
2795 (symbol_get_demangled_name): New function.
2796 (symbol_init_language_specific): Use demangled_name setter and getter.
2797 (symbol_set_names): Ditto.
2798 (symbol_natural_name): Ditto.
2799 (symbol_demangled_name): Ditto.
2800 * dwarf2read.c (new_symbol): Ditto.
2801
afa16725
SW
28022010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2803
2804 * symtab.h: Renamed cplus_specific to mangled_lang.
2805 * symtab.c (symbol_init_language_specific): Updated.
2806 (symbol_set_names): Updated.
2807 (symbol_natural_name): Updated.
2808 (symbol_demangled_name): Updated.
2809 * ada-lang.c (ada_decode_symbol): Updated.
2810 * dwarf2read.c (new_symbol): Updated.
2811
3cbaedff
KW
28122010-07-14 Ken Werner <ken.werner@de.ibm.com>
2813
2814 * valops.c (value_assign): Do not call to value_coerce_to_target.
2815 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2816
c932f1be
KW
28172010-07-14 Ken Werner <ken.werner@de.ibm.com>
2818
2819 * MAINTAINERS: Add myself for write after approval privileges.
2820
91158a56
TT
28212010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2822
2823 * c-valprint.c (c_val_print): Add embedded_offset to address in
2824 call to val_print_array_elements.
2825
b3b272e1
TT
28262010-07-13 Tom Tromey <tromey@redhat.com>
2827
2828 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2829
bb3fa9d0
TT
28302010-07-13 Tom Tromey <tromey@redhat.com>
2831
2832 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2833 objfile.
2834
dd786858
TT
28352010-07-13 Tom Tromey <tromey@redhat.com>
2836
2837 * symfile.c (set_initial_language): Update.
2838 (deduce_language_from_filename): Argument type now const.
2839 * symtab.h (find_main_filename): Update.
2840 (deduce_language_from_filename): Update.
2841 * symtab.c (find_main_filename): Make result const.
2842 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2843 * psymtab.c (find_symbol_file_from_partial): Change return type.
2844 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2845 Make result const.
2846
9291a0cd
TT
28472010-07-13 Tom Tromey <tromey@redhat.com>
2848
2849 * breakpoint.c (save_cmdlist): No longer static.
2850 * gdbcmd.h (save_cmdlist): Declare.
2851 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2852 OBJF_READNOW on objfile if readnow_symbol_files.
2853 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2854 (elf_sym_fns_gdb_index): New global.
2855 * dwarf2read.c: Include exceptions.h.
2856 (offset_type): New.
2857 (struct mapped_index): New.
2858 (dwarf2_per_cu_data_ptr): New typedef.
2859 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2860 New fields.
2861 (GDB_INDEX_SECTION): New define.
2862 (struct dwarf2_per_cu_quick_data): New.
2863 (struct dwarf2_per_cu_data) <objfile>: New field.
2864 <psymtab>: Removed.
2865 <v>: New field.
2866 (byte_swap): New function.
2867 (MAYBE_SWAP): New macro.
2868 (INDEX_SUFFIX): New macro.
2869 (dw2_do_instantiate_symtab): New function.
2870 (dw2_instantiate_symtab): Likewise.
2871 (create_cus_from_index): Likewise.
2872 (create_addrmap_from_index): Likewise.
2873 (mapped_index_string_hash): Likewise.
2874 (find_slot_in_mapped_hash): Likewise.
2875 (dwarf2_read_index): Likewise.
2876 (dw2_setup): Likewise.
2877 (dw2_require_line_header): Likewise.
2878 (dw2_require_full_path): Likewise.
2879 (dw2_find_last_source_symtab): Likewise.
2880 (dw2_forget_cached_source_info): Likewise.
2881 (dw2_lookup_symtab): Likewise.
2882 (dw2_lookup_symbol): Likewise.
2883 (dw2_do_expand_symtabs_matching): Likewise.
2884 (dw2_pre_expand_symtabs_matching): Likewise.
2885 (dw2_print_stats): Likewise.
2886 (dw2_dump): Likewise.
2887 (dw2_relocate): Likewise.
2888 (dw2_expand_symtabs_for_function): Likewise.
2889 (dw2_expand_all_symtabs): Likewise.
2890 (dw2_expand_symtabs_with_filename): Likewise.
2891 (dw2_find_symbol_file): Likewise.
2892 (dw2_map_ada_symtabs): Likewise.
2893 (dw2_expand_symtabs_matching): Likewise.
2894 (dw2_find_pc_sect_symtab): Likewise.
2895 (dw2_map_symbol_names): Likewise.
2896 (dw2_map_symbol_filenames): Likewise.
2897 (dw2_has_symbols): Likewise.
2898 (dwarf2_gdb_index_functions): New global.
2899 (dwarf2_initialize_objfile): New function.
2900 (process_psymtab_comp_unit): Update.
2901 (add_partial_subprogram): Likewise.
2902 (dwarf2_psymtab_to_symtab): Likewise.
2903 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2904 (process_full_comp_unit): Update.
2905 (find_file_and_directory): New function.
2906 (read_file_scope): Use find_file_and_directory.
2907 (dwarf2_per_cu_objfile): Update.
2908 (dwarf2_per_cu_addr_size): Update.
2909 (dwarf2_per_cu_offset_size): Update.
2910 (dwarf2_free_objfile): Free the index, if needed.
2911 (dwarf2_per_objfile_free): Unmap the index, if needed.
2912 (struct strtab_entry): New.
2913 (hash_strtab_entry): New function.
2914 (eq_strtab_entry): Likewise.
2915 (create_strtab): Likewise.
2916 (add_string): Likewise.
2917 (struct symtab_index_entry): New.
2918 (struct mapped_symtab): New.
2919 (hash_symtab_entry): New function.
2920 (eq_symtab_entry): Likewise.
2921 (delete_symtab_entry): Likewise.
2922 (create_index_table): Likewise.
2923 (create_mapped_symtab): Likewise.
2924 (cleanup_mapped_symtab): Likewise.
2925 (find_slot): Likewise.
2926 (hash_expand): Likewise.
2927 (add_index_entry): Likewise.
2928 (add_indices_to_cpool): Likewise.
2929 (write_hash_table): Likewise.
2930 (add_address_entry): Likewise.
2931 (write_psymbols): Likewise.
2932 (write_obstack): Likewise.
2933 (unlink_if_set): Likewise.
2934 (write_psymtabs_to_index): Likewise.
2935 (save_gdb_index_command): Likewise.
2936 (_initialize_dwarf2_read): Install "save gdb-index"
2937 command.
2938 (create_all_comp_units): Initialize 'objfile' field of CU.
2939 (dwarf2_locate_sections): Check for .gdb_index.
2940 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2941 * symfile.h (dwarf2_initialize_objfile): Declare.
2942
58b6ab13
TT
29432010-07-13 Tom Tromey <tromey@redhat.com>
2944
2945 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2946 (basic_lookup_transparent_type): Likewise.
2947 * symfile.h (struct quick_symbol_functions)
2948 <pre_expand_symtabs_matching>: New field.
2949 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2950 (psym_functions): Update.
2951
0f5238ed
TT
29522010-07-13 Tom Tromey <tromey@redhat.com>
2953
2954 PR breakpoints/8357:
2955 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2956 * linespec.c (decode_line_1): Update comment. Call decode_label.
2957 (decode_label): New function.
2958 (symbol_found): Handle LOC_LABEL.
2959 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2960 domain. Call add_symbol_to_list.
2961
9aa1f1e3
TT
29622010-07-13 Tom Tromey <tromey@redhat.com>
2963
2964 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2965 * dwarf2loc.c (find_location_expression): Use
2966 dwarf2_per_cu_text_offset.
2967 (dwarf2_evaluate_loc_desc): Likewise.
2968 (dwarf2_loc_desc_needs_frame): Likewise.
2969 (compile_dwarf_to_ax): Likewise.
2970 (loclist_describe_location): Likewise.
2971 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2972 (dwarf2_per_cu_objfile): Update comment.
2973
953ac07e
JK
29742010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2975
2976 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2977 * p-lang.c (pascal_printstr): Likewise.
2978
f04e4012
TT
29792010-07-09 Tom Tromey <tromey@redhat.com>
2980
2981 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2982 'hint' if it is NULL.
2983
f4dfd9c0
HZ
29842010-07-09 Hui Zhu <teawater@gmail.com>
2985
2986 * source.c (print_source_lines_base): Add check for noprint.
2987
7e6e39e5
JB
29882010-07-08 Joel Brobecker <brobecker@adacore.com>
2989
2990 * python/python-config.py: Resync with Python 2.7 version of this
2991 script.
2992
76b8507d
JB
29932010-07-08 Joel Brobecker <brobecker@adacore.com>
2994
2995 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2996
797054e6
JB
29972010-07-07 Joel Brobecker <brobecker@adacore.com>
2998
2999 * NEWS: Create a new section for the next release branch.
3000 Rename the section of the current branch, now that it has
3001 been cut.
3002
c80befee 30032010-07-07 Joel Brobecker <brobecker@adacore.com>
3004
3005 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
3006 * version.in: Bump version to 7.2.50.20100707-cvs.
3007
ac56253d
TT
30082010-07-07 Tom Tromey <tromey@redhat.com>
3009
3010 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
3011 LOC_COMPUTED symbol.
3012 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
3013 (dwarf2_loc_desc_needs_frame): Likewise.
3014 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
3015 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
3016 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
3017 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3018 'offset' argument.
3019 (struct dwarf2_frame_cache) <text_offset>: New field.
3020 (dwarf2_frame_cache): Set new field.
3021 (dwarf2_frame_prev_register): Update.
3022 (dwarf2_frame_sniffer): Update.
3023 (dwarf2_frame_base_sniffer): Update.
3024 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3025
0cf6dd15
TJB
30262010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3027 Thiago Jung Bauermann <bauerman@br.ibm.com>
3028
3029 Support for hw accelerated condition watchpoints in booke powerpc.
3030
3031 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3032 and move to eval.c. Change callers.
3033 (insert_bp_location): Pass watchpoint condition in
3034 target_insert_watchpoint.
3035 (remove_breakpoint_1) Pass watchpoint condition in
3036 target_remove_watchpoint.
3037 (watchpoint_locations_match): Call
3038 target_can_accel_watchpoint_condition.
3039 * eval.c: Include wrapper.h.
3040 (fetch_subexp_value): Moved from breakpoint.c.
3041 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3042 Formatting fix.
3043 (can_use_watchpoint_cond_accel): New function.
3044 (calculate_dvc): Likewise.
3045 (num_memory_accesses): Likewise.
3046 (check_condition): Likewise.
3047 (ppc_linux_can_accel_watchpoint_condition): Likewise
3048 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3049 check_condition and calculate_dvc.
3050 (ppc_linux_remove_watchpoint): Likewise.
3051 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3052 ppc_linux_can_accel_watchpoint_condition
3053 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3054 condition.
3055 (debug_to_remove_watchpoint): Likewise.
3056 (debug_to_can_accel_watchpoint_condition): New function.
3057 (update_current_target): Set to_can_accel_watchpoint_condition.
3058 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3059 * target.h: Add opaque declaration for struct expression.
3060 (struct target_ops) <to_insert_watchpoint>,
3061 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3062 <to_can_accel_watchpoint_condition>: New member.
3063 condition. Update all callers and implementations.
3064 (target_can_accel_watchpoint_condition): New macro.
3065 * value.c (free_value_chain): New function.
3066 * value.h (fetch_subexp_value): New prototype.
3067 (free_value_chain): Likewise.
3068
2f2241f1
UW
30692010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3070
3071 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3072 from gdbarch_core_regset_sections also for .reg if present.
3073
3074 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3075 section size for .reg.
3076 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3077 (ppc_linux_vmx_regset_sections): Likewise.
3078 (ppc_linux_fp_regset_sections): Likewise.
3079 (ppc64_linux_vsx_regset_sections): New variable.
3080 (ppc64_linux_vmx_regset_sections): Likewise.
3081 (ppc64_linux_fp_regset_sections): Likewise.
3082 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3083 for current word size.
3084
1fd7cdc2
JB
30852010-07-06 Joel Brobecker <brobecker@adacore.com>
3086
3087 * server.c (myresume): Make static.
3088
11763c18
TT
30892010-07-06 Tom Tromey <tromey@redhat.com>
3090
3091 * configure, config.in: Rebuild.
3092 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3093 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3094
a6cc4789
AS
30952010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3096
3097 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3098 "clear".
3099
f9e9243a
UW
31002010-07-06 Ken Werner <ken.werner@de.ibm.com>
3101
3102 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3103 * gdbtypes.c (floatformats_ieee_half): New variable.
3104 * doublest.c (floatformat_from_length): Set format to
3105 gdbarch_half_format if length matches.
3106 * gdbarch.sh (half_bit): New architecture method.
3107 (half_format): Likewise.
3108 * gdbarch.h: Regenerate.
3109 * gdbarch.c: Likewise.
3110
4e5799b6
JK
31112010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3112 Joel Brobecker <brobecker@adacore.com>
3113
3114 Fix re-run of PIE executable, PR shlibs/11776.
3115 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3116 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3117
86e4bafc
JK
31182010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3119 Joel Brobecker <brobecker@adacore.com>
3120
3121 * auxv.c (memory_xfer_auxv): Update attach comment.
3122 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3123 svr4_relocate_main_executable.
3124 (svr4_solib_create_inferior_hook): Make the call to
3125 svr4_relocate_main_executable unconditional.
3126
3cd07d20
JK
31272010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3128 Joel Brobecker <brobecker@adacore.com>
3129
3130 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3131
0a1e94c7
JK
31322010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3133 Joel Brobecker <brobecker@adacore.com>
3134
3135 Fix attaching to PIEs prelinked on the disk after the process was
3136 started.
3137 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3138 Verify it against bfd_get_arch_size. Try to match arbitrary
3139 displacement for the phdrs comparison.
3140
5387647f
TT
31412010-07-02 Tom Tromey <tromey@redhat.com>
3142
3143 PR exp/11780:
3144 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3145 value as optimized-out.
3146
38b6c3b3
TJB
31472010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3148 Thiago Jung Bauermann <bauerman@br.ibm.com>
3149
3150 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3151 represent?" question in comment. Change comment to a proper sentence.
3152
a17ac5b0
TT
31532010-07-02 Ken Werner <ken.werner@de.ibm.com>
3154
3155 * c-valprint.c (c_val_print): Fix printing of character vectors.
3156
bddaafad
JK
31572010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3160 create_breakpoint prototype.
3161
d41c0fc8
PA
31622010-07-01 Pedro Alves <pedro@codesourcery.com>
3163
3164 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3165 usefulness suggestion of multiple breakpoints at same location.
3166
dc10affe
PA
31672010-07-01 Pedro Alves <pedro@codesourcery.com>
3168
3169 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3170
cabe9ab6
PA
31712010-07-01 Pedro Alves <pedro@codesourcery.com>
3172
3173 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3174 (loclist_tracepoint_var_ref): Handle optimized out values.
3175
cce7e648
PA
31762010-07-01 Pedro Alves <pedro@codesourcery.com>
3177
3178 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3179 unnecessary space in string.
3180 * filesystem.c (_initialize_filesystem): Ditto.
3181 * frame.c (_initialize_frame): Ditto.
3182 * infcmd.c (step_once): Ditto.
3183 * infrun.c (_initialize_infrun): Ditto.
3184 * linux-nat.c (linux_child_follow_fork): Ditto.
3185 * maint.c (maintenance_deprecate): Ditto.
3186 * memattr.c (_initialize_mem): Ditto.
3187 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3188 * monitor.c (monitor_open): Ditto.
3189 * procfs.c (procfs_xfer_memory): Ditto.
3190 * reverse.c (bookmarks_info): Ditto.
3191 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3192 * stack.c (_initialize_stack): Ditto.
3193 * tracepoint.c (_initialize_tracepoint): Ditto.
3194 * xtensa-tdep.c (xtensa_supply_gregset,
3195 xtensa_regset_from_core_section): Ditto.
3196
b65c7efe
TT
31972010-07-01 Tom Tromey <tromey@redhat.com>
3198
3199 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3200 check_all_valid.
3201 * value.c (value_entirely_optimized_out): Invert result. Update
3202 for new function name.
3203
0fb4aa4b
PA
32042010-07-01 Pedro Alves <pedro@codesourcery.com>
3205
3206 Static tracepoints support.
3207
3208 * NEWS: Mention new support for static tracepoints.
3209 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3210 qXfer:statictrace:read.
3211 (New features in the GDB remote stub, GDBserver): Mention static
3212 tracepoints support using an UST based backend.
3213 (New commands): Mention "info static-tracepoint-markers" and
3214 "strace".
3215 * breakpoint.c (is_marker_spec): New.
3216 (is_tracepoint): Handle static tracepoints.
3217 (validate_commands_for_breakpoint): Static tracepoints can't do
3218 while-stepping.
3219 (static_tracepoints_here): New.
3220 (bpstat_what): Handle static tracepoints.
3221 (print_one_breakpoint_location, allocate_bp_location, mention):
3222 Ditto.
3223 (create_breakpoint_sal): Ditto.
3224 (decode_static_tracepoint_spec): New.
3225 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3226 `type_wanted'. Adjust. Handle static tracepoint marker
3227 locations.
3228 (break_command_1): Adjust.
3229 (update_static_tracepoint): New.
3230 (update_breakpoint_locations): Handle static tracepoints.
3231 (breakpoint_re_set_one): Handle static tracepoint marker
3232 locations.
3233 (disable_command, enable_command): Handle static tracepoints.
3234 (trace_command, ftrace_command): Adjust.
3235 (strace_command): New.
3236 (create_tracepoint_from_upload): Adjust.
3237 (save_breakpoints): Handle static tracepoints.
3238 (_initialize_breakpoint): Install the "strace" command.
3239 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3240 (struct breakpoint): New fields static_trace_marker_id and
3241 static_trace_marker_id_idx.
3242 (breakpoints_here_p): Declare.
3243 (create_breakpoint): Adjust.
3244 (static_tracepoints_here): Declare.
3245 * remote.c (struct remote_state) <static_tracepoints>: New field.
3246 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3247 (remote_static_tracepoint_marker_at): New.
3248 (remote_static_tracepoint_markers_by_strid): New.
3249 (remote_static_tracepoint_feature): New.
3250 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3251 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3252 (remote_supports_static_tracepoints): New.
3253 (remote_download_tracepoint): Download static tracepoints.
3254 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3255 remote_static_tracepoint_markers_by_strid.
3256 (_initialize_remote): Install set|show remote static-tracepoints,
3257 and set|show remote read-sdata-object commands.
3258 * target.c (update_current_target): Inherit and default
3259 to_static_tracepoint_marker_at, and
3260 to_static_tracepoint_markers_by_strid.
3261 * target.h (static_tracepoint_marker): Forward declare.
3262 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3263 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3264 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3265 (struct target_ops): New fields to_static_tracepoint_marker_at and
3266 to_static_tracepoint_markers_by_strid.
3267 (target_static_tracepoint_marker_at)
3268 (target_static_tracepoint_markers_by_strid): New.
3269 * tracepoint.c: Include source.h.
3270 (validate_actionline): Handle $_sdata.
3271 (struct collection_list): New field strace_data.
3272 (add_static_trace_data): New.
3273 (clear_collection_list): Clear strace_data.
3274 (stringify_collection_list): Account for a possible static trace
3275 data collection.
3276 (encode_actions_1): Encode an $_sdata collection.
3277 (parse_tracepoint_definition): Handle static tracepoints.
3278 (parse_static_tracepoint_marker_definition): New.
3279 (release_static_tracepoint_marker): New.
3280 (print_one_static_tracepoint_marker): New.
3281 (info_static_tracepoint_markers_command): New.
3282 (sdata_make_value): New.
3283 (_initialize_tracepoint): Create the $_sdata convenience variable.
3284 Add the "info static-tracepoint-markers" command.
3285 Mention $_sdata in the "collect" command's help output.
3286 * tracepoint.h (struct static_tracepoint_marker): New.
3287 (parse_static_tracepoint_marker_definition)
3288 (release_static_tracepoint_marker): Declare.
3289 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3290 * python/py-breakpoint.c (bppy_new): Adjust.
3291
aac63f0f
JB
32922010-06-30 Joel Brobecker <brobecker@adacore.com>
3293
3294 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3295 including Python.h.
3296
e68994a7
DE
32972010-06-29 Doug Evans <dje@google.com>
3298
3863f96c
DE
3299 PR gdb/11702
3300 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3301 DW_AT_external is present.
3302
254e6b9e
DE
3303 PR gdb/11702
3304 * NEWS: Add entry.
3305 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3306 create a symbol for the field and record the value.
3307 (new_symbol): Handle DW_TAG_member.
3308 * gdbtypes.c (field_is_static): Remove FIXME.
3309 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3310 only ignore LOC_CONST symbols that are enums.
3311
6e70227d
DE
3312 * dwarf2read.c: Remove trailing whitespace.
3313
e68994a7
DE
3314 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3315 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3316 (struct main_type, field loc): Delete dwarf_block.
3317 (FIELD_DWARF_BLOCK): Delete.
3318 (SET_FIELD_DWARF_BLOCK): Delete.
3319 (TYPE_FIELD_DWARF_BLOCK): Delete.
3320 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3321 Update.
3322
a480d2f6
HZ
33232010-06-29 Hui Zhu <teawater@gmail.com>
3324
3325 * record.c (set_record_pic_cmdlist,
3326 show_record_pic_cmdlist): New variables.
3327 (set_record_pic_command,
3328 show_record_pic_command): New functions.
3329 (record_pic_function, record_pic_line, record_pic_enum,
3330 set_record_pic_type, record_pic_hide_nofunction,
3331 record_pic_hide_nosource, record_pic_hide_same): New variables.
3332 (record_pic_fputs): New function.
3333 (function_list, node_list, edge_list): New struct.
3334 (function_list, node_list, edge_list): New variables.
3335 (record_pic_cleanups, record_pic_node,
3336 record_pic_edge, cmd_record_pic): New functions.
3337 (_initialize_record): Add new commands for record pic.
3338
a0d7a4ff
JK
33392010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3340
3341 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3342 ALLOCATE_CPLUS_STRUCT_TYPE.
3343
595939de 33442010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3345 Tom Tromey <tromey@redhat.com>
3346 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3347
3348 * value.c (pack_unsigned_long): New function.
3349 (value_from_ulongest): New function.
3350 * value.h (value_from_ulongest): Declare.
3351 * python/python.c (_initialize_python): Call
3352 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3353 * python/python-internal.h: Define thread_object.
3354 (gdbpy_inferiors, gdbpy_selected_thread)
3355 (frame_info_to_frame_object, create_thread_object)
3356 (find_thread_object, find_inferior_object)
3357 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3358 (gdbpy_is_value_object, get_addr_from_python): Declare.
3359 * python/py-value.c (builtin_type_upylong): Define.
3360 (convert_value_from_python): Add logic for ulongest.
3361 (gdbpy_is_value_object): New function.
3362 * python/py-utils.c (get_addr_from_python): New function.
3363 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3364 (gdbpy_selected_frame): Use PyObject over frame_info.
3365 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3366 py-infthread.
3367 (SUBDIR_PYTHON_SRCS): Likewise.
3368 (py-inferior.o): New Rule.
3369 (py-infthread.o): New Rule.
3370 * python/py-inferior.c: New File.
3371 * python/py-infthread.c: New File.
3372
98751a41
JK
33732010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3374
3375 * c-typeprint.c (c_type_print_base): For no fields check include also
3376 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3377 * dwarf2read.c (struct typedef_field_list)
3378 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3379 (dwarf2_add_typedef): New.
3380 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3381 Copy also FI.TYPEDEF_FIELD_LIST.
3382 * gdbtypes.h (struct typedef_field)
3383 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3384 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3385 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3386
41f62f39
JK
33872010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3388
3389 * cp-namespace.c (cp_lookup_nested_type): New variable
3390 concatenated_name. Turn the current return condition into a reverse
3391 one. Call also lookup_static_symbol_aux on the constructed qualified
3392 name.
3393 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3394 other files into a called ...
3395 (lookup_static_symbol_aux): ... new function here.
3396 * symtab.h (lookup_static_symbol_aux): New prototype.
3397 * valops.c (value_maybe_namespace_elt): Call also
3398 lookup_static_symbol_aux if we failed otherwise.
3399
af53d231
JK
34002010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3401
3402 Fix PR c++/11703 and PR gdb/1448.
3403 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3404 FIRST_ITER check.
3405
9655fd1a
JK
34062010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3407
3408 Fix modification of cplus_struct_default.
3409 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3410 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3411 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3412
9279c692
JB
34132010-06-28 Joel Brobecker <brobecker@adacore.com>
3414
3415 * NEWS: Add entry announcing the python directory.
3416
d3f41bb1
TT
34172010-06-28 Tom Tromey <tromey@redhat.com>
3418
3419 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3420
23e7acfb
DE
34212010-06-28 Doug Evans <dje@google.com>
3422
3423 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3424 All callers updated.
3425
6036c742
JK
34262010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3427
3428 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3429 obstack_begin after each obstack_free.
3430
9f18a3b3
DE
34312010-06-27 Doug Evans <dje@google.com>
3432
1596cb5d
DE
3433 * value.c (value_static_field): Use `switch' instead of `if'.
3434 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3435
9f18a3b3
DE
3436 * valops.c (search_struct_field): Fix typo in error message.
3437
43dabe42
UW
34382010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3439
3440 * dwarf2expr.c (execute_stack_op): Place preprocessor
3441 directives at the start of the source line.
3442
0f3bb72e
PH
34432010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3444
6036c742
JK
3445 * defs.h (make_command_stats_cleanup): Declare.
3446 (set_display_time): Declare.
3447 (set_display_space): Declare.
3448 * event-top.c (command_handler): Use make_command_stats_cleanup.
3449 * main.c (display_time, display_space): Move definitions to utils.c.
3450 (captured_main): Use make_command_stats_cleanup to get start-up
3451 statistics.
3452 Use set_display_time and set_display_space for processing OPT_STATISTICS
3453 case.
3454 * maint.c (maintenance_time_display): Use set_display_time.
3455 (maintenance_space_display): Use set_display_space.
3456 * top.c (execute_command): Remove obsolete 'maint time' code.
3457 (command_loop): Use make_command_stats_cleanup.
3458 * utils.c (struct cmd_stats): Structure for storing initial time
3459 and space usage.
3460 (display_time, display_space): Move definitions here from utils.c.
3461 (set_display_time): New function.
3462 (set_display_space): New function.
3463 (make_command_stats_cleanup): New function.
3464 (report_command_stats): New auxiliary function for
3465 make_command_stats_cleanup.
0f3bb72e 3466
070c8028
UW
34672010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3468
3469 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3470 hosts where CORE_ADDR is long long.
3471
bc9f0842
TT
34722010-06-25 Tom Tromey <tromey@redhat.com>
3473
3474 PR python/10808:
3475 * python/python.c (execute_gdb_command): Add keywords. Accept
3476 "to_string" argument.
3477 (struct restore_ui_file_closure): New.
3478 (restore_ui_file): New function.
3479 (make_cleanup_restore_ui_file): Likewise.
3480 (GdbMethods) <execute>: Update.
3481
c0cc4c83
UW
34822010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3483
3484 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3485 during inferior call stack frame setup.
3486
f1d8ee66
UW
34872010-06-25 Ken Werner <ken.werner@de.ibm.com>
3488
3489 * solib-spu.c: Include "exception.h".
3490 (ocl_program_data_key): New variable.
3491 (append_ocl_sos): New function.
3492 (ocl_enable_break): Likewise.
3493 (spu_current_sos): Call append_ocl_sos.
3494 (spu_solib_loaded): Call ocl_enable_break.
3495 (_initialize_spu_solib): Register ocl_program_data_key.
3496
19c0c0f8
UW
34972010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3498
3499 * cp-support.c (reset_directive_searched): New function.
3500 (make_symbol_overload_list_using): Prevent recursive calls.
3501
0f6a939d
PM
35022010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3503
3504 * printcmd.c (print_variable_and_value): Print error message on
3505 caught exception.
3506
f2c7657e
UW
35072010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3508
3509 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3510 of stack values.
3511 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3512 "value" member.
3513 (dwarf_expr_push): Change input type to ULONGEST.
3514 (dwarf_expr_fetch): Change return type to ULONGEST.
3515 (dwarf_expr_fetch_address): Add prototype.
3516 (dwarf2_read_address): Remove prototype.
3517 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3518 Truncate stack values to ctx->addr_size bytes.
3519 (dwarf_expr_fetch): Change return value to ULONGEST.
3520 (dwarf_expr_fetch_address): New function.
3521 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3522 when appropriate. Update for struct dwarf_expr_piece changes.
3523 (dwarf2_read_address): Remove.
3524 (unsigned_address_type): Remove.
3525 (signed_address_type): Remove.
3526 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3527 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3528 values. Perform operations on ULONGEST instead of on GDB values,
3529 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3530 values and DW_OP_deref results as unsigned integers.
3531 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3532 changes.
3533 (write_pieced_value): Likewise.
3534 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3535 dwarf_expr_fetch when appropriate.
3536 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3537 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3538 instead of dwarf_expr_fetch when appropriate.
3539
b1d61bc9
PM
35402010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3541
3542 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3543
b14285f6
JB
35442010-06-24 Joel Brobecker <brobecker@adacore.com>
3545
3546 * python/python.c (_initialize_python): Add new "constant"
3547 PYTHONDIR in gdb module. Insert this path at the head of
3548 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3549 exec its __init__.py script if it exists in that directory.
3550
fd60dc69
KB
35512010-06-24 Kevin Buettner <kevinb@redhat.com>
3552
3553 * rx-tdep.c (RX_ACC_REGNUM): Define.
3554 (RX_NUM_REGS): Redefine to 26.
3555 (rx_register_name): Add register "acc". Change order of several
3556 registers. Change name of "vct" register to "fintv" to match RX
3557 documentation.
3558 (rx_register_type): Add case for RX_ACC_REGNUM.
3559
18430289
TT
35602010-06-24 Tom Tromey <tromey@redhat.com>
3561
3562 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3563
40618926
JK
35642010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3565 Tom Tromey <tromey@redhat.com>
3566
3567 Fix GDB startup on readonly filesystem.
3568 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3569
628fe4e4
JK
35702010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3571 Pedro Alves <pedro@codesourcery.com>
3572
3573 Fix PR 9436.
3574 * breakpoint.c (handle_jit_event): New function.
3575 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3576 jit, err, table and bs_class. New variables shlib_event, jit_event,
3577 this_action and bptype. Change bs_class assignments to this_action
3578 assignments. new unhandled bptype internal error. Move here
3579 shlib_event and jit_event handling from handle_inferior_event.
3580 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3581 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3582 BPSTAT_WHAT_CHECK_JIT.
3583 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3584 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3585 (handle_inferior_event): Reinitialize frame and gdbarch after
3586 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3587 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3588 gdbarch when frame gets reinitialized.
3589
f1421989
HZ
35902010-06-24 Hui Zhu <teawater@gmail.com>
3591
3592 * printcmd.c (ui_printf): New function.
3593 (printf_command): Call ui_printf.
3594 (_initialize_printcmd): New command "eval".
3595
d03285ec
UW
35962010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3597
3598 * infrun.c (handle_inferior_event): Handle presence of single-step
3599 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3600 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3601 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3602 * breakpoint.c (detach_single_step_breakpoints): New function.
3603 (detach_breakpoints): Call it.
3604 (cancel_single_step_breakpoints): New function.
3605 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3606
3607 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3608 (spu_gdbarch_init): Install it.
3609
38f6b338
JK
36102010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3611
3612 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3613 * configure: Regenerate.
3614
bb08c432
HZ
36152010-06-22 Hui Zhu <teawater@gmail.com>
3616
3617 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3618 (i386_process_record): Ditto.
3619 * record.c (record_memory_query): New variable.
3620 (_initialize_record): New command "set record memory-query".
3621 * record.h (record_memory_query): New extern.
3622
b55078be
DE
36232010-06-21 Doug Evans <dje@google.com>
3624
3625 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3626 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3627 (i386_syscall_p): Change type of lengthp to int.
3628 (i386_displaced_step_fixup): Handle kernels that run one past a
3629 syscall insn.
3630 * i386-linux-tdep.c (i386_linux_init_abi): Use
3631 i386_displaced_step_copy_insn instead of
3632 simple_displaced_step_copy_insn.
3633
75079b2b
TT
36342010-06-21 Tom Tromey <tromey@redhat.com>
3635
3636 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3637 (dwarf_type_encoding_name): Likewise.
3638
b00fdb78
TT
36392010-06-21 Tom Tromey <tromey@redhat.com>
3640
3641 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3642 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3643 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3644 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3645 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3646 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3647 * dwarf2read.c (tag_type_to_type): Create a new error type on
3648 failure.
3649 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3650 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3651
84951ab5
MS
36522010-06-21 Michael Snyder <msnyder@vmware.com>
3653
889bf7c5 3654 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
3655 not add_abbrev_prefix_cmd, for "enable breakpoints".
3656
d4a087c7
UW
36572010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3658
3659 * dwarf2loc.c (find_location_expression): Add relocation offset
3660 to base-address-selection entry base addresses. Read addresses
3661 (and offsets) as signed/unsigned integers, depending on the
3662 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3663 (loclist_describe_location): Likewise.
3664 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3665 unsigned integer. Do not call dwarf2_read_address.
3666 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3667
13def385
UW
36682010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3669
3670 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3671 value instead of hard-coded SPU_LS_SIZE.
3672 (spu_software_single_step): Likewise.
3673 * spu-tdep.h (SPU_LS_SIZE): Remove.
3674
d2ed6730
UW
36752010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3676
3677 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3678 limit on local store memory accesses.
3679 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3680 * spu-tdep.c (spu_lslr): Remove.
3681 (spu_pointer_to_address): Do not truncate addresses.
3682 (spu_integer_to_address): Likewise.
3683 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3684 * spu-tdep.h: Add comments.
3685 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3686 (SPU_OVERLAY_LMA): Define.
3687
6aed2dbc
SS
36882010-06-18 Stan Shebs <stan@codesourcery.com>
3689
a61408f8
SS
3690 * osdata.c (get_osdata): Warn separately if target does not report
3691 type list.
3692 (info_osdata_command): Allow empty type, report error if target
3693 does not return available types of OS data.
3694 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3695 types if no annex supplied.
3696
6aed2dbc
SS
3697 * thread.c (thread_id_make_value): Make a value representing the
3698 current thread.
3699 (_initialize_thread): Create $_thread.
3700
ec61707d
JB
37012010-06-17 Joel Brobecker <brobecker@adacore.com>
3702
3703 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3704 last local variable declaration. No real code change.
3705
60606b2c
TT
37062010-06-17 Tom Tromey <tromey@redhat.com>
3707
3708 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3709 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3710 temporary obstack.
3711
65d79d4b
SDJ
37122010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3713 Jan Kratochvil <jan.kratochvil@redhat.com>
3714
3715 * breakpoint.c: Include parser-defs.h.
3716 (watchpoint_exp_is_const): New function.
3717 (watch_command_1): Call watchpoint_exp_is_const to check
3718 if the expression is constant.
3719
0407b3f1
AS
37202010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3721
3722 * configure.ac: Check for RDYNAMIC also for cross builds.
3723 * configure: Regenerate.
3724
98d64339
PA
37252010-06-15 Pedro Alves <pedro@codesourcery.com>
3726
3727 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3728 (SFILES): Remove solib-null.c, add solib-target.c.
3729 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3730 (ALLDEPFILES): Remove solib-target.c.
3731 * solib-target.c (_initialize_solib_target): Set
3732 current_target_so_ops to solib_target_so_ops if not already set.
3733 * solib-null.c: Delete.
3734
6a271cae
PA
37352010-06-14 Pedro Alves <pedro@codesourcery.com>
3736
3737 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3738 bytecode.
3739
1e9beacb
UW
37402010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3741
3742 * cp-valprint.c (cp_print_static_field): Members of
3743 dont_print_stat_array_obstack are of type "struct type *".
3744 (_initialize_cp_valprint): Likewise.
3745
21a176fb
UW
37462010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3747
3748 * frame.c (frame_register_unwind): Do not access contents
3749 of "optimized out" unwound register value.
3750
25b524e8
JK
37512010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3752
3753 * ada-lang.h (ada_print_type): Make varstring const.
3754 * ada-typeprint.c (print_func_type): Make name const.
3755 (ada_print_type): Make varstring const.
3756 * c-lang.h (c_print_type): Make varstring const.
3757 * c-typeprint.c (c_print_type): Likewise.
3758 * f-lang.h (f_print_type): Likewise.
3759 * f-typeprint.c (f_print_type): Likewise.
3760 * jv-lang.h (java_print_type): Likewise.
3761 * jv-typeprint.c (java_print_type): Likewise.
3762 * language.c (unk_lang_print_type): Likewise.
3763 * language.h (struct language_defn) <la_print_type>: Likewise.
3764 * m2-lang.h (m2_print_type): Likewise.
3765 * m2-typeprint.c (m2_print_type): Likewise.
3766 * p-lang.h (pascal_print_type): Likewise.
3767 * p-typeprint.c (pascal_print_type): Likewise.
3768
d914c394
SS
37692010-06-11 Stan Shebs <stan@codesourcery.com>
3770
3771 Add per-operation permission flags.
3772
3773 * target.h (struct target_ops): New method to_set_permissions.
3774 (target_set_permissions): New macro.
3775 (target_insert_breakpoint): Change macro to function.
3776 (target_remove_breakpoint): Ditto.
3777 (target_stop): Ditto.
3778 (may_write_registers): Declare.
3779 (may_write_memory): Declare.
3780 (may_insert_breakpoints): Declare.
3781 (may_insert_tracepoints): Declare.
3782 (may_insert_fast_tracepoints): Declare.
3783 (may_stop): Declare.
3784 * target.c (may_write_registers, may_write_registers_1): New globals.
3785 (may_write_memory, may_write_memory_1): New globals.
3786 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3787 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3788 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3789 globals.
3790 (may_stop, may_stop_1): New global.
3791 (target_xfer_partial): Test for write permission.
3792 (target_store_registers): Ditto.
3793 (target_insert_breakpoint): New function.
3794 (target_remove_breakpoint): New function.
3795 (target_stop): New function.
3796 (_initialize_targets): Add new set/show variables.
3797 (set_write_memory_permission): New function.
3798 (update_target_permissions): New function.
3799 (set_target_permissions): New function.
3800 (update_current_target): Default to_set_permissions.
3801 (_initialize_targets): Use new globals and setter function.
3802 * tracepoint.c (start_tracing): Test for permission.
3803 * inferior.h (update_observer_mode): Declare.
3804 * infrun.c (non_stop_1): Define earlier.
3805 (observer_mode, observer_mode_1): New globals.
3806 (set_observer_mode, show_observer_mode): New functions.
3807 (update_observer_mode): New function.
3808 (_initialize_infrun): Define "set observer" command.
3809 * remote.c (PACKET_QAllow): New optional packet.
3810 (remote_protocol_features): Add QAllow.
3811 (remote_set_permissions): New function.
3812 (remote_start_remote): Call it.
3813 (init_remote_ops): Add it to target vector.
3814 (_initialize_remote): Add config command for QAllow.
3815
aec5aa8b
TT
38162010-06-11 Tom Tromey <tromey@redhat.com>
3817
3818 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3819 DW_AT_vtable_elem_location even when GCC extension is seen.
3820
0e03807e
TT
38212010-06-11 Tom Tromey <tromey@redhat.com>
3822
3823 PR gdb/9977, PR exp/11636:
3824 * value.h (value_offset): Update.
3825 (struct lval_funcs) <check_validity>: New field.
3826 <copy_closure>: Make argument const.
3827 (value_computed_closure): Update.
3828 (value_contents_for_printing): Declare.
3829 (value_bits_valid): Likewise.
3830 (val_print): Likewise.
3831 (set_value_component_location): Update.
3832 (value_entirely_optimized_out): Declare.
3833 * value.c (value_offset): Argument now const.
3834 (require_not_optimized_out): New function.
3835 (value_contents_for_printing): New function.
3836 (value_contents_all): Call require_not_optimized_out.
3837 (value_contents): Likewise.
3838 (value_bits_valid): New function.
3839 (value_computed_closure): Argument now const.
3840 (set_value_component_location): Make 'whole' argument const.
3841 (value_entirely_optimized_out): New function.
3842 (value_bitsize): Argument now 'const'.
3843 (value_bitpos): Likewise.
3844 (value_type): Likewise.
3845 * valprint.h (val_print_array_elements): Update.
3846 * valprint.c (val_print): Add 'val' argument. Use
3847 valprint_check_validity.
3848 (valprint_check_validity): New function.
3849 (value_check_printable): Use value_entirely_optimized_out.
3850 (common_val_print): Update.
3851 (value_print): Likewise.
3852 (val_print_array_elements): Add 'val' argument.
3853 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3854 value_bits_valid. Reinit frame cache for lval_computed.
3855 * sh64-tdep.c (sh64_do_register): Update.
3856 * scm-valprint.c (scm_val_print): Add 'val' argument.
3857 * scm-lang.h (scm_val_print): Update.
3858 * python/python.h (apply_val_pretty_printer): Update.
3859 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3860 argument. Call set_value_component_location.
3861 * printcmd.c (print_scalar_formatted): Update.
3862 * p-valprint.c (pascal_val_print): Add 'val' argument.
3863 (pascal_object_print_value_fields): Likewise.
3864 (pascal_object_print_value): Likewise.
3865 (pascal_object_print_static_field): Update.
3866 * p-lang.h (pascal_val_print): Update.
3867 (pascal_object_print_value_fields): Update.
3868 * mt-tdep.c (mt_registers_info): Update.
3869 * mi/mi-main.c (get_register): Update.
3870 (mi_cmd_data_evaluate_expression): Use common_val_print.
3871 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3872 (m2_print_unbounded_array): Likewise.
3873 (m2_val_print): Likewise.
3874 * m2-lang.h (m2_val_print): Update.
3875 * language.h (struct language_defn) <la_val_print>: Add 'val'
3876 argument.
3877 (LA_VAL_PRINT): Likewise.
3878 * language.c (unk_lang_val_print): Add 'val' argument.
3879 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3880 (java_val_print): Likewise.
3881 * jv-lang.h (java_val_print): Add 'val' argument.
3882 * infcmd.c (default_print_registers_info): Update.
3883 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3884 (f77_print_array): Likewise.
3885 (f_val_print): Likewise.
3886 * f-lang.h (f_val_print): Add 'val' argument.
3887 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3888 value_bitpos.
3889 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3890 set_value_optimized_out.
3891 (write_pieced_value): Use value_bitsize and value_bitpos.
3892 <default>: Don't exit loop.
3893 (check_pieced_value_validity): New function.
3894 (pieced_value_funcs): Reference check_pieced_value_validity,
3895 check_pieced_value_invalid.
3896 (copy_pieced_value_closure): Update.
3897 (check_pieced_value_bits): New function.
3898 (check_pieced_value_invalid): New function.
3899 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3900 (d_val_print): Likewise.
3901 * d-lang.h (d_val_print): Update.
3902 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3903 (cp_print_value_fields_rtti): Likewise.
3904 (cp_print_value): Likewise.
3905 (cp_print_static_field): Update.
3906 * c-valprint.c (c_val_print): Add 'val' argument.
3907 (c_value_print): Update.
3908 * c-lang.h (c_val_print): Update.
3909 (cp_print_value_fields): Likewise.
3910 (cp_print_value_fields_rtti): Likewise.
3911 * ada-valprint.c (struct ada_val_print_args): Remove.
3912 (val_print_packed_array_elements): Add 'val' argument.
3913 (ada_val_print): Likewise. Rewrite.
3914 (ada_val_print_stub): Remove.
3915 (ada_val_print_array): Add 'val' argument.
3916 (ada_val_print_1): Likewise.
3917 (print_variant_part): Likewise.
3918 (ada_value_print): Update.
3919 (print_record): Add 'val' argument.
3920 (print_field_values): Likewise.
3921 * ada-lang.h (ada_val_print): Update.
3922
3cf03773
TT
39232010-06-11 Tom Tromey <tromey@redhat.com>
3924
3925 * vec.h (VEC_cleanup): New macro.
3926 (DEF_VEC_ALLOC_FUNC_I): Update.
3927 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3928 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3929 * dwarf2loc.c (struct axs_var_loc): Remove.
3930 (unimplemented): New function.
3931 (translate_register): Likewise.
3932 (access_memory): Likewise.
3933 (compile_dwarf_to_ax): Likewise.
3934 (dwarf2_tracepoint_var_loc): Remove.
3935 (dwarf2_tracepoint_var_access): Likewise.
3936 (dwarf2_tracepoint_var_ref): Likewise.
3937 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3938 (loclist_tracepoint_var_ref): Likewise.
3939 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3940 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3941 require_composition. No longer static.
3942 (execute_stack_op): Update.
3943 * ax-gdb.h (trace_kludge): Declare.
3944
2bdf28a0
JK
39452010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3946
3947 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3948 (should_be_inserted): Return zero also on NULL OWNER.
3949 (breakpoint_program_space_exit): New OWNER comment.
3950 (insert_breakpoint_locations): Extend comment for OWNER.
3951 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3952 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3953 New OWNER comment.
3954 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3955 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3956 (bpstat_check_location): New assert on OWNER.
3957 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3958 and B initializations to the code block. New assert on them.
3959 (print_one_breakpoint_location): New OWNER comment.
3960 (watchpoint_locations_match): Assert on OWNER.
3961 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3962 initializations to the code block. New assert on OWNER.
3963 (set_breakpoint_location_function): New assert on OWNER.
3964 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3965 (bp_location_compare, update_global_location_list)
3966 (update_global_location_list): New OWNER comment.
3967
5b9a19af
UW
39682010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3969
3970 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3971
669211f5
UW
39722010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3973
3974 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3975 (lin_thread_get_thread_signals): Remove prototype.
3976 (GET_THREAD_SIGNALS): Remove.
3977 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3978 * linux-thread-db.c (check_thread_signals): Directly call
3979 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3980
b7a8b4ef
UW
39812010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3982
3983 * gregset.h (GDB_FPXREGSET_T): Remove.
3984 (gdb_fpxregset_t): Likewise.
3985 (supply_fpxregset): Remove prototype.
3986 (fill_fpxregset): Likewise.
3987 * i386-linux-nat.c (supply_fpxregset): Remove.
3988 (fill_fpxregset): Likewise.
3989 (fetch_fpxregs): Inline supply_fpxregset call.
3990 (store_fpxregs): Inline fill_fpxregset call.
3991
3992 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3993 * config/i386/nm-linux.h: Remove file.
3994
82892036
MS
39952010-06-09 Michael Snyder <msnyder@vmware.com>
3996
3997 * target.c (update_current_target): Fix spelling error in comment.
3998 (target_mourn_inferior): Fix spelling error in error message.
3999
5ddb52fa
PH
40002010-06-08 Paul Hilfinger <hilfingr@adacore.com>
4001
4002 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
4003 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
4004
0f2caa1b
MS
40052010-06-08 Michael Snyder <msnyder@vmware.com>
4006
4007 * remote.c (remote_close): Set inferior_ptid to null_ptid.
4008
3bebe2f2
JK
40092010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4010
4011 * configure.ac <"${have_libpython}" != no>: New workaround of
4012 python#4434.
4013 * configure: Regenerate.
4014
eaaffdf4
HZ
40152010-06-08 Hui Zhu <teawater@gmail.com>
4016
4017 * record.c (record_wait): Move signal out of replay code.
4018
5c631832
JK
40192010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4020
4021 Fix PR 10640.
4022 * dwarf2-frame.c (no_dwarf_call): New function.
4023 (execute_stack_op): Set CTX->DWARF_CALL.
4024 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4025 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4026 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4027 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4028 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4029 (needs_frame_dwarf_call): New function.
4030 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4031 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4032 Update the comment. Move variables die, offset and error call to ...
4033 (follow_die_ref): ... a new function.
4034 (dwarf2_fetch_die_location_block): New function.
4035 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4036
17ea53c3
JK
40372010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4038
4039 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4040 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4041 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4042 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4043 this change.
4044 (struct needs_frame_baton): New field per_cu.
4045 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4046 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4047
245040d7
SW
40482010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4049
4050 * cp-support.c (make_symbol_overload_list_namespace): Only search
4051 static and global blocks.
4052 (make_symbol_overload_list_block): New function.
4053 (make_symbol_overload_list): Separate namespace search from block
4054 search.
4055 (make_symbol_overload_list_qualified): Use
4056 make_symbol_overload_list_block.
4057
4c3376c8
SW
40582010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4059
4060 * value.h: Created oload_search_type enum.
4061 (find_overload_match): Use oload_search_type enum.
4062 * valops.c (find_overload_match): Support combined member and
4063 non-member search.
4064 * eval.c (evaluate_subexp_standard): Calls to
4065 find_overload_match now use oload_search_type enum.
4066 (oload_method_static): Verify index is a proper value.
4067 * valarith.c (value_user_defined_cpp_op): Search for and handle
4068 both member and non-member operators.
4069 (value_user_defined_cpp_op): New function.
4070 (value_user_defined_op): New function.
4071 (value_x_unop): Use value_user_defined_op.
4072 (value_x_binop): Ditto.
4073 * cp-support.c (make_symbol_overload_list_using): Added block
4074 iteration.
4075 Add check for namespace aliases and imported declarations.
4076
ee55da67
JK
40772010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4078
4079 * breakpoint.h (owner): Extend the comment.
4080
1a2ab13a
JK
40812010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4082
4083 Clear stale specific bp_location from former whole breakpoint.
4084 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4085 code ...
4086 (free_bp_location): ... here. Rename there the called function to
4087 bpstat_remove_bp_location_callback.
4088 (bpstat_remove_breakpoint_callback): Rename to ...
4089 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4090 to struct bp_location. Change the called function to
4091 bpstat_remove_bp_location. Create new declaration for the function.
4092 (bpstat_remove_breakpoint): Rename to ...
4093 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4094 code for the new parameter type.
4095
16d6b4b7
NS
40962010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4097
4098 * README: Make version-agnostic.
4099
7e314c57
JK
41002010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4101
4102 Fix duplicate types for single DIE.
4103 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4104 set_die_type.
4105 (read_array_type): Remove type initialization. Recheck get_die_type
4106 after initial die_type. Move set_die_type before set_descriptive_type.
4107 (read_set_type): New variable domain_type. Recheck get_die_type after
4108 initial die_type. Move attr initialization later.
4109 (read_tag_pointer_type, read_tag_reference_type): New variable
4110 target_type. Recheck get_die_type after initial die_type.
4111 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4112 die_type and die_containing_type.
4113 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4114 Recheck get_die_type after initial die_type.
4115 (read_subrange_type): Recheck get_die_type after initial die_type.
4116 Move set_die_type before set_descriptive_type.
4117 (set_die_type): Extend the function comment. Call complaint if DIE has
4118 some type already set.
4119
2f296114
VP
41202010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4121
4122 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4123 for current naming of thread groups (iN, not N).
4124
554794dc
SDJ
41252010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4126
4127 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4128 * parse.c (operator_length): Likewise.
4129 (operator_length_standard): Likewise.
4130 * parser-defs.h (operator_length): Likewise.
4131 (operator_length_standard): Likewise.
4132 (struct exp_descriptor <operator_length>): Likewise.
4133
967cf477
DE
41342010-06-04 Doug Evans <dje@google.com>
4135
bddaacb9 4136 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4137 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4138 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4139 * python/python.c (gdbpy_enabled_cst): Define.
4140 (_initialize_python): Initialize gdbpy_enabled_cst.
4141 * NEWS: Add entry.
4142
2dec564e
JK
41432010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4144
4145 * breakpoint.c (update_global_location_list): Fix comment typo.
4146
44b5680a
HZ
41472010-06-04 Hui Zhu <teawater@gmail.com>
4148
4149 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4150
e7a30f46
DE
41512010-06-03 Doug Evans <dje@google.com>
4152
4153 * configure.ac: Don't fail if python is unusable when
4154 configured with --with-python=auto.
4155 * configure: Regenerate.
4156
84b4420f
SW
41572010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4158
889bf7c5 4159 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4160
df178451
PM
41612010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4162
4163 * valprint.h (get_array_bounds): Change low and high parameter types
4164 to LONGEST *.
0407b3f1 4165 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4166 compute bounds.
4167 (val_print_array_elements): Adapt to change above.
4168 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4169 * p-valprint.c (pascal_val_print): Likewise.
4170
fd5700c7
JK
41712010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4172
4173 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4174 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4175 .F08.
4176
f55ee35c
JK
41772010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4178
4179 Support DW_TAG_module as separate namespaces.
4180 * dwarf2read.c (typename_concat): New parameter physname.
4181 (read_module_type): New function and declaration.
4182 (scan_partial_symbols): Scan also DW_TAG_module children.
4183 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4184 to typename_concat backward compatible physname value 0.
4185 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4186 backward compatible physname value 0.
4187 (add_partial_module, read_module): Remove FIXME comment.
4188 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4189 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4190 DIEs under DW_TAG_module.
4191 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4192 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4193 && physname and return there instead of just setting NAME. Extend
4194 the main block for language_fortran. Pass physname parameter to the
4195 typename_concat call.
4196 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4197 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4198 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4199 missing from SYMBOL_SET_NAMES in the language_fortran case.
4200 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4201 variables.
4202 (read_type_die) <DW_TAG_module>: New.
4203 (MAX_SEP_LEN): Increase to 7.
4204 (typename_concat): New parameter physname. New variable lead. Support
4205 also language_fortran.
4206 * f-exp.y (yylex): Consider : also as a symbol name character class.
4207 * f-lang.c: Include cp-support.h.
4208 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4209 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4210 f_word_break_characters and f_make_symbol_completion_list.
4211 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4212 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4213 * symtab.c (symbol_init_language_specific): Support language_fortran.
4214 (symbol_find_demangled_name): New comment on language_fortran.
4215 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4216 for language_fortran.
4217 (lookup_symbol_aux_local): Check imports also for language_fortran.
4218 (default_make_symbol_completion_list): Rename to ...
4219 (default_make_symbol_completion_list_break_on): ... this name. New
4220 parameter break_on, use it.
4221 (default_make_symbol_completion_list): New stub.
4222 * symtab.h (default_make_symbol_completion_list_break_on): New
4223 prototype.
4224
cb91c06a
JB
42252010-06-02 Joel Brobecker <brobecker@adacore.com>
4226
4227 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4228 to error.
4229
5c315b68
JK
42302010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4231
4232 * dwarf2read.c (typename_concat): Add const to the variable sep.
4233
9eae7c52
TT
42342010-06-02 Tom Tromey <tromey@redhat.com>
4235
4236 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4237 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4238 type is const. Add 'def' argument. Add missing operators, remove
4239 unhandled ones.
4240 (decode_locdesc): Update.
4241 (dwarf2_always_disassemble): New global.
4242 (show_dwarf2_always_disassemble): New function.
4243 (_initialize_dwarf2_read): Add always-disassemble.
4244 (dwarf2_per_cu_offset_size): New function.
4245 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4246 (piece_end_p): New function.
4247 (locexpr_describe_location_piece): Replace 'size' argument with
4248 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4249 some constants. Remove errors.
4250 (disassemble_dwarf_expression): New function.
4251 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4252 Add 'offset_size' argument.
4253 (loclist_describe_location): Change output formatting.
4254 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4255
7d3fe98e
SW
42562010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4257
4258 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4259 anonymous type case.
4260
e77813c8
PM
42612010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4262
4263 * dwarf2read.c (read_subrange_type): Handle missing base type
4264 according to Dwarf-2 specifications.
4265
7cf3118a
SDJ
42662010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4267
4268 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4269 BINOP_EXCL.
4270 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4271 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4272 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4273 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4274 UNOP_CHMAX, UNOP_CHMIN.
4275 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4276 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4277 UNOP_CHMIN>: Remove opcodes.
4278
ae4d0c03
PM
42792010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4280
4281 * dwarf2read.c (read_func_scope): Do not complain for
4282 external function if bounds are not found.
4283
fa593d66
PA
42842010-06-01 Pedro Alves <pedro@codesourcery.com>
4285
4286 * NEWS: Mention gdbserver fast tracepoints support.
4287
cd44747c
PM
42882010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4289
4290 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4291 New macros.
4292 (windows_set_console_info): New function.
4293 (windows_create_inferior): Call windows_set_console_info
4294 if NEW_CONSOLE is true.
4295 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4296 (_initialize_loadable): Initialize GetConsoleFontSize and
4297 GetCurrentConsoleFont.
4298
f6528abd
JK
42992010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4300
4301 * Makefile.in (RDYNAMIC): New.
4302 (SFILES): Add proc-service.list.
4303 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4304 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4305 * config/arm/linux.mh: Likewise.
4306 * config/i386/linux.mh: Likewise.
4307 * config/i386/linux64.mh: Likewise.
4308 * config/ia64/linux.mh: Likewise.
4309 * config/m32r/linux.mh: Likewise.
4310 * config/m68k/linux.mh: Likewise.
4311 * config/mips/linux.mh: Likewise.
4312 * config/pa/linux.mh: Likewise.
4313 * config/powerpc/linux.mh: Likewise.
4314 * config/powerpc/ppc64-linux.mh: Likewise.
4315 * config/s390/s390.mh: Likewise.
4316 * config/sparc/linux.mh: Likewise.
4317 * config/sparc/linux64.mh: Likewise.
4318 * config/xtensa/linux.mh: Likewise.
4319 * configure.ac: New RDYNAMIC on native host and GCC.
4320 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4321 * configure: Regenerate.
4322 * proc-service.list: New.
4323
ca2a87a0
JK
43242010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4325
4326 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4327 CONTENT.
4328
1e225492
JK
43292010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4330
4331 * linux-nat.c (linux_nat_wait_1): Do not call
4332 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4333 TARGET_WAITKIND_SIGNALLED.
4334
e802dbe0
JB
43352010-05-27 Joel Brobecker <brobecker@adacore.com>
4336
4337 * ada-lang.c (ada_inferior_data): New struct.
4338 (ada_inferior_data): New static global.
4339 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4340 (ada_get_tsd_type): New functions.
4341 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4342 to look the tsd type up.
4343 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4344 event. Set ada_inferior_data.
4345
176a6961
PA
43462010-05-27 Pedro Alves <pedro@codesourcery.com>
4347
4348 * remote.c (unpack_varlen_hex): Remove forward declaration.
4349 (remote_console_output): Make static, and add forward declaration.
4350 * remote.h: Drop FIXME comment.
4351 (unpack_varlen_hex): Declare.
4352 (remote_console_output, remote_cisco_objfile_relocate)
4353 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4354 Delete declarations.
4355 * tracepoint.c: Include "remote.h".
4356 (unpack_varlen_hex): Delete declaration.
4357
88bfdde4
TT
43582010-05-27 Tom Tromey <tromey@redhat.com>
4359
4360 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4361 (allocate_piece_closure): Initialize refc.
4362 (copy_pieced_value_closure): Use refc.
4363 (free_pieced_value_closure): Likewise.
4364
8c6363cf
TT
43652010-05-27 Tom Tromey <tromey@redhat.com>
4366
4367 * arm-tdep.c (push_stack_item): 'contents' now const.
4368 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4369 value_contents_writeable. Introduce new temporary.
4370
7ecb917e
TT
43712010-05-27 Tom Tromey <tromey@redhat.com>
4372
4373 * findcmd.c (parse_find_args): Use value_contents, not
4374 value_contents_raw.
4375
f42a0a33
TT
43762010-05-27 Tom Tromey <tromey@redhat.com>
4377
4378 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4379 const. Use value_contents, not value_contents_writeable.
4380
12b795ad
JB
43812010-05-27 Joel Brobecker <brobecker@adacore.com>
4382
4383 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4384 by call to value_contents.
4385
5a2e11c7
OS
43862010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4387
4388 * MAINTAINERS: Add myself for write after approval privileges.
4389
ec685c5e
DE
43902010-05-26 Doug Evans <dje@google.com>
4391
0c4a4063
DE
4392 Allow python to find its files if moved from original location.
4393 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4394 (GDB_AC_WITH_DIR): Call it.
4395 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4396 python installation directory.
4397 * config.in: Regenerate.
4398 * configure: Regenerate.
4399 * defs.h (python_libdir): Declare.
4400 * main.c (python_libdir): Define.
4401 (captured_main): Initialize python_libdir.
4402 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4403 call Py_SetProgramName to make sure python can find its libraries
4404 and modules.
4405
ec685c5e
DE
4406 * configure.ac: Try to use python's distutils to fetch compilation
4407 parameters.
4408 * configure: Regenerate.
4409 * python/python-config.py: New file.
4410
363a6e9f
OS
44112010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4412
4413 * ser-tcp.c (net_open): Check error return from socket() call by its
4414 equality to -1 not by it being negative.
4415 (net_close): Likewise.
4416
dde08ee1
PA
44172010-05-26 Pedro Alves <pedro@codesourcery.com>
4418
4419 * NEWS: Mention the `qRelocInsn' feature.
4420 * gdbarch.sh (relocate_instruction): New.
4421 * amd64-tdep.c (rip_relative_offset): New.
4422 (append_insns): New.
4423 (amd64_relocate_instruction): New.
4424 (amd64_init_abi): Install it.
4425 * i386-tdep.c (append_insns): New.
4426 (i386_relocate_instruction): New.
4427 (i386_gdbarch_init): Install it.
4428 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4429 * gdbarch.h, gdbarch.c: Regenerate.
4430
947bb88f
TT
44312010-05-26 Tom Tromey <tromey@redhat.com>
4432
4433 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4434 (struct dwarf2_loclist_baton) <data>: Likewise.
4435 * dwarf2loc.c (find_location_expression): Constify return type.
4436 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4437 (dwarf2_loc_desc_needs_frame): Likewise.
4438 (loclist_read_variable): Constify.
4439 (loclist_describe_location): Likewise.
4440 (loclist_tracepoint_var_ref): Likewise.
4441
0d45f56e
TT
44422010-05-25 Tom Tromey <tromey@redhat.com>
4443
4444 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4445 (dwarf_expr_frame_base_1): Likewise.
4446 (read_pieced_value): Update.
4447 (needs_frame_frame_base): Constify.
4448 (dwarf2_tracepoint_var_loc): Likewise.
4449 (dwarf2_tracepoint_var_access): Likewise.
4450 (locexpr_describe_location_piece): Likewise.
4451 (locexpr_describe_location_1): Likewise.
4452 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4453 Constify.
4454 (data): Now const.
4455 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4456 (dwarf_expr_eval, read_uleb128, read_sleb128)
4457 (dwarf2_read_address): Update.
4458 * dwarf2expr.c (dwarf_expr_eval): Constify.
4459 (read_uleb128): Likewise.
4460 (read_sleb128): Likewise.
4461 (dwarf2_read_address): Likewise.
4462 (require_composition): Likewise.
4463 (execute_stack_op): Likewise.
4464 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4465 "const gdb_byte *".
4466 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4467 Now const.
4468 (no_get_frame_base): Constify.
4469 (execute_stack_op): Likewise.
4470 (execute_cfa_program): Likewise.
4471 (read_encoded_value): Likewise.
4472
07ca107c
DE
44732010-05-25 Doug Evans <dje@google.com>
4474
e34838f0
DE
4475 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4476
01f69b38
DE
4477 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4478 * event-loop.c: ... here.
4479 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4480 `error' for clarity.
4481 (tui_getc): Pass correct value for `error' parameter to
4482 tui_readline_output.
4483
07ca107c
DE
4484 Add python gdb.GdbError and gdb.string_to_argv.
4485 * NEWS: Document them.
4486 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4487 the exception is gdb.GdbError. Print a second traceback if there's
4488 an error computing the error message.
4489 (gdbpy_string_to_argv): New function.
4490 * python/py-utils.c (gdbpy_obj_to_string): New function.
4491 (gdbpy_exception_to_string): New function.
4492 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4493 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4494 (gdbpy_gdberror_exc): Declare.
4495 * python/python.c (gdbpy_gdberror_exc): New global.
4496 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4497 gdb.GdbError.
4498 (GdbMethods): Add string_to_argv.
4499
5572ce1f
PM
45002010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4501
4502 * windows-nat.c (display_selector): Call GetLastError to give better
4503 failure explanation.
4504
acd5838a
PA
45052010-05-24 Pedro Alves <pedro@codesourcery.com>
4506
4507 * config.in: Regenerate.
4508
b26a4dcb
JK
45092010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4510
4511 Code cleanup.
4512 * target.c (push_target): Return only void. Remove the return value
4513 comment.
4514 * target.h (push_target): Return only void.
4515
f434ba03
PA
45162010-05-23 Pedro Alves <pedro@codesourcery.com>
4517
4518 Update gnulib from latest git.
4519 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4520
4521 * gnulib/memcmp.c: Removed.
4522 * gnulib/memchr.valgrind: New.
4523 * gnulib/stddef.in.h: New.
4524 * gnulib/Makefile.am: Updated.
4525 * gnulib/memchr.c: Updated.
4526 * gnulib/memmem.c: Updated.
4527 * gnulib/stdint.in.h: Updated.
4528 * gnulib/str-two-way.h: Updated.
4529 * gnulib/string.in.h: Updated.
4530 * gnulib/wchar.in.h: Updated.
4531
4532 * gnulib/extra/link-warning.h: Removed.
4533 * gnulib/extra/c++defs.h: New.
4534 * gnulib/extra/warn-on-use.h: New.
4535 * gnulib/extra/arg-nonnull.h: Updated.
4536
4537 * gnulib/m4/extensions.m4: Updated.
4538 * gnulib/m4/gnulib-cache.m4: Updated.
4539 * gnulib/m4/gnulib-common.m4: Updated.
4540 * gnulib/m4/gnulib-comp.m4: Updated.
4541 * gnulib/m4/gnulib-tool.m4: Updated.
4542 * gnulib/m4/include_next.m4: Updated.
4543 * gnulib/m4/longlong.m4: Updated.
4544 * gnulib/m4/memchr.m4: Updated.
4545 * gnulib/m4/memmem.m4: Updated.
4546 * gnulib/m4/stdint.m4: Updated.
4547 * gnulib/m4/string_h.m4: Updated.
4548 * gnulib/m4/memcmp.m4: Removed.
4549 * gnulib/m4/onceonly_2_57.m4: Removed.
4550 * gnulib/m4/00gnulib.m4: New.
4551 * gnulib/m4/mmap-anon.m4: New.
4552 * gnulib/m4/multiarch.m4: New.
4553 * gnulib/m4/onceonly.m4: New.
4554 * gnulib/m4/stddef_h.m4: New.
4555 * gnulib/m4/warn-on-use.m4: New.
4556 * gnulib/m4/wchar.m4: Removed.
4557 * gnulib/m4/wchar_h.m4: New.
4558 * gnulib/m4/wchar_t.m4: New.
4559 * gnulib/m4/wint_t.m4: New.
4560
4561 * aclocal.m4: Regenerate.
4562 * config.in: Likewise.
4563 * configure: Likewise.
4564 * gnulib/Makefile.in: Likewise.
4565
d3b1e874
TT
45662010-05-21 Tom Tromey <tromey@redhat.com>
4567
4568 * dwarf2loc.c (extract_bits_primitive): New function.
4569 (extract_bits): Likewise.
4570 (insert_bits): Likewise.
4571 (copy_bitwise): Likewise.
4572 (read_pieced_value): Do all operations in bits.
4573 (write_pieced_value): Likewise.
4574 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4575 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4576 Always use xrealloc to resize piece array.
4577 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4578 <DW_OP_piece>: Update.
4579 <DW_OP_bit_piece>: New case.
4580
cb826367
TT
45812010-05-21 Tom Tromey <tromey@redhat.com>
4582
4583 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4584 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4585 * dwarf2expr.h (enum dwarf_value_location)
4586 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4587 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4588 (add_piece): Handle empty piece.
4589 (execute_stack_op) <DW_OP_piece>: Handle
4590 DWARF_VALUE_OPTIMIZED_OUT.
4591
74de6778
TT
45922010-05-21 Tom Tromey <tromey@redhat.com>
4593
4594 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4595 evaluate_subexp, not evaluate_subexp_with_coercion.
4596
f346a30d
PM
45972010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4598
4599 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4600 attribute.
4601
afd74c5f
TT
46022010-05-21 Tom Tromey <tromey@redhat.com>
4603
4604 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4605 offset.
4606 (write_pieced_value): Likewise.
4607
90e7c2c5
PM
46082010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4609
4610 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4611 and DW_TAG_volatile_type.
4612 (new_symbol): Likewise.
4613
8148cf8d
PM
46142010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4615
4616 * p-valprint.c (pascal_val_print): Call get_array_bounds
4617 to obtain the number of elements in an array.
4618
3a1d4620
DE
46192010-05-19 Doug Evans <dje@google.com>
4620
0bf0f8c4
DE
4621 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4622
3a1d4620
DE
4623 * python.c (source_python_script): Add comment.
4624 (source_python_script_for_objfile): Remove unnecessary call to
4625 gdbpy_print_stack.
4626
dc21167c
JK
46272010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4628 Sergio Durigan Junior <sergiodj@redhat.com>
4629
4630 Code cleanup.
4631 * parse.c (exp_iterate): Use operator_length wrapper function.
4632
5b4ee69b
MS
46332010-05-18 Michael Snyder <msnyder@vmware.com>
4634
4635 * ada-lang.c: White space.
4636 * ada-typeprint.c: White space.
4637 * ada-valprint.c: White space.
4638 * addrmap.c: White space.
4639 * auxv.c: White space.
4640 * ax-gdb.c: White space.
4641
e17c9e56
HZ
46422010-05-18 Hui Zhu <teawater@gmail.com>
4643
4644 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4645 for oldfp.
4646 (inferior_call_waitpid): Move make_cleanup out of check.
4647 Check the return of waitpid.
4648 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4649
a109c7c1
MS
46502010-05-17 Michael Snyder <msnyder@vmware.com>
4651
1c5313c5
MS
4652 * tui/tui.c: White space.
4653 * tui/tui-data.c: White space.
4654 * tui/tui-disasm.c: White space.
4655 * tui/tui-file.c: White space.
4656 * tui/tui-interp.c: White space.
4657 * tui/tui-main.c: White space.
4658 * tui/tui-out.c: White space.
4659 * tui/tui-regs.c: White space.
4660 * tui/tui-source.c: White space.
4661 * tui/tui-stack.c: White space.
4662 * tui/tui-win.c: White space.
4663 * tui/tui-winsource.c: White space.
4664
f4a14ae6
MS
4665 * procfs.c: White space.
4666
d59b6f6c
MS
4667 * python/py-auto-load.c: White space.
4668 * python/py-block.c: White space.
4669 * python/py-breakpoint.c: White space.
4670 * python/py-cmd.c: White space.
4671 * python/py-function.c: White space.
4672 * python/py-lazy-string.c: White space.
4673 * python/py-objfile.c: White space.
4674 * python/py-param.c: White space.
4675 * python/py-prettyprint.c: White space.
4676 * python/py-progspace.c: White space.
4677 * python/py-symtab.c: White space.
4678 * python/python.c: White space.
4679 * python/py-type.c: White space.
4680 * python/py-utils.c: White space.
4681 * python/py-value.c: White space.
4682
102040f0
MS
4683 * mi/mi-cmd-break.c: White space.
4684 * mi/mi-cmd-env.c: White space.
4685 * mi/mi-cmds.c: White space.
4686 * mi/mi-cmd-stack.c: White space.
4687 * mi/mi-cmd-var.c: White space.
4688 * mi/mi-console.c: White space.
4689 * mi/mi-getopt.c: White space.
4690 * mi/mi-interp.c: White space.
4691 * mi/mi-main.c: White space.
4692 * mi/mi-out.c: White space.
4693 * mi/mi-parse.c: White space.
4694
cdb27c12
MS
4695 * cli/cli-cmds.c: White space.
4696 * cli/cli-decode.c: White space.
4697 * cli/cli-dump.c: White space.
4698 * cli/cli-interp.c: White space.
4699 * cli/cli-logging.c: White space.
4700 * cli/cli-script.c: White space.
4701 * cli/cli-setshow.c: White space.
4702
a109c7c1
MS
4703 * valarith.c: White space.
4704 * valops.c: White space.
4705 * valprint.c: White space.
4706 * value.c: White space.
4707 * varobj.c: White space.
4708 * xcoffread.c: White space.
4709 * xml-support.c: White space.
4710 * xml-tdesc.c: White space.
4711
3872d37d
AS
47122010-05-17 Andreas Schwab <schwab@redhat.com>
4713
4714 PR gdb/11092
4715 * c-lang.c (c_printstr): Compute real length of NUL terminated
4716 string at first.
4717
0cce5bd9
JB
47182010-05-17 Joel Brobecker <brobecker@adacore.com>
4719
4720 * parse.c (parse_exp_in_context): When block is not NULL, use
4721 its associated language to parse the expression instead of
4722 the current_language.
4723
5f19d646
JB
47242010-05-17 Joel Brobecker <brobecker@adacore.com>
4725
4726 * jv-lang.c (java_lookup_class): Remove commented out code.
4727 (type_from_class): Likewise.
4728 (java_op_print_tab): Remove commented-out elements.
4729
28c85d6c
JB
47302010-05-17 Joel Brobecker <brobecker@adacore.com>
4731
4732 * ada-lang.c (to_fixed_range_type): The the raw index type as
4733 argument instead of the raw type name. Remove orig_type parameter.
4734 Update calls throughout.
4735 (ada_fixup_array_indexes_type): New function.
4736 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4737 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4738 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4739 Remove name parameter.
4740 (print_array_type): Add call to ada_fixup_array_indexes_type.
4741 Update calls to print_range_type.
4742 (ada_print_type): Update calls to print_range_type.
4743
d09039dd
PM
47442010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4745
4746 * dwarf2read.c (read_set_type): Set type length if
4747 DW_AT_byte_size attribute is present.
4748
7a081a30
PM
47492010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4750
4751 * p-valprint.c (pascal_val_print): Handle set type if range limits
4752 are undefined but size is known.
4753
77382aee
PA
47542010-05-17 Pedro Alves <pedro@codesourcery.com>
4755
4756 * procfs.c: Reformat.
4757
433759f7
MS
47582010-05-16 Michael Snyder <msnyder@vmware.com>
4759
5d502164
MS
4760 * target.c: White space.
4761 * target-descriptions.c: White space.
4762 * target-memory.c: White space.
4763 * thread.c: White space.
4764 * top.c: White space.
4765 * tracepoint.c: White space.
4766 * trad-frame.c: White space.
4767 * tramp-frame.c: White space.
4768 * ui-file.c: White space.
4769 * ui-out.c: White space.
4770 * user-regs.c: White space.
4771 * utils.c: White space.
4772
433759f7
MS
4773 * scm-exp.c: White space.
4774 * scm-lang.c: White space.
4775 * scm-valprint.c: White space.
4776 * sentinel-frame.c: White space.
4777 * ser-base.c: White space.
4778 * ser-go32.c: White space.
4779 * serial.c: White space.
4780 * ser-mingw.c: White space.
4781 * ser-pipe.c: White space.
4782 * ser-tcp.c: White space.
4783 * ser-unix.c: White space.
4784 * solib.c: White space.
4785 * solib-darwin.c: White space.
4786 * solib-frv.c: White space.
4787 * solib-irix.c: White space.
4788 * solib-osf.c: White space.
4789 * solib-pa64.c: White space.
4790 * solib-som.c: White space.
4791 * solib-spu.c: White space.
4792 * solib-svr4.c: White space.
4793 * solib-target.c: White space.
4794 * source.c: White space.
4795 * stabsread.c: White space.
4796 * stack.c: White space.
4797 * std-regs.c: White space.
4798 * symfile.c: White space.
4799 * symmisc.c: White space.
4800 * symtab.c: White space.
4801
dd304d53
MS
48022010-05-16 Michael Snyder <msnyder@vmware.com>
4803
4804 * source.c (_initialize_source): Add "rev" as an abbreviation
4805 for the "reverse-search" command.
4806
a744cf53
MS
48072010-05-16 Michael Snyder <msnyder@vmware.com>
4808
123f5f96
MS
4809 * record.c: White space.
4810 * regcache.c: White space.
4811 * reggroups.c: White space.
4812 * remote-fileio.c: White space.
4813 * remote-m32r-sdi.c: White space.
4814 * remote-mips.c: White space.
4815 * remote-sim.c: White space.
a744cf53
MS
4816 * remote.c: White space.
4817 (process_g_packet): Remove orphan braces.
4818
b8d56208
MS
48192010-05-15 Michael Snyder <msnyder@vmware.com>
4820
ad3bbd48
MS
4821 * parse.c: White space.
4822 * p-lang.c: White space.
4823 * posix-hdep.c: White space.
4824 * printcmd.c: White space.
4825 * progspace.c: White space.
4826 * prologue-value.c: White space.
4827 * psymtab.c: White space.
4828 * p-typeprint.c: White space.
4829 * p-valprint.c: White space.
4830
5cc80db3
MS
4831 * objc-lang.c: White space.
4832 * objfiles.c: White space.
4833 * observer.c: White space.
4834 * osabi.c: White space.
4835 * osdata.c: White space.
4836
b8d56208
MS
4837 * m2-lang.c: White space.
4838 * m2-valprint.c: White space.
4839 * macrocmd.c: White space.
4840 * macroexp.c: White space.
4841 * macroscope.c: White space.
4842 * macrotab.c: White space.
4843 * main.c: White space.
4844 * maint.c: White space.
4845 * mdebugread.c: White space.
4846 * memattr.c: White space.
4847 * minsyms.c: White space.
4848 * monitor.c: White space.
4849
9a619af0
MS
48502010-05-14 Michael Snyder <msnyder@vmware.com>
4851
e0881a8e
MS
4852 * jv-lang.c: White space.
4853 * jv-typeprint.c: White space.
4854 * jv-valprint.c: White space.
4855 * language.c: White space.
4856 * libunwind-frame.c: White space.
4857 * linespec.c: White space.
4858 * linux-nat.c: White space.
4859 * linux-record.c: White space.
4860 * linux-thread-db.c: White space.
4861
abbb1732
MS
4862 * infcall.c: White space.
4863 * inf-child.c: White space.
4864 * infcmd.c: White space.
4865 * inferior.c: White space.
4866 * inf-loop.c: White space.
4867 * inflow.c: White space.
4868 * inline-frame.c: White space.
4869 * interps.c: White space.
4870
d8734c88
MS
4871 * gcore.c: White space.
4872 * gdb.c: White space.
4873 * gdbtypes.c: White space.
4874 * gnu-nat.c: White space.
4875 * gnu-v2-abi.c: White space.
4876 * gnu-v3-abi.c: White space.
4877
bb9bcb69
MS
4878 * findcmd.c: White space.
4879 * findvar.c: White space.
4880 * fork-child.c: White space.
4881 * frame-base.c: White space.
4882 * frame.c: White space.
4883 * frame-unwind.c: White space.
4884 * f-valprint.c: White space.
4885
d7f9d729
MS
4886 * elfread.c: White space.
4887 * environ.c: White space.
4888 * eval.c: White space.
4889 * event-loop.c: White space.
4890 * event-top.c: White space.
4891 * exceptions.c: White space.
4892 * exec.c: White space.
4893 * expprint.c: White space.
4894
9a619af0
MS
4895 * dbxread.c: White space.
4896 * dcache.c: White space.
4897 * disasm.c: White space.
4898 * doublest.c: White space.
4899 * dsrec.c: White space.
4900 * dummy-frame.c: White space.
4901 * dwarf2expr.c: White space.
4902 * dwarf2-frame.c: White space.
4903 * dwarf2loc.c: White space.
4904 * dwarf2read.c: White space.
4905
88d4aea7
PM
49062010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4907
889bf7c5 4908 PR python/11482
88d4aea7
PM
4909
4910 * python/py-value.c (valpy_hash): New function.
4911 (value_object_type): Register valpy_hash.
4912
7a298875 49132010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 4914 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
4915
4916 * linux-fork.c (gdbthread.h): New include.
4917 (fork_info): Add parent_ptid.
4918 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4919 functions.
4920 (delete_checkpoint_command): Call inferior_call_waitpid.
4921 (checkpoint_command): Set parent_ptid.
4922
c14feecc
MS
49232010-05-13 Michael Snyder <msnyder@vmware.com>
4924
6595d32b
MS
4925 * dictionary.c: Re-indent to GNU coding standard.
4926
c5504eaf
MS
4927 * charset.c: White space.
4928 * c-lang.c: White space.
4929 * cli-out.c: White space.
4930 * coffread.c: White space.
4931 * complaints.c: White space.
4932 * completer.c: White space.
4933 * corefile.c: White space.
4934 * corelow.c: White space.
4935 * cp-abi.c: White space.
4936 * cp-namespace.c: White space.
4937 * cp-support.c: White space.
4938 * cp-valprint.c: White space.
4939 * c-typeprint.c: White space.
4940 * c-valprint.c: White space.
cc59ec59
MS
4941 * blockframe.c: White space.
4942 * breakpoint.c: White space.
4943 * buildsym.c: White space.
4944 * blockframe.c: White space.
b6de9da4 4945 * bcache.c: White space.
05c547f6
MS
4946 * gdbarch.sh: White space, add blank lines.
4947 * arch-utils.c: Ditto.
4948 * gdbarch.c: Regenerate.
1c4d3f96 4949 * frame.c: White space, add blank lines.
f89b749f
MS
4950 * stack.c: White space, add blank lines.
4951 (initialize_stack): Remove long-dead code.
c14feecc 4952
a2d33775
JK
49532010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4954
4955 Code cleanup.
4956 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4957 (locexpr_read_variable, loclist_read_variable): Update the callers.
4958
33ac96f0
JK
49592010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4960
4961 Code cleanup.
4962 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4963 Remove check of NULL returned by tag_type_to_type.
4964 (die_containing_type): Remove variable type. Remove type_die variable
4965 initialization. Remove check of NULL returned by tag_type_to_type.
4966
f5a010c0
PM
49672010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4968
4969 PR exp/11530.
4970 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4971 names of unnamed structures or unions.
4972
bf701c2c
PM
49732010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4974
4975 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 4976 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
4977 find_procinfo_or_die call.
4978 (procfs_stopped_data_address): New function.
4979 (procfs_use_watchpoints): Register new watchpoint related function.
4980
d02691ef
TT
49812010-05-11 Tom Tromey <tromey@redhat.com>
4982
4983 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4984
e0627e85
MS
49852010-05-10 Michael Snyder <msnyder@vmware.com>
4986
4987 * utils.c: White space cleanup.
4988
cc73bb8c
TT
49892010-05-10 Tom Tromey <tromey@redhat.com>
4990
4991 * eval.c (ptrmath_type_p): Add 'lang' argument.
4992 (evaluate_subexp_standard): Update.
4993 (evaluate_subexp_with_coercion): Update.
4994 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4995
c02866a0
MS
49962010-05-10 Michael Snyder <msnyder@vmware.com>
4997
4998 * utils.c (do_fclose_cleanup) Restore local variable.
4999
06280d23
DE
50002010-05-09 Doug Evans <dje@google.com>
5001
5002 * record.c (init_record_core_ops): Rename record_core to record-core.
5003
fa07e785
JB
50042010-05-08 Joel Brobecker <brobecker@adacore.com>
5005
5006 Implement task switching on pa-hpux.
5007 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
5008 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
5009
4c680d1d
PM
50102010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5011
5012 * valops.c (find_overload_match): Add missing i18n markup.
5013
28e176a6
PM
50142010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
5015
5016 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
5017
48cb83fd
JK
50182010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5019
5020 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5021 list for the obconcat call.
5022 * mdebugread.c (parse_symbol): Likewise.
5023 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5024 Likewise.
5025 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5026 New variable ap. Remove variables len and val.
5027 * symfile.h (obconcat): Likewise for the prototype.
5028
f92adf3c
MS
50292010-05-07 Michael Snyder <msnyder@vmware.com>
5030
5031 * python/python.c (execute_gdb_command): Remove unused variables.
5032 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5033 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5034 Remove unused variable.
5035 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5036 (cmdpy_completer): Remove unused variable.
5037 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5038 * python/py-function.c (fnpy_call): Remove unused variable.
5039 * python/py-objfile.c (objfile_to_objfile_object):
5040 Remove unused variable.
5041 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5042 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5043 Remove unused variable.
5044 (gdbpy_default_visualizer): Remove unused variable.
5045 * python/py-progspace.c (pspace_to_pspace_object):
5046 Remove unused variable.
0407b3f1 5047 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5048 Remove unused variable.
0407b3f1 5049 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5050 Remove unused variable.
5051 * python/py-value.c (valpy_string): Remove unused variable.
5052 (convert_value_from_python): Remove unused variables.
5053
d160942f
MS
50542010-05-07 Michael Snyder <msnyder@vmware.com>
5055
5056 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5057 and use it to compute variable 't1'.
5058
587542ab
JB
50592010-05-07 Joel Brobecker <brobecker@adacore.com>
5060
5061 * ada-lang.c (assign_aggregate): Remove unused variable.
5062
7322dca9
SW
50632010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5064
5065 PR C++/7943:
5066 * valops.c (find_overload_match): Handle fsym == NULL case.
5067 Add int no_adl argument.
5068 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5069 when appropriate.
5070 Add int no_adl argument.
5071 (find_oload_champ_namespace): Add int no_adl argument.
5072 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5073 expression.
5074 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5075 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5076 Evaluate arguments and use them to perform ADL lookup.
5077 Pass no_adl argument to find_overload_match.
5078 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5079 * cp-support.h: Added prototype for
5080 make_symbol_overload_list_namespace.
5081 * cp-support.c (make_symbol_overload_list_namespace): New function.
5082 (make_symbol_overload_list_adl_namespace): New function.
5083 (make_symbol_overload_list_adl): New function.
5084 (make_symbol_overload_list_using): Moved code to add function to
5085 overload set to make_symbol_overload_list_namespace.
5086 * c-exp.y: create UNKNOWN_CPP_NAME token.
5087 Add parse rule for ADL functions.
5088 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5089
3f1f6884
JK
50902010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5091
5092 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5093 sentinel.
5094
3caf13b4
JB
50952010-05-07 Joel Brobecker <brobecker@adacore.com>
5096
5097 Implement task switching on solaris targets.
5098 * sol-thread.c (thread_db_find_thread_from_tid)
5099 (sol_get_ada_task_ptid): New functions.
5100 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5101
94b0dee1
PA
51022010-05-07 Pedro Alves <pedro@codesourcery.com>
5103
5104 * remote.c (remote_query_supported_append): Use reconcat.
5105 (remote_query_supported): Install a cleanup. Use reconcat.
5106
1408c251
PA
51072010-05-07 Pedro Alves <pedro@codesourcery.com>
5108
5109 * gdbarch.sh (qsupported): Delete.
5110 * gdbarch.h, gdbarch.c: Regenerate.
5111 * remote.c (remote_query_supported): Remove use of
5112 gdbarch_qsupported.
5113
f8e50cfe
SDJ
51142010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5115
5116 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5117 function.
5118
8ea13695
MS
51192010-05-06 Michael Snyder <msnyder@vmware.com>
5120
c6913b7d
MS
5121 * xml-support.c (xinclude_start_include): Delete unused variable.
5122 (xml_process_xincludes): Delete unused variable.
5123 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5124 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5125 (tdesc_find_arch_register): Delete unused variable.
5126 (tdesc_use_registers): Delete unused variable.
5127 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5128 * inferior.c (print_inferior): Delete unused variable.
5129 * record.c (record_open_1): Delete unused variable.
5130 (record_restore): Delete unused variable.
5131 (cmd_record_save): Delete unused variable.
5132 * gcore.c (derive_heap_segment): Delete unused variable.
5133 (objfile_find_memory_regions): Use unused variable.
5134 * jit.c (jit_inferior_init): Delete unused variable.
5135 * progspace.c (clone_program_space): Delete unused variable.
5136 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5137
5138 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5139 Delete unused variable.
5140 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5141 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5142 (method_name_from_physname): Delete unused variable.
5143 (cp_func_name): Delete unused variable.
5144 (cp_validate_operator): Delete unused variable.
0407b3f1 5145 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5146 Delete unused variable.
0407b3f1 5147 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5148 Delete unused variable.
5149 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5150
1be757cf
MS
5151 * serial.c (serial_for_fd): Delete unused variable.
5152 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5153 * top.c (execute_command): Delete unused variable.
5154 (init_main): Delete unused variable.
5155 * utils.c (do_fclose_cleanup): Delete unused variable.
5156 (do_all_inferior_continuations): Delete unused variable.
5157 (initialize_utils): Delete unused variable.
5158 (internal_problem_mode): Delete unused global.
5159 * frame.c (get_prev_frame): Delete unused global.
5160 (get_frame_locals_address): Delete unused global.
5161 (get_frame_args_address): Delete unused global.
5162
9216103f
MS
5163 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5164 (pascal_type_print_varspec_prefix): Delete unused variable.
5165 * f-typeprint.c (f_type_print_base): Delete unused variable.
5166 (f_type_print_varspec_suffix): Delete unused variable.
5167 * m2-typeprint.c (m2_print_type): Delete unused variable.
5168 (m2_long_set): Delete unused variable.
5169 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5170 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5171 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5172 Delete unused variable.
5173 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5174 * m2-valprint.c (m2_val_print): Delete unused variable.
5175
34fa1d9d
MS
5176 * ui-out.c (ui_out_field_int): Delete unused variable.
5177 (ui_out_field_fmt_int): Delete unused variable.
5178 * varobj.c (varobj_list_children): Delete unused variable.
5179 (varobj_set_value): Delete unused variable.
5180 (install_new_value_visualizer): Delete unused variable.
5181 (varobj_set_visualizer): Delete unused variable.
5182 (varobj_update): Delete unused variable.
5183 (varobj_editable_p): Delete unused variable.
5184 (c_value_of_root): Delete unused variable.
5185 (cplus_describe_child): Delete unused variable.
5186
b5385fc0
MS
5187 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5188 (decode_constrained_packed_array_type): Delete unused variable.
5189 (add_defn_to_vec): Delete unused variable.
5190 (symbol_completion_match): Delete unused variable.
5191 (value_tag_from_contents_and_address): Delete unused variable.
5192 (ada_evaluate_subexp): Delete unused variable.
5193 * c-lang.c (classify_type): Delete unused variable.
5194 * f-lang.c (f_printstr): Delete unused variable.
5195 * objc-lang.c (objc_printstr): Delete unused variable.
5196 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5197 * jv-lang.c (type_from_class): ifdef unused variable.
5198 (java_class_name_from_physname): Delete unused variable.
5199 * m2-lang.c (m2_printstr): Delete unused variable.
5200
4fc06681
MS
5201 * objfiles.c (objfile_relocate): Delete unused variable.
5202 * maint.c (_initialize_maint_cmds): Delete unused variable.
5203 * demangle.c (_initialize_demangler): Delete unused variable.
5204 * corefile.c (reopen_exec_file): Delete unused variable.
5205 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5206 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5207
6b4398f7
MS
5208 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5209 * memattr.c (mem_delete): Delete unused variable.
5210 (invalidate_target_mem_regions): Delete unused variable.
5211 * mem-break.c (default_memory_insert_breakpoint):
5212 Delete unused variable.
5213 * target.c (target_get_osdata): Delete unused variable.
5214 * parse.c (length_of_subexp): Delete unused variable.
5215 (prefixify_subexp): Delete unused variable.
5216 (exp_iterate): Delete unused variable.
5217 * reverse.c (delete_bookmark_command): Delete unused variable.
5218
308d96ed
MS
5219 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5220 * macroexp.c (gather_arguments): Delete unused variable.
5221 (substitute_args): Delete unused variable.
5222 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5223 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5224 (_initialize_gdbarch): Delete unused variable.
5225 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5226 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5227 Delete unused variable.
5228 (_initialize_gdbarch_utils): Delete unused variable.
5229 * gdbtypes.c (make_cv_type): Delete unused variable.
5230 (make_type_with_address_space): Delete unused variable.
5231
167e4384
MS
5232 * linespec.c (decode_compound): Delete unused variable.
5233 * dictionary.c (iterator_next_hashed): Delete unused variable.
5234 * infcall.c (call_function_by_hand): Delete unused variable.
5235 * infcmd.c (step_1): Delete unused variable.
5236 (registers_info): Delete unused variable.
5237 (attach_command): Delete unused variable.
5238 * infrun.c (follow_exec): Delete unused variable.
5239 (handle_step_into_function_backwards): Delete unused variable.
5240 (_initialize_infrun): Delete unused variable.
5241 * stack.c (parse_frame_specification_1): Delete unused variable.
5242 (frame_info): Delete unused variable.
5243 (backtrace_command_1): Delete unused variable.
5244 (catch_info): Delete unused variable.
5245
8f78b329
MS
5246 * eval.c (evaluate_subexp_standard): Delete unused variable.
5247 * valops.c (value_cast_pointers): Delete unused variable.
5248 (value_dynamic_cast): Delete unused variable.
5249 (value_array): Delete unused variable.
5250 (find_overload_match): Delete unused variable.
5251 * valarith.c (value_subscript): Delete unused variable.
5252 (value_binop): Delete unused variable.
5253 * valprint.c (_initialize_valprint): Delete unused variable.
5254 * printcmd.c (print_command_1): Delete unused variable.
5255 (address_info): Delete unused variable.
5256 (printf_command): Delete unused variable.
5257
8ea13695
MS
5258 * auxv.c (target_auxv_search): Delete unused variable.
5259 * blockframe.c (get_frame_block): Delete unused variable.
5260 * regcache.c (regcache_cpy): Delete unused variable.
5261 (regcache_cpy_no_passthrough): Delete unused variable.
5262 * charset.c (wchar_iterate): Delete unused variable.
5263 (find_charset_names): Delete unused variable.
5264 (_initialize_charset): Delete unused variable.
0407b3f1 5265 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5266 Delete unused variable.
0407b3f1 5267 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5268 Delete unused variable.
5269 (set_substitute_path_command): Delete unused variable.
5270 * value.c (preserve_values): Delete unused variable.
5271 (value_from_double): Delete unused variable.
5272
afe38095
MS
52732010-05-05 Michael Snyder <msnyder@vmware.com>
5274
952a6d41
MS
5275 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5276 (find_last_source_symtab_from_partial): Delete unused variable.
5277 * symfile.c (place_section): Delete unused variable.
5278 (default_symfile_offsets): Delete unused variable.
5279 (get_debug_link_info): Delete unused variable.
5280 (find_separate_debug_file_by_debuglink): Delete unused variable.
5281 (add_symbol_file_command): Delete unused variable.
5282 (symfile_find_segment_sections): Delete unused variable.
5283 * symmisc.c (free_symtab): Delete unused variable.
5284 (dump_symtab_1): Delete unused variable.
5285 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5286 (find_pc_sect_symtab): Delete unused variable.
5287 (skip_prologue_using_lineinfo): Delete unused variable.
5288 (sources_info): Delete unused variable.
5289 (completion_list_add_name): Delete unused variable.
5290 (expand_line_sal): Delete unused variable.
5291
0407b3f1 5292 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5293 Delete unused variables.
5294 (insert_catchpoint): Delete unused variable.
5295 (update_watchpoint): Delete unused variable.
5296 (insert_bp_location): Delete unused variable.
5297 (insert_breakpoint_locations): Delete unused variable.
5298 (remove_breakpoint_1): Delete unused variable.
5299 (software_breakpoint_inserted_here_p): Delete unused variable.
5300 (watchpoints_triggered): Delete unused variable.
5301 (bpstat_check_watchpoint): Delete unused variable.
5302 (bpstat_stop_status): Delete unused variable.
5303 (print_one_breakpoint_location): Delete unused variable.
5304 (allocate_bp_location): Delete unused variable.
5305 (create_breakpoint): Delete unused variable.
5306 (watch_command_1): Delete unused variable.
5307 (catch_exception_command_1): Delete unused variable.
5308 (catch_ada_exception_command): Delete unused variable.
5309 (delete_breakpoint): Delete unused variable.
5310 (breakpoint_re_set_one): Delete unused variable.
5311 (do_enable_breakpoint): Delete unused variable.
5312
eda5a4d7
PA
53132010-05-06 Pedro Alves <pedro@codesourcery.com>
5314
5315 * amd64-tdep.c: Include disasm.h.
5316 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5317 (amd64_insn_length): Moved to disasm.c and renamed.
5318 (fixup_riprel): Adjust.
5319 * disasm.c (do_ui_file_delete): New.
5320 (gdb_insn_length): New.
5321 (gdb_buffered_insn_length_fprintf)
5322 (gdb_buffered_insn_length_init_dis)
5323 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5324 renamed.
5325 * disasm.h (gdb_insn_length): Declare.
5326 (gdb_buffered_insn_length): Declare.
5327
02357a4a
PA
53282010-05-06 Pedro Alves <pedro@codesourcery.com>
5329
5330 * remote.c (clear_threads_parsing_context): New.
5331 (remote_threads_info): Delete unused null_cleanup. Install a
5332 cleanup to clear the threads_parsing_context in case parsing
5333 throws.
5334
8c5630cb
MS
53352010-05-05 Michael Snyder <msnyder@vmware.com>
5336
5337 * c-exp.y (parse_string_or_char): Delete unused variable.
5338 (c_lex): Delete unused variable.
5339 * cp-name-parser.y (cpname_lex): Delete unused variable.
5340 * ada-exp.y (find_primitive_type): Delete unused variable.
5341 (write_var_or_type): Delete unused variable.
5342 * jv-exp.y (java_parse): Delete unused variable.
5343 (push_expression_name): Delete unused variable.
5344 * p-exp.y (pascal_lex): Delete unused variable.
5345
46c162d4
PA
53462010-05-05 Pedro Alves <pedro@codesourcery.com>
5347
5348 * remote.c (remote_threads_info): Really revert previous previous
5349 change.
5350
0043e6a5
MS
53512010-05-05 Michael Snyder <msnyder@vmware.com>
5352
fa238c03
MS
5353 * elfread.c (elf_symtab_read): Delete unused variable.
5354 (find_separate_debug_file_by_buildid): Delete unused variables.
5355 (elf_symfile_read): Delete unused variable.
5356
5357 * coffread.c (coff_symfile_read): Delete unused variables.
5358
5359 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5360 (read_pe_exported_syms): Delete unused variable.
5361
5362 * stabsread.c (define_symbol): Delete unused variable.
5363
5364 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5365 (process_psymtab_comp_unit): Delete unused variable.
5366 (dwarf2_build_psymtabs_hard): Delete unused variable.
5367 (load_partial_comp_unit): Delete unused variable.
5368 (create_all_comp_units): Delete unused variable.
5369 (scan_partial_symbols): Delete unused variable.
5370 (add_partial_symbol): Delete unused variable.
5371 (add_partial_namespace): Delete unused variable.
5372 (add_partial_enumeration): Delete unused variable.
5373 (load_full_comp_unit): Delete unused variable.
5374 (process_full_comp_unit): Delete unused variable.
5375 (read_file_scope): Delete unused variable.
5376 (read_type_unit_scope): Delete unused variable.
5377 (process_structure_scope): Delete unused variable.
5378 (process_enumeration_scope): Delete unused variable.
5379 (read_tag_ptr_to_member_type): Delete unused variable.
5380 (read_typedef): Delete unused variable.
5381 (read_partial_die): Delete unused variable.
5382 (decode_locdesc): Delete unused variable.
5383 (zeroed_partial_die): Delete unused global variable.
5384
0407b3f1 5385 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 5386 Delete unused variable.
0407b3f1 5387 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
5388 Delete unused variable.
5389 (tui_check_register_values): Delete unused variable.
5390 (tui_register_format): Delete unused variable.
5391 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 5392 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
5393 Delete unused variables.
5394 (tui_vertical_data_scroll): Delete unused variables.
5395
75721c66
MS
53962010-05-05 Michael Snyder <msnyder@vmware.com>
5397
c31a71f4
MS
5398 * remote.c (remote_threads_info): Revert questionable part of
5399 the previous change.
5400
54012010-05-05 Michael Snyder <msnyder@vmware.com>
5402
5403 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5404 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5405 (mi_cmd_var_list_children): Delete unused variable.
5406 (varobj_update_one): Delete unused variable.
5407 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 5408 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
5409 Delete unused variable.
5410 (mi_cmd_stack_list_variables): Delete unused variable.
5411 (list_args_or_locals): Delete unused variable.
0407b3f1 5412 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
5413 Delete unused variables.
5414 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 5415 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
5416 Delete unused variable.
5417 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5418 (mi_cmd_interpreter_exec): Delete unused variable.
5419 (mi_on_normal_stop): Delete unused variable.
5420 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5421 (print_one_inferior): Delete unused variables.
5422 (mi_execute_command): Delete unused variable.
5423 (mi_cmd_execute): Delete unused variable.
5424 (timestamp): Delete unused variable.
5425
5426 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 5427 (restore_binary_file): Delete unused variable.
c31a71f4
MS
5428 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5429 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
5430 (recurse_read_control_structure): Delete unused variable.
5431 (script_from_file): Delete unused variable.
c31a71f4 5432 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
5433 (disassemble_command): Delete unused variable.
5434
5435 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 5436 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
5437 Delete unused variables.
5438 (encode_actions_1): Delete unused variables.
5439 (start_tracing): Delete unused variable.
5440 (trace_status_mi): Delete unused variable.
5441 (tfind_1): Delete unused variable.
5442 (trace_find_pc_command): Delete unused variable.
5443 (trace_find_line_command): Delete unused variables.
5444 (trace_find_range_command): Delete unused variables.
5445 (trace_find_outside_command): Delete unused variables.
5446 (parse_tracepoint_definition): Delete unused variables.
5447 (tfile_fetch_registers): Delete unused variable.
5448
9128a503
MS
5449 * dcache.c (dcache_init): Delete unused variable.
5450 (dcache_info): Delete unused variable.
5451
aa369b55 5452 * remote.c (remote_threads_info): Delete unused variable.
9128a503 5453 (process_stop_reply) :Delete unused variable.
aa369b55
MS
5454 (remote_get_trace_status): Delete unused variables.
5455
9e9547e4
MS
5456 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5457 (thread_from_lwp): Delete unused variable.
5458 (enable_thread_event_reporting): Delete unused variable.
5459 (check_for_thread_db): Delete unused variables.
5460 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 5461
9e9547e4
MS
5462 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5463 (checkpoint_command): Delete unused variable.
5464 (linux_fork_context): Delete unused variables.
5465
fa238c03 5466 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
5467 (linux_tracefork_child): Delete unused variable.
5468 (linux_child_follow_fork): Delete unused variable.
5469 (linux_nat_detach): Delete unused variable.
5470 (linux_handle_extended_wait): Delete unused variable.
5471 (linux_nat_has_pending_sigint): Delete unused variable.
5472 (linux_nat_find_memory_regions): Delete unused variable.
5473 (linux_nat_make_corefile_notes): Delete unused variables.
5474 (linux_nat_info_proc_cmd): Delete unused variable.
5475 (linux_proc_pending_signals): Delete unused variable.
5476 (linux_nat_stop_lwp): Delete unused variables.
5477 (_initialize_linux_nat): Delete unused variable.
5478
fa238c03 5479 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 5480
0407b3f1 5481 * linux-record.c (record_linux_system_call):
e0f069a3
MS
5482 Delete unused variables.
5483
789d24f0
MS
5484 * corelow.c (core_xfer_partial): Delete unused variables.
5485
1cd337a5 5486 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 5487 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
5488 conditionally-used variable declarations.
5489
b00e3f56
MS
5490 * solib.c (solib_find): Delete unused variable.
5491 (free_so_symbols): Delete unused variable.
5492 (info_sharedlibrary_command): Delete unused variable.
5493 (reload_shared_libraries_1): Delete unused variable.
5494 (_initialize_solib): Delete unused variable.
5495
90f62196
MS
5496 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5497 (i386_collect_xstateregset): Delete unused variable.
5498 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5499
75721c66
MS
5500 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5501 Delete unused variable 'type'.
5502
af33db37
JB
55032010-05-05 Joel Brobecker <brobecker@adacore.com>
5504
90f62196 5505 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
5506 ada-lang.c: Remove comment mentioning these macros.
5507 * m2-exp.y: Delete commented out code.
af33db37 5508
0497f5b0
JB
55092010-05-05 Joel Brobecker <brobecker@adacore.com>
5510
5511 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5512 for array types.
5513 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5514
6e39997a
PM
55152010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5516
5517 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 5518 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
5519 ATTRIBUTE_UNUSED.
5520 (cleanup_kernel_helper_return): Likewise.
5521 * arm-tdep.c (copy_unmodified): Likewise.
5522 (copy_preload): Likewise.
5523 (copy_copro_load_store): Likewise.
5524 (cleanup_branch): Likewise.
5525 (copy_b_bl_blx): Likewise.
5526 (copy_bx_blx_reg): Likewise.
5527 (copy_alu_imm): Likewise.
5528 (copy_alu_reg): Likewise.
5529 (copy_alu_shifted_reg): Likewise.
5530 (cleanup_load): Likewise.
5531 (cleanup_store): Likewise.
5532 (cleanup_block_load_pc): Likewise.
5533 (cleanup_svc): Likewise.
5534 (copy_undef): Likewise.
5535 (copy_unpred): Likewise.
5536 * remote.c (register_remote_support_xml): Likewise.
5537
1412f70b
HZ
55382010-05-05 Hui Zhu <teawater@gmail.com>
5539
5540 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5541
c4f7c687
MK
55422010-05-04 Mark Kettenis <kettenis@gnu.org>
5543
5544 * remote.c (register_remote_support_xml)
5545 (remote_query_supported_append, remote_query_supported): Add cast
5546 to NULL used as sentinel.
5547 * tracepoint.c (tvariables_info_1): Likewise.
5548 * utils.c (add_internal_problem_command): Likewise.
5549
63b4f126
MGD
55502010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5551
5552 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5553 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5554 registers gracefully.
5555
2f1bdd26
MGD
55562010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5557
0407b3f1 5558 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
5559 specific parts.
5560
e1c34c5d
PM
55612010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5562
5563 PR exp/11349.
5564 * printcmd.c (x_command): Only dereference once implicitly for
5565 TYPE_CODE_REF.
5566
ae462839
DE
55672010-05-03 Doug Evans <dje@google.com>
5568
5569 * event-loop.c (gdb_timer): Delete unused global.
5570 (create_timer): Update.
5571
1ac77ea1
JK
55722010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5573
5574 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5575 CURRENT->DECLARATION case.
5576 * cp-support.h (struct using_direct): Provide extended comment.
5577
7c54a108
MK
55782010-05-03 Mark Kettenis <kettenis@gnu.org>
5579
5580 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5581 HPPABSD_SIZEOF_GREGS.
5582 (HPPAOBSD_SIZEOF_FPREGS): New define.
5583 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5584 (hppaobsd_supply_fpregset): New function.
5585 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5586 (hppaobsd_fpregset): New variable.
5587 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5588 (_initialize_hppabsd_tdep): Remove spurious blank line.
5589
278582cb
PM
55902010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5591
5592 PR pascal/11349.
5593 * p-valprint.c (pascal_value_print): Always dereference a value with
5594 type code TYPE_CODE_REF.
0407b3f1 5595
f0223081
PA
55962010-05-03 Pedro Alves <pedro@codesourcery.com>
5597
5598 * remote.c (remote_notice_signals): New.
5599 (remote_start_remote): In non-stop mode, update the remote end on
5600 which signals it can silently pass.
5601 (init_remote_ops): Install remote_notice_signals.
5602
c25c4a8b
JK
56032010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5604
5605 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5606 * command.h (error_no_arg): ... here. Remove NORETURN, change
5607 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5608 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5609 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5610 (internal_verror, internal_error, nomem): Remove NORETURN, change
5611 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5612 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5613 (throw_vfatal, throw_error): Remove NORETURN.
5614 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5615 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5616 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5617 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5618 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5619 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5620 NORETURN.
5621 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5622 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5623 ATTRIBUTE_NORETURN.
5624 * target.c (tcomplain): Likewise.
5625 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5626 ATTRIBUTE_NORETURN.
5627 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5628 (internal_error, perror_with_name, nomem): Remove NORETURN.
5629 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5630 ATTRIBUTE_NORETURN.
5631
a0b31db1
JK
56322010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5633
5634 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5635 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5636 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5637 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5638 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5639 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5640 * complaints.h (complaint, internal_complaint): Likewise.
5641 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5642 (ATTR_FORMAT): Remove.
5643 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5644 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5645 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5646 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5647 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5648 (internal_error, internal_vwarning, internal_warning, warning)
5649 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5650 * disasm.c (fprintf_disasm): Likewise.
5651 * exceptions.c (throw_it): Likewise.
5652 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5653 (throw_error): Likewise.
5654 * language.h (type_error, range_error): Likewise.
5655 * linespec.c (cplusplus_error): Likewise.
5656 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5657 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5658 * monitor.c (monitor_debug): Likewise.
5659 * parser-defs.h (parser_fprintf): Likewise.
5660 * serial.h (serial_printf): Likewise.
5661 * tui/tui-hooks.c (tui_query_hook): Likewise.
5662 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5663 (uo_message): Likewise.
5664 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5665 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5666 Likewise.
5667 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5668
02a45ac0
PA
56692010-05-02 Pedro Alves <pedro@codesourcery.com>
5670
5671 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5672 (cli_table_header, cli_begin, cli_end, cli_field_int)
5673 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5674 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5675 Delete forward declarations.
5676 (cli_ui_out_impl): Move below the callbacks.
5677 (_initialize_cli_out): Delete.
5678
1915ef4f
PA
56792010-05-02 Pedro Alves <pedro@codesourcery.com>
5680
5681 * README: Use consistent `GDB' and `GDBserver' spellings.
5682
0dfb946f
JK
56832010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5684
5685 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5686
4d533103
PA
56872010-05-01 Pedro Alves <pedro@codesourcery.com>
5688
5689 * infrun.c (prepare_for_detach): In non-stop, context switch to
5690 the thread that got the event before handling the event.
5691
705b5767
TT
56922010-04-30 Tom Tromey <tromey@redhat.com>
5693
5694 * symtab.c (symbol_set_names): Fix typo.
5695
3c0ee1a4
PM
56962010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5697
5698 * python/py-param.c (parm_constants): Avoid ARI warning
5699 by adding ARI comment.
5700 (parmpy_init): Likewise.
5701
ea1fae46
PM
57022010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5703
5704 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5705 and created type for re-use.
5706
c24d0242
PM
57072010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5708
5709 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5710
a26d8d11
DE
57112010-04-29 Doug Evans <dje@google.com>
5712
5713 * ser-base.h (reschedule): Delete prototype.
5714 * ser-base.c (reschedule): Make static.
5715
f8624c62
MGD
57162010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5717
5718 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5719 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 5720 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 5721 EABI.
0407b3f1 5722 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
5723 use.
5724
e66408ed
PA
57252010-04-29 Pedro Alves <pedro@codesourcery.com>
5726
5727 PR gdb/11557
5728
5729 * regcache.c (registers_changed): Rename to ...
5730 (registers_changed_ptid): ... this, and only delete register cache
5731 entries matching the ptid filter argument.
5732 (registers_changed): Reimplement on top of registers_changed_ptid.
5733 * regcache.h (registers_changed_ptid): Declare.
5734 * target.c (target_resume): Flush register caches.
5735
d7b32ed3 57362010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
5737 Tom Tromey <tromey@redhat.com>
5738 Thiago Jung Bauermann <bauerman@br.ibm.com>
5739
5740 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5741 (SUBDIR_PYTHON_SRCS): Likewise.
5742 (py-parameter.o): New rule.
5743 * python/py-parameter.c: New file.
5744 * python/python-internal.h (gdbpy_initialize_parameter)
5745 (gdbpy_parameter, gdbpy_parameter_value)
5746 (gdbpy_parse_command_name): Declare.
5747 * python/py-cmd.c (parse_command_name): Rename to
5748 gdbpy_parse_command_name.
5749 (gdbpy_parse_command_name): Accept a starting list parameter and
5750 use over cmdlist.
5751 (cmdpy_init): Use gdbpy_parse_command_name.
5752 * python/python.c (parameter_to_python): Rename to
5753 gdbpy_parameter_to_python. Accept enum var_types and value.
5754 (gdbpy_parameter): Use gdbpy_parameter_value.
5755 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 5756
ce72ce41
MGD
57572010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5758
5759 * MAINTAINERS: Add myself for write after approval privileges.
5760
6aecb9c2
JB
57612010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5762
5763 D language support.
5764 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5765 (COMMON_OBS): Add d-lang.o d-valprint.o.
5766 (HFILES_NO_SRCDIR): Add d-lang.h.
5767 * NEWS: Mention D language support.
5768 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5769 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5770 * d-lang.c: New file.
5771 * d-lang.h: New file.
5772 * d-valprint.c: New file.
5773 * defs.h (enum language): Add language_d.
5774 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5775 * language.c (binop_result_type, integral_type, character_type)
5776 (string_type, boolean_type, structured_type): Add language_d.
5777 * symfile.c (init_filename_language_table): Add language_d.
5778 * symtab.c: Include d-lang.h.
5779 (symbol_init_language_specific, symbol_find_demangled_name)
5780 (symbol_natural_name, lookup_symbol_in_language)
5781 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5782
6f992fbf
JB
57832010-04-27 Joel Brobecker <brobecker@adacore.com>
5784
5785 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5786
dde59185
JB
57872010-04-27 Joel Brobecker <brobecker@adacore.com>
5788
5789 * symfile.c (init_filename_language_table): Register .dg files
5790 with language_ada.
5791
d09ce91e
JB
57922010-04-27 Joel Brobecker <brobecker@adacore.com>
5793
5794 * gdbtypes.h (struct main_type): Expand comment about target_type
5795 field.
5796
67f1675e
JB
57972010-04-27 Pedro Alves <pedro@codesourcery.com>
5798 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
5799
5800 * symfile.c (reread_symbols): Also search for file in libraries.
5801 Update comment.
5802
dfd0fe27
JB
58032010-04-27 Joel Brobecker <brobecker@adacore.com>
5804
5805 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5806 in terms of configuration.
5807
0133421a
JK
58082010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5809
5810 * objfiles.c: Include solist.h.
5811 (free_all_objfiles): New variable so. Check stale solist objfiles.
5812 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5813 and no_shared_libraries.
5814
e78f4312
JB
58152010-04-27 Joel Brobecker <brobecker@adacore.com>
5816
5817 ARI warning fix.
5818 * python/py-auto-load.c (source_section_scripts): Remove trailing
5819 new-line in i18n string.
5820
9214d371
DE
58212010-04-26 Doug Evans <dje@google.com>
5822
5823 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5824
3f172e24
TT
58252010-04-26 Tom Tromey <tromey@redhat.com>
5826
5827 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5828 command list.
5829
e790e06e
PM
58302010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5831
5832 Removal of config/i386/nm-i386sol2.h native configuration file.
5833 * config/i386/nm-i386sol2.h: Remove file.
5834 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5835 * config/i386/sol2-64.mh: Idem.
88562582
PM
5836 * config/djgpp/fnchange.lst: Remove reference to that file.
5837 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 5838
b7da9e9f
PM
58392010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5840
5841 PR breakpoints/11531.
5842 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5843 macro definition and related comment.
5844 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5845 (resume): Remove code and comment related to this macro.
5846
72f6eb52
JK
58472010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5848
5849 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5850 Fix whitespace.
5851
ab38a727
PA
58522010-04-24 Pedro Alves <pedro@codesourcery.com>
5853
5854 * defs.h: Adjust comment.
5855 * filesystem.h, filesystem.c: New files.
5856 * Makefile.in (SFILES): Add filesystem.c.
5857 (COMMON_OBS): Add filesystem.o.
5858 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5859 different target and host path flavours.
5860 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5861 has_dos_based_file_system on the gdbarch.
5862 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5863 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5864 * i386-tdep.c (i386_go32_init_abi): Ditto.
5865 * gdbarch.sh (has_dos_based_file_system): New.
5866 * gdbarch.h, gdbarch.c: Regenerate.
5867 * NEWS: Mention improved support for remote targets with DOS-based
5868 filesystems. Mention new `set/show target-file-system-kind'
5869 commands.
5870
35c9c7ba
SS
58712010-04-23 Stan Shebs <stan@codesourcery.com>
5872
5873 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5874 comments.
5875 (struct agent_reqs): Remove.
5876 (ax_reg_mask): Declare.
5877 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5878 (free_agent_expr): Free reg_mask.
5879 (ax_print): Add scope and register mask info.
5880 (ax_reqs): Remove agent_reqs argument, use agent expression
5881 fields, and move part of register mask computation to...
5882 (ax_reg_mask): New function.
5883 * ax-gdb.c (gen_trace_static_fields): Call it.
5884 (gen_traced_pop): Ditto.
5885 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5886 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5887 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5888 (gen_eval_for_expr): Ditto, and require an rvalue.
5889 (agent_command): Call ax_reqs.
5890 (agent_eval_command): Ditto.
5891 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5892 (validate_action_line): Ditto.
5893 (collect_symbol): Ditto.
5894 (encode_actions_1): Ditto.
5895
492928e4
JK
58962010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5897 Paul Pluzhnikov <ppluzhnikov@google.com>
5898 Jan Kratochvil <jan.kratochvil@redhat.com>
5899
5900 Fix deadlock on looped list of loaded shared objects.
5901 * solib-svr4.c (LM_PREV): New function.
5902 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5903 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5904 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5905 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5906
66d09542
DE
59072010-04-23 Doug Evans <dje@google.com>
5908
88a1906b
DE
5909 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5910 python.
5911 * configure: Regenerate.
5912 * main.c: #include "python/python.h".
5913 (captured_main): Defer loading auto-loaded scripts until after
5914 local_gdbinit has been sourced.
5915 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5916 (load_auto_scripts_for_objfile): New function.
5917 (auto_load_new_objfile): Call it.
5918 * python/python.h (gdbpy_global_auto_load): Declare.
5919 (load_auto_scripts_for_objfile): Declare.
5920
66d09542
DE
5921 Add support for auto-loading scripts from .debug_gdb_scripts section.
5922 * NEWS: Add entry for .debug_gdb_scripts.
5923 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5924 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5925 (py-auto-load.o): New rule.
5926 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5927 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5928 * python/py-auto-load.c: New file.
5929 * python/python-internal.h: #include <stdio.h>.
5930 (set_python_list, show_python_list): Declare.
5931 (gdbpy_initialize_auto_load): Declare.
5932 (source_python_script_for_objfile): Declare.
5933 * python/python.c: Remove #include of observer.h.
5934 (gdbpy_auto_load): Moved to py-auto-load.c.
5935 (GDBPY_AUTO_FILENAME): Ditto.
5936 (gdbpy_new_objfile): Delete.
5937 (source_python_script_for_objfile): New function.
5938 (set_python_list, show_python_list): Make externally visible.
5939 (_initialize_python): Move "auto-load" command to py-auto-load.c
5940 and observer_attach_new_objfile to py-auto-load.c.
5941
3a48e6ff 59422010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 5943
3a48e6ff
JG
5944 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5945 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5946 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5947 New constants.
5948 (alpha_heuristic_analyze_probing_loop): New function.
5949 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5950 and handle cases when a stack probe loop is generated.
5951 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5952 (alpha_mdebug_max_frame_size_exceeded): New function.
5953 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5954 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5955 Return 0 when the maximum debuggable frame size has been exceeded.
5956
e4166a49
JB
59572010-04-23 Joel Brobecker <brobecker@adacore.com>
5958
5959 Fix ARI warning.
5960 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5961
8bd10a10
CM
59622010-04-20 Chris Moller <cmoller@redhat.com>
5963
5964 PR 10179
5965
5966 * symtab.c (rbreak_command): Added code to include a filename
5967 specification in the rbreak argument.
5968 * NEWS: Added a brief description of filename-qualified rbreak.
5969
c0201579
JK
59702010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5971
5972 Fix crashes on dangling display expressions.
5973 * ada-lang.c (ada_operator_check): New function.
5974 (ada_exp_descriptor): Fill-in the field operator_check.
5975 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5976 * jv-lang.c (exp_descriptor_java): Likewise.
5977 * m2-lang.c (exp_descriptor_modula2): Likewise.
5978 * scm-lang.c (exp_descriptor_scm): Likewise.
5979 * parse.c (exp_descriptor_standard): Likewise.
5980 (operator_check_standard): New function.
5981 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5982 * parser-defs.h (struct exp_descriptor): New field operator_check.
5983 (operator_check_standard, exp_uses_objfile): New declarations.
5984 * printcmd.c: Remove the inclusion of solib.h.
5985 (display_uses_solib_p): Remove the function.
5986 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5987 and exp_uses_objfile instead of display_uses_solib_p.
5988 * solist.h (struct so_list) <objfile>: New comment.
5989 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5990 * symtab.h (lookup_objfile_from_block): New declaration.
5991 (struct general_symbol_info) <obj_section>: Extend the comment.
5992
6ffbb7ab
TJB
59932010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5994 Thiago Jung Bauermann <bauerman@br.ibm.com>
5995
5996 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5997 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5998 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5999 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
6000 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
6001 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
6002 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
6003 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
6004 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
6005 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
6006 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
6007 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
6008 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
6009 Define, in case <ptrace.h> doesn't provide it.
6010 (booke_debug_info): New variable.
6011 (max_slots_number): Ditto.
6012 (hw_break_tuple): New struct.
6013 (thread_points): Ditto.
6014 (ppc_threads): New variable.
6015 (PPC_DEBUG_CURRENT_VERSION): New define.
6016 (have_ptrace_new_debug_booke): New function.
6017 (ppc_linux_check_watch_resources): Renamed to ...
6018 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6019 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6020 (booke_cmp_hw_point): New function.
6021 (booke_find_thread_points_by_tid): Ditto.
6022 (booke_insert_point): Ditto.
6023 (booke_remove_point): Ditto.
6024 (ppc_linux_insert_hw_breakpoint): Ditto.
6025 (ppc_linux_remove_hw_breakpoint): Ditto.
6026 (get_trigger_type): Ditto.
6027 (ppc_linux_insert_watchpoint): Handle BookE processors.
6028 (ppc_linux_remove_watchpoint): Ditto.
6029 (ppc_linux_new_thread): Ditto.
6030 (ppc_linux_thread_exit): New function..
6031 (ppc_linux_stopped_data_address): Handle BookE processors.
6032 (ppc_linux_watchpoint_addr_within_range): Ditto.
6033 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6034 to_remove_hw_breakpoint fields of the target operations struct.
6035 Add observe for the thread_exit event.
6036
be0d2954
L
60372010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6038
6039 * i386-linux-nat.c (regmap): Removed.
6040 (fetch_register): Replace regmap with
6041 i386_linux_gregset_reg_offset.
6042 (store_register): Likewise.
6043 (supply_gregset): Likewise.
6044 (fill_gregset): Likewise.
6045
6046 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6047 global.
6048
6049 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6050
f56dcb88
CM
60512010-04-22 Chris Moller <cmoller@redhat.com>
6052
6053 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6054 method of popping recursion-detection stack with a method based on
6055 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6056 the static array obstack rather than the static member obstack.)
6057
6cd6a2ae
L
60582010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6059
6060 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6061 (_initialize_amd64_linux_nat): Replace
6062 amd64_linux_gregset64_reg_offset with
6063 amd64_linux_gregset_reg_offset.
6064
6065 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6066 global.
6067
6068 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6069
621791b8
PM
60702010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6071
6072 PR stabs/11479.
6073 * stabsread.c (set_length_in_type_chain): New function.
6074 (read_struct_type): Call set_length_in_type_chain function.
6075 (read_enum_type): Idem.
6076
105c2d85
SS
60772010-04-21 Stan Shebs <stan@codesourcery.com>
6078 Nathan Sidwell <nathan@codesourcery.com>
6079
6080 * tracepoint.c (trace_save): Open in binary mode.
6081
9a22f0d0
PM
60822010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6083
6084 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6085 fields.
0407b3f1 6086 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6087 builtin_char32 fields.
6088 * printcmd.c (decode_format): Set char size to '\0'
6089 for strings unless explicit size is given.
6090 (print_formatted): Correct calculation of NEXT_ADDRESS
6091 for 16 or 32 bit strings.
6092 (do_examine): Do not force byte size for strings.
6093 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6094 16 or 32 bit-wide strings.
9a22f0d0
PM
6095 (x_command): Set LAST_SIZE to 'b' for string type.
6096
f335d1b3
L
60972010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6098
6099 PR corefiles/11523
6100 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6101 XCR0 first.
6102
6103 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6104 there is no .reg-xstate section.
6105 (i386_linux_core_read_description): Check XCR0 first.
6106
a9789a6b
MF
61072010-04-21 Mike Frysinger <vapier@gentoo.org>
6108
6109 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6110 for len <= 8.
6111
0b66f317
CM
61122010-04-21 Chris Moller <cmoller@redhat.com>
6113
6114 PR 9167
6115 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6116 method of popping recursion-detection stack with a method based on
6117 obstack_object_size().
0b66f317 6118
6e354e5e
PM
61192010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6120
6121 PR pascal/11492.
6122 * p-valprint.c (pascal_val_print): Fix default printing of integer
6123 arrays.
6124
57174f31
PM
61252010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6126
6127 Fix compilation warning on gcc-4.1.2.
6128 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6129 local variable`pc' to zero.
6130
6fbc7cd8
JB
61312010-04-20 Joel Brobecker <brobecker@adacore.com>
6132
6133 Implement thread support with core files on alpha-tru64.
6134 * dec-thread.c (dec_thread_find_new_threads): New function,
6135 extracted from resync_thread_list.
6136 (resync_thread_list): Add OPS parameter. Replace extracted-out
6137 code by call to dec_thread_find_new_threads.
6138 (dec_thread_wait): Update call to resync_thread_list.
6139 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6140
438c98a1
JB
61412010-04-20 Joel Brobecker <brobecker@adacore.com>
6142
6143 * ada-lang.c (value_pointer): New function.
6144 (make_array_descriptor): Call value_pointer to convert addresses to
6145 pointers.
6146
2971b56b
JB
61472010-04-20 Joel Brobecker <brobecker@adacore.com>
6148
6149 * rs6000-aix-tdep.c: #include exceptions.h.
6150 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6151 while reading the memory at ADDR, then ADDR cannot be a function
6152 descriptor.
6153
be942545
JB
61542010-04-20 Joel Brobecker <brobecker@adacore.com>
6155
6156 * ada-typeprint.c (ada_print_typedef): New function.
6157 * ada-lang.h (ada_print_typedef): Add declaration.
6158 * ada-lang.c (ada_language_defn): set la_print_typdef field
6159 to ada_print_typedef.
6160
1ca8fce0
JB
61612010-04-20 Joel Brobecker <brobecker@adacore.com>
6162
6163 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6164
e9ef4f39
JB
61652010-04-20 Joel Brobecker <brobecker@adacore.com>
6166
6167 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6168 (iterate_over_mappings): Adjust function profile. Add declaration.
6169 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6170 Adjust accordingly.
6171
e294797a
JB
61722010-04-20 Joel Brobecker <brobecker@adacore.com>
6173
6174 * procfs.c (solib_mappings_callback): Move function up to avoid
6175 a compiler warning.
6176
a223f1e7
JB
61772010-04-20 Joel Brobecker <brobecker@adacore.com>
6178
6179 * procfs.c (find_signalled_thread, find_stop_signal): Move
6180 these functions down to define them only when used.
6181
0c3acc09
JB
61822010-04-20 Joel Brobecker <brobecker@adacore.com>
6183
6184 * valprint.c (common_val_print): Fix the value before extracting
6185 its contents.
6186 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6187 * ada-lang.h (ada_to_fixed_value): New function declaration.
6188 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6189 to avoid code duplication and fix a bug in the handling of
6190 fixed types contents.
6191
31ef98ae
TT
61922010-04-20 Tom Tromey <tromey@redhat.com>
6193
6194 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6195 (read_partial_die): Likewise.
6196 (dwarf_attr_name): Likewise.
6197
ec31cde5 61982010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6199
ec31cde5
CM
6200 PR 10867
6201
6202 * cp-valprint.c (global): Adding new static array recursion
6203 detection obstack.
6204 (cp_print_value_fields, cp_print_static_field): Added new static
6205 array recursion detection code.
6206
e0e0e543
MK
62072010-04-20 Mark Kettenis <kettenis@gnu.org>
6208
6209 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6210 general-purpose register set should be 68 instead of 144.
6211 (i386_linux_sse_regset_sections): Likewise.
6212 (i386_linux_avx_regset_sections): Likewise.
6213
08922a10
SS
62142010-04-20 Stan Shebs <stan@codesourcery.com>
6215 Nathan Sidwell <nathan@codesourcery.com>
6216
6217 * dwarf2loc.c (struct axs_var_loc): New struct.
6218 (dwarf2_tracepoint_var_loc): New function.
6219 (dwarf2_tracepoint_var_access): New function.
6220 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6221 with DW_OP_piece.
6222 (locexpr_describe_location_piece): New function.
6223 (locexpr_describe_location_1): New function.
6224 (locexpr_describe_location): Call it, update signature.
6225 (loclist_describe_location): Rewrite to loop over locations,
6226 update signature.
6227 * symtab.h (struct symbol_computed_ops): Add address to
6228 describe_location arguments, return void.
6229 * printcmd.c (address_info): Get context PC, pass to computed
6230 location description.
6231 * tracepoint.c (scope_info): Ditto.
6232 * ax-gdb.c (trace_kludge): Export.
6233
2dc7f7b3
TT
62342010-04-20 Tom Tromey <tromey@redhat.com>
6235
6236 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6237 (struct dwarf2_cie) <segment_size>: New field.
6238 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6239 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6240 DW_FORM_exprloc.
6241 (read_attribute_value): Handle DW_FORM_flag_present,
6242 DW_FORM_sec_offset, DW_FORM_exprloc.
6243 (dump_die_shallow): Likewise.
6244 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6245 (dwarf2_const_value): Handle DW_FORM_exprloc.
6246 (attr_form_is_block): Likewise.
6247 (struct line_header) <maximum_ops_per_instruction>: New field.
6248 (dwarf_decode_line_header): Set new field.
6249 (dwarf_decode_lines): Handle new field.
6250
ce4b0682
SDJ
62512010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6252
6253 * f-exp.y: Add new production to recognize the `logical*8' type.
6254 (LOGICAL_S8_KEYWORD): New token.
6255 * f-lang.c (enum f_primitive_types)
6256 <f_primitive_type_logical_s8>: New field.
6257 (f_language_arch_info): Handling `logical*8' type.
6258 (build_fortran_types): Building `logical*8' type.
6259 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6260
ff9f22f1
DE
62612010-04-19 Doug Evans <dje@google.com>
6262
6263 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6264 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6265 (pipe_close): Ditto.
6266
437125bd
PM
62672010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6268
6269 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6270
e8e6c82e
PM
62712010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6272
6273 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6274 type to void function.
6275
4136fdd2
SS
62762010-04-19 Stan Shebs <stan@codesourcery.com>
6277 Vladimir Prus <vladimir@codesourcery.com>
6278
6279 * tracepoint.c (tfind_1): Add missing newline, report exit from
6280 tfind mode as such.
6281 * target.c (update_current_target): Make default
6282 to_trace_find return -1.
6283
0c4b2e63
MF
62842010-04-19 Mike Frysinger <vapier@gentoo.org>
6285
6286 * objc-lang.c (find_methods): Move symname check up.
6287
78076abc
PA
62882010-04-19 Pedro Alves <pedro@codesourcery.com>
6289
6290 * ada-lang.c (print_recreate_exception)
6291 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6292 not "catch unhandled".
6293
6149aea9
PA
62942010-04-19 Pedro Alves <pedro@codesourcery.com>
6295
6296 PR breakpoints/8554.
6297
6298 Implement `save-breakpoints'.
6299
6300 * breakpoint.c (save_cmdlist): New.
6301 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6302 to save_cmdlist.
6303 (print_recreate_catch_fork): New.
6304 (catch_fork_breakpoint_ops): Install it.
6305 (print_recreate_catch_vfork): New.
6306 (catch_vfork_breakpoint_ops): Install it.
6307 (print_recreate_catch_syscall): New.
6308 (catch_syscall_breakpoint_ops): Install it.
6309 (print_recreate_catch_exec): New.
6310 (catch_exec_breakpoint_ops): Install it.
6311 (print_recreate_exception_catchpoint): New.
6312 (gnu_v3_exception_catchpoint_ops): Install it.
6313 (save_breakpoints): New, based on tracepoint_save_command, but
6314 handle all breakpoint types.
6315 (save_breakpoints_command): New.
6316 (tracepoint_save_command): Rename to...
6317 (save_tracepoints_command): ... this, and reimplement using
6318 save_breakpoints.
6319 (save_command): New.
6320 (_initialize_breakpoints): Install the "save" command prefix.
6321 Install the "save breakpoints" command. Make "save-tracepoints" a
6322 deprecated alias for "save tracepoints".
6323 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6324 * ada-lang.c (print_recreate_exception): New.
6325 (print_recreate_catch_exception): New.
6326 (catch_exception_breakpoint_ops): Install it.
6327 (print_recreate_catch_exception_unhandled): New.
6328 (catch_exception_unhandled_breakpoint_ops): Install it.
6329 (print_recreate_catch_assert): New.
6330 (catch_assert_breakpoint_ops): Install it.
6331
6332 * NEWS: Mention the new `save breakpoints' command. Mention the
6333 new `save tracepoints' alias and that `save-tracepoints' is now
6334 deprecated.
6335
0a8fce9a
PA
63362010-04-18 Pedro Alves <pedro@codesourcery.com>
6337
6338 PR tui/9217
6339
6340 * tui/tui-out.c: Include cli-out.h.
6341 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6342 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6343 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6344 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6345 declarations.
6346 (struct ui_out_data): Rename to...
6347 (struct tui_ui_out_data): ... this. Remove `stream' and
6348 `suppress_output' fields, and inherit cli_ui_out_data.
6349 (tui_out_data): New typedef.
6350 (tui_ui_out_impl): Don't initialize fields staticaly.
6351 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6352 (tui_begin, tui_end): Delete.
6353 (tui_field_int): Adjust to delegate most work to the base type.
6354 (tui_field_skip): Delete.
6355 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6356 delegate most work to the base type.
6357 (tui_spaces): Delete.
6358 (tui_text): Adjust to delegate most work to the base type.
6359 (tui_message): Delete.
6360 (tui_wrap_hint): Delete.
6361 (tui_flush): Delete.
6362 (out_field_fmt): Delete.
6363 (field_separator): Delete.
6364 (tui_out_new): Adjust to initialize the base type.
6365 (_initialize_tui_out): Initialize tui_ui_out_impl.
6366 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6367 cli_ui_out_data.
6368 (cli_out_data): Adjust.
6369 (cli_ui_out_impl): Make extern.
6370 (cli_table_header, cli_field_int, cli_field_skip): Use
6371 uo_field_string instead of cli_field_string.
6372 (cli_redirect): Adjust to use cli_out_data.
6373 (cli_out_data_ctor): New.
6374 (cli_out_new): Use it.
6375 * cli-out.h (struct ui_file): Remove forward declaration.
6376 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6377 (cli_ui_out_impl): Declare.
6378 (cli_out_data_ctor): Declare.
6379 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6380 (uo_field_string): No longer static.
6381 (ui_out_data): Change return type to void pointer.
6382 (ui_out_new): Change `data' parameter type to void pointer.
6383 * ui-out.h (struct ui_out_data): Don't forward declare.
6384 (ui_out_data): Change return type to void pointer.
6385 (ui_out_new): Change `data' parameter type to void pointer.
6386 (uo_field_string): Declare.
6387
172240dd
PA
63882010-04-17 Pedro Alves <pedro@codesourcery.com>
6389
6390 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6391 instead of always false.
6392
ed41462c
L
63932010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6394
6395 PR corefiles/11511
6396 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6397 orig_rax.
6398
cc60f2e3
PA
63992010-04-17 Pedro Alves <pedro@codesourcery.com>
6400
6401 * breakpoint.c (watchpoints_triggered): Use
6402 is_hardware_watchpoint.
6403 (watchpoints_triggered): Ditto.
6404 (bpstat_check_location): Use is_watchpoint and
6405 is_hardware_watchpoint.
6406 (bpstat_check_watchpoint): Use is_watchpoint and
6407 is_hardware_watchpoint.
6408 (bpstat_stop_status): Fix comment.
6409 (user_settable_breakpoint): Use is_watchpoint.
6410 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6411 (disable_watchpoints_before_interactive_call_start): Use
6412 is_watchpoint.
6413 (enable_watchpoints_after_interactive_call_stop): Use
6414 is_watchpoint.
6415 (clear_command): Use is_watchpoint.
6416 (do_enable_breakpoint): Use is_watchpoint.
6417
cb7db0f2
MF
64182010-04-16 Mike Frysinger <vapier@gentoo.org>
6419
6420 * solib-frv.c (enable_break1_done): Delete.
6421 (enable_break2): Do not check enable_break1_done. Move the
6422 enable_break2_done setting and call to
6423 remove_solib_event_breakpoints() to the end. Return without
6424 warning when the contents of _dl_debug_addr are 0.
6425 (enable_break): Do not set enable_break1_done.
6426 (frv_clear_solib): Likewise.
6427
d77b48cf
KB
64282010-04-16 Kevin Buettner <kevinb@redhat.com>
6429
6430 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6431 instead of an error if no PLT entry is found. Return a
6432 potentially useful result.
6433 (m32c_m16c_pointer_to_address): Add code to search for function
6434 address when no .plt entry is found.
6435
f90824dc
SS
64362010-04-16 Stan Shebs <stan@codesourcery.com>
6437
6438 * tracepoint.c (trace_variable_command): Run a cleanup.
6439
9b79b476
PM
64402010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6441
6442 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6443
711e434b
PM
64442010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6445
6446 Support for Windows OS Thread Information Block.
6447 * NEWS: Document new feature.
6448 * remote.c (PACKET_qGetTIBAddr): New enum element.
6449 (remote_get_tib_address): New function.
6450 (init_remote_ops): Set to_get_tib_address field
6451 to remote_get_tib_address.
6452 (_initialize_remote): Add add_packet_config_cmd
6453 for PACKET_qGetTIBAddr.
6454 * target.c (update_current_target): Set default value for
6455 new to_get_tib_address field.
6456 * target.h (target_ops): New field to_get_tib_address.
6457 (target_get_tib_address): New macro.
6458 * windows-nat.c (thread_info): Add thread_local_base field.
6459 (windows_add_thread): Add tlb argument of type 'void *'.
6460 (fake_create_process): Adapt windows_add_thread call.
6461 (get_windows_debug_event): Idem.
6462 (windows_get_tib_address): New function.
6463 (init_windows_ops): Set to_get_tib_address field
6464 to remote_get_tib_address.
6465 (_initialize_windows_nat): Replace info_w32_cmdlist
6466 initialization by a call to init_w32_command_list.
6467 (info_w32_command, info_w32_cmdlist): Removed from here...
6468 to windows-tdep.c file.
6469 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 6470 (init_w32_command_list): New external function
711e434b
PM
6471 declaration.
6472 * windows-tdep.c: Add several headers.
6473 (info_w32_cmdlist): to here, made global.
6474 (thread_information_32): New struct.
6475 (thread_information_64): New struct.
6476 (TIB_NAME): New char array.
6477 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6478 (maint_display_all_tib): New static variable.
6479 (windows_get_tlb_type): New function.
6480 (tlb_value_read, tlb_value_write): New functions.
6481 (tlb_value_funcs): New static struct.
6482 (tlb_make_value): New function.
6483 (display_one_tib): New function.
6484 (display_tib): New function.
6485 (show_maint_show_all_tib):New function.
6486 (info_w32_command): Moved from windows-nat.c.
6487 (init_w32_command_list): New function.
6488 (_initialize_windows_tdep): New function.
6489 New "maint set/show show-all-tib" command
6490 New "$_tlb" internal variable.
6491
cae3f17b
JB
64922010-04-16 Joel Brobecker <brobecker@adacore.com>
6493
6494 * tui/tui-regs.c (tui_display_register): Add comment about
6495 a couple of casts.
6496 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6497
2ce6d6bf
SS
64982010-04-15 Stan Shebs <stan@codesourcery.com>
6499
6500 * frame.c: Include tracepoint.h.
6501 (get_current_frame): Allow a trace frame to be an alternate source
6502 of stack frame data.
6503 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6504 it won't succeed.
6505
7e559477
PA
65062010-04-15 Pedro Alves <pedro@codesourcery.com>
6507
6508 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6509 flags.
6510 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6511
3f7b2faa
DE
65122010-04-15 Doug Evans <dje@google.com>
6513
fa33c3cd
DE
6514 * NEWS: Add entry for python program space support.
6515 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6516 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6517 (py-progspace.o): New rule.
6518 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6519 function.
6520 (find_pretty_printer_from_progspace): New function.
6521 (find_pretty_printer_from_gdb): New function.
6522 (find_pretty_printer): Rewrite.
6523 * python/py-progspace.c: New file.
6524 * python/python-internal.h (program_space): Add forward decl.
6525 (pspace_to_pspace_object, pspy_get_printers): Declare.
6526 (gdbpy_initialize_pspace): Declare.
6527 * python/python.c: #include "progspace.h".
6528 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6529 (_initialize_python): Call gdbpy_initialize_pspace.
6530 (GdbMethods): Add current_progspace, progspaces.
6531
3f7b2faa
DE
6532 Add -s option to source command.
6533 * NEWS: Document new option.
6534 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6535 Delete from_tty and cleanupp args. Split filep arg into file and
6536 full_pathp. New arg search_path.
6537 (source_script_from_stream): New function.
6538 (source_script_with_search): New function.
6539 (source_script): Rewrite.
6540 (source_command): Parse "-s" option.
6541 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6542 * python/python.c (source_python_script): Make file arg a const char *.
6543 Don't call fclose, leave for caller.
6544 * python/python.h (source_python_script): Update.
6545
a86988f2
PA
65462010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6547 Pedro Alves <pedro@codesourcery.com>
6548
6549 Avoid rereading shared libraries that haven't changed.
6550
6551 * solib.c (free_so_symbols): New function, from ...
6552 (free_so): ... here. Call it.
6553 (solib_read_symbols): Don't warn here if symbols have already been
6554 loaded.
6555 (solib_add): Warn here instead, if a pattern was specified.
6556 (reload_shared_libraries_1): New.
6557 (reload_shared_libraries): Rewrite to not fetch the library list.
6558
e6d9b9c2
DE
65592010-04-14 Doug Evans <dje@google.com>
6560
589390d6 6561 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
6562 concatenating string to search path.
6563
516ba659
PA
65642010-04-14 Pedro Alves <pedro@codesourcery.com>
6565
6566 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6567 * objfiles.c (gdb_bfd_close_or_warn): New.
6568 * corelow.c: Include objfiles.h
6569 (core_close): Use gdb_bfd_close_or_warn.
6570 * elfread.c (build_id_verify): Ditto.
6571 * exec.c (exec_close, exec_close_1): Ditto.
6572
048d532d
PA
65732010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6574 Pedro Alves <pedro@codesourcery.com>
6575
6576 Group errors for many missing shared libraries.
6577
6578 * solist.h (struct so_list): Remove from_tty.
6579 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6580 (solib_map_sections): Take so_list argument. Return 0 if we
6581 failed to open a BFD. Add target sections here.
6582 (symbol_add_stub): Delete.
6583 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6584 not from_tty copied from the so_list. Don't warn a second time
6585 for a missing library.
6586 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6587 add to the section table here. Print out a single warning for all
6588 missing libraries.
6589 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6590 flags.
6591
044c0f87
PM
65922010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6593
6594 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6595 error/warning messages. Capitalize and use complete sentences.
6596 (blpy_block_syms_iternext): Likewise.
6597 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6598 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6599 (frame_info_to_frame_object, frapy_read_var)
6600 (gdbpy_frame_stop_reason_string): Likewise.
6601 * python/py-lazy-string.c (stpy_convert_to_value)
6602 (gdbpy_create_lazy_string_object): Likewise.
6603 * python/py-objfile.c (objfpy_set_printers): Likewise.
6604 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6605 * python/python.c (parameter_to_python): Likewise.
6606 * python/py-type.c (typy_range, typy_target): Likewise.
6607 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6608 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6609
6610
79f283fe
PM
66112010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6612
6613 PR python/11381
6614
6615 * python/py-prettyprint.c (pretty_print_one_value): Test for
6616 Py_None.
6617 (print_string_repr): Test for Py_None. Set flags accordingly.
6618 Return value depending on return type.
6619 (print_children): Take a value indicating whether data was printed
6620 before this function was called. Alter output accordingly.
6621 (apply_val_pretty_printer): Capture return value from
6622 print_string_repr and pass to print_children.
6623
4ac5d44e
MK
66242010-04-13 Mark Kettenis <kettenis@gnu.org>
6625
e1caee70 6626 PR corefiles/11481
4ac5d44e
MK
6627 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6628 register note sections.
6629 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6630 New variables.
6631 (i386_linux_init_abi): Install list of supported register note
6632 sections that matches the target description.
6633
ad91cd99
PA
66342010-04-13 Pedro Alves <pedro@codesourcery.com>
6635
6636 * remote.c (remote_get_noisy_reply): Don't error out on empty
6637 replies.
6638 (remote_start_remote): Update and merge tracepoints and trace
6639 state variables as long as the target supports tracepoints.
6640 (remote_trace_init): Fix prototype.
6641 (remote_download_trace_state_variable): Validate reply.
6642 (remote_trace_set_readonly_regions): Fix prototype.
6643 (remote_trace_start): Fix prototype. Check for empty reply.
6644 (remote_get_trace_status): Small cleanup.
6645 (remote_trace_stop): Fix prototype. Check for empty reply.
6646 (remote_trace_find): Check for empty reply.
6647 (remote_save_trace_data): Validate reply.
6648 (remote_set_disconnected_tracing): Check for empty reply, and
6649 validate reply.
6650 (remote_set_circular_trace_buffer): Ditto.
6651
ae3bccd4
PM
66522010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6653
6654 Suppress unused value warning during compilation.
6655 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6656 calls to void.
6657 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6658
523136f2
SS
66592010-04-12 Stan Shebs <stan@codesourcery.com>
6660
6661 * tracepoint.c (tfile_xfer_partial): Check read result.
6662
0d18d720
MF
66632010-04-12 Mike Frysinger <vapier@gentoo.org>
6664
6665 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6666 * remote-sim.c (gdbsim_files_info): Likewise.
6667
3b273a55
RE
66682010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6669
6670 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6671 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6672 variable.
6673 (fetch_vfp_registers): New function to fetch VFP registers.
6674 (store_vfp_registers): New function to store VFP registers.
6675 (arm_linux_fetch_inferior_registers): Add support for VFP
6676 registers.
6677 (arm_linux_store_inferior_registers): Likewise.
6678 (arm_linux_read_description): Likewise.
6679 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6680 until we need it.
6681
778c7095
L
66822010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6683
6684 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6685 tdep.
6686 (amd64_collect_xstateregset): Likewise.
6687
2114d44c
SS
66882010-04-09 Stan Shebs <stan@codesourcery.com>
6689
87290684
SS
6690 * tracepoint.c (trace_status_mi): Report frames created.
6691
2114d44c
SS
6692 * tracepoint.c (trace_dump_command): Include default-collect
6693 expressions.
6694
86da934b
UW
66952010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6696
6697 * symtab.c (find_function_start_sal): Never return SAL pointing
6698 before function start address, even if line info is missing.
6699
2d6e647a 67002010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
6701
6702 * NEWS: Mention tracepoints support.
6703
a97153c7
PA
67042010-04-09 Pedro Alves <pedro@codesourcery.com>
6705
6706 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6707 circular trace buffer statuses.
6708
7a66d603
JK
67092010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6710
6711 * config/djgpp/fnchange.lst: Fix typo in translations for
6712 symbol-without-target_section.exp and symbol-without-target_section.c.
6713
2566ad2d
PA
67142010-04-09 Pedro Alves <pedro@codesourcery.com>
6715
6716 * breakpoint.c (condition_command): Pass condition expression to
6717 set_breakpoint_condition stripped from breakpoint number.
6718
adc36818
PM
67192010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6720 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 6721 Tom Tromey <tromey@redhat.com>
adc36818
PM
6722
6723 * breakpoint.c (condition_command): Simplify. Move condition
6724 setting code to ...
6725 (set_breakpoint_condition): ... here. New function.
6726 * breakpoint.h (set_breakpoint_condition): Declare.
6727 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6728 (SUBDIR_PYTHON_SRCS): Likewise.
6729 (py-breakpoint.o): New rule.
6730 * python/py-breakpoint.c: New file.
6731 * python/python-internal.h (gdbpy_breakpoints)
6732 (gdbpy_initialize_breakpoints): Declare.
6733 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6734
219f2f23
PA
67352010-04-09 Pedro Alves <pedro@codesourcery.com>
6736
6737 * regformats/regdat.sh: Include server.h. Don't include
6738 regcache.h.
6739
33da3f1c
SS
67402010-04-08 Stan Shebs <stan@codesourcery.com>
6741 Pedro Alves <pedro@codesourcery.com>
6742
6743 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6744 and circular_buffer.
6745 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6746 * tracepoint.c (trace_status_command): Display target's status for
6747 disconnected tracing and circular buffer.
6748 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6749 query for non-disconnected-tracing case, remove the stop_tracing
6750 call.
6751 (tfile_open): Clear disconnected and circular buffer status.
6752 (trace_save): Save disconnected and circular buffer status.
6753 (parse_trace_status): Parse disconnected and circular buffer status,
6754 also recognize disconnected as a stop reason.
6755 * remote.c (remote_set_disconnected_tracing): Only set
6756 QTDisconnected if the remote end supports disconnected tracing.
6757 Warn otherwise, if trying to enable disconnected tracing.
6758 * infcmd.c (detach_command): Update disconnect_tracing call.
6759 * cli/cli-cmds.c (quit_command): Ditto.
6760
4e4d8374
L
67612010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6762
6763 * i387-tdep.c (i387_collect_xsave): Replace abort with
6764 internal_error.
6765
ad443146
SS
67662010-04-08 Stan Shebs <stan@codesourcery.com>
6767
6768 * breakpoint.c (default_collect_info): New function.
6769 (breakpoints_info): Call it.
6770 (maintenance_info_breakpoints): Ditto.
6771 (tracepoints_info): Ditto.
6772
40936b0d
L
67732010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6774
6775 * i387-tdep.c (i387_collect_xsave): Re-indent.
6776
3a13a53b
L
67772010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6778
6779 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6780 if HAVE_PTRACE_GETFPXREGS is defined.
6781 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6782 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6783
6784 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6785 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6786 if .reg-xfp section doesn't exist.
6787 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6788
6789 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6790
6791 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6792 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6793 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6794 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6795 (i386_gdbarch_init): Update comments.
6796 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6797
6798 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6799
6800 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6801
6802 * features/Makefile (i386/i386-mmx-expedite): New.
6803 (i386/i386-mmx-linux-expedite): Likewise.
6804 ($(outdir)/i386/i386-mmx.dat): Likewise.
6805 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6806
6807 * features/i386/i386-mmx-linux.c: New.
6808 * features/i386/i386-mmx-linux.xml: Likewise.
6809 * features/i386/i386-mmx.c: Likewise.
6810 * features/i386/i386-mmx.xml: Likewise.
6811 * regformats/i386/i386-mmx-linux.dat: Likewise.
6812 * regformats/i386/i386-mmx.dat: Likewise.
6813
6814 * features/Makefile (WHICH): Add i386/i386-mmx and
6815 i386/i386-mmx-linux.
6816
08001717
DE
68172010-04-08 Doug Evans <dje@google.com>
6818
6819 * source.c (openp): Skip $cdir in PATH.
6820
fff5cc64
PM
68212010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6822
6823 PR python/11417
fff5cc64 6824 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
6825 a NULL address.
6826 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6827 address and a zero length.
fff5cc64 6828
f8c4f480
HZ
68292010-04-08 Hui Zhu <teawater@gmail.com>
6830
6831 * i386-tdep.c (i386_process_record): Add support for insn
6832 rdtsc.
6833
eb5cda86
DE
68342010-04-07 Doug Evans <dje@google.com>
6835
6836 * python/python.c (source_python_script): Use ensure_python_env
6837 to prepare environment for script.
6838
a055a187
L
68392010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6840
6841 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6842 <sys/uio.h> and "i386-xstate.h".
6843 (PTRACE_GETREGSET): New.
6844 (PTRACE_SETREGSET): Likewise.
6845 (have_ptrace_getregset): Likewise.
6846 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6847 registers.
6848 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6849 registers.
6850 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6851 (amd64_linux_store_inferior_registers): Likewise.
6852 (amd64_linux_read_description): Check and enable AVX target
6853 descriptions.
6854
6855 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6856 and "features/i386/amd64-avx-linux.c".
6857 (amd64_linux_regset_sections): New.
6858 (amd64_linux_core_read_description): Check and enable AVX
6859 target description.
6860 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6861 set_gdbarch_core_regset_sections.
6862 (_initialize_amd64_linux_tdep): Call
6863 initialize_tdesc_amd64_avx_linux.
6864
6865 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6866 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6867 (tdesc_amd64_avx_linux): New.
6868 (amd64_linux_update_xstateregset): Likewise.
6869
6870 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6871 (amd64_ymm_names): New.
6872 (amd64_ymmh_names): Likewise.
6873 (amd64_register_name): Likewise.
6874 (amd64_supply_xstateregset): Likewise.
6875 (amd64_collect_xstateregset): Likewise.
6876 (amd64_supply_xsave): Likewise.
6877 (amd64_collect_xsave): Likewise.
6878 (AMD64_NUM_REGS): Removed.
6879 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6880 %xmmN if AVX is available.
6881 (amd64_pseudo_register_name): Support pseudo YMM registers.
6882 (amd64_regset_from_core_section): Support .reg-xstate section.
6883 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6884 and ymm0h_regnum. Call set_gdbarch_register_name.
6885 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6886
6887 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6888 AMD64_YMM15H_REGNUM.
6889 (AMD64_NUM_REGS): New.
6890 (amd64_supply_xsave): Likewise.
6891 (amd64_collect_xsave): Likewise.
6892 (amd64_register_name): Removed.
6893 (amd64_register_type): Likewise.
6894
31aeac78
L
68952010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6896
6897 * i387-tdep.c: Include "i386-xstate.h".
6898 (XSAVE_XSTATE_BV_ADDR): New.
6899 (xsave_avxh_offset): Likewise.
6900 (XSAVE_AVXH_ADDR): Likewise.
6901 (i387_supply_xsave): Likewise.
6902 (i387_collect_xsave): Likewise.
6903
6904 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6905 (I387_YMM0H_REGNUM): Likewise.
6906 (I387_YMMENDH_REGNUM): Likewise.
6907 (i387_supply_xsave): Likewise.
6908 (i387_collect_xsave): Likewise.
6909
c131fcee
L
69102010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6911
6912 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6913 <sys/uio.h> and "i386-xstate.h".
6914 (PTRACE_GETREGSET): New.
6915 (PTRACE_SETREGSET): Likewise.
6916 (fetch_xstateregs): Likewise.
6917 (store_xstateregs): Likewise.
6918 (GETXSTATEREGS_SUPPLIES): Likewise.
6919 (regmap): Include 8 upper YMM registers.
6920 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6921 state.
6922 (i386_linux_store_inferior_registers): Likewise.
6923 (i386_linux_read_description): Check and enable AVX target
6924 descriptions.
6925
6926 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6927 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6928 (i386_linux_regset_sections): Add ".reg-xstate".
6929 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6930 (i386_linux_core_read_xcr0): New.
6931 (i386_linux_core_read_description): Check and enable AVX target
6932 description.
6933 (i386_linux_init_abi): Set xsave_xcr0_offset.
6934 (_initialize_i386_linux_tdep): Call
6935 initialize_tdesc_i386_avx_linux.
6936
6937 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6938 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6939 (i386_linux_core_read_xcr0): New.
6940 (tdesc_i386_avx_linux): Likewise.
6941 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6942
6943 * i386-tdep.c: Include "i386-xstate.h" and
6944 "features/i386/i386-avx.c".
6945 (i386_ymm_names): New.
6946 (i386_ymmh_names): Likewise.
6947 (i386_ymmh_regnum_p): Likewise.
6948 (i386_ymm_regnum_p): Likewise.
6949 (i386_xmm_regnum_p): Likewise.
6950 (i386_register_name): Likewise.
6951 (i386_ymm_type): Likewise.
6952 (i386_supply_xstateregset): Likewise.
6953 (i386_collect_xstateregset): Likewise.
6954 (i386_sse_regnum_p): Removed.
6955 (i386_pseudo_register_name): Support pseudo YMM registers.
6956 (i386_pseudo_register_type): Likewise.
6957 (i386_pseudo_register_read): Likewise.
6958 (i386_pseudo_register_write): Likewise.
6959 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6960 %xmmN if AVX is available.
6961 (i386_regset_from_core_section): Support .reg-xstate section.
6962 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6963 (i386_process_record): Replace i386_sse_regnum_p with
6964 i386_xmm_regnum_p.
6965 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6966 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 6967 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
6968 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6969 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6970 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6971 Set ymm0_regnum.
6972 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6973
6974 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6975 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6976 i386_ymm_type.
6977 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6978 (I386_AVX_NUM_REGS): New.
6979 (i386_xmm_regnum_p): Likewise.
6980 (i386_ymm_regnum_p): Likewise.
6981 (i386_ymmh_regnum_p): Likewise.
6982
6983 * common/i386-xstate.h: New.
6984
98adf0f3
L
69852010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6986
6987 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6988
6989 * features/Makefile (WHICH): Add i386/i386-avx,
6990 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6991 (i386/i386-avx-expedite): New.
6992 (i386/i386-avx-linux-expedite): Likewise.
6993 (i386/x86-64-avx-expedite):Likewise.
6994 (i386/x86-64-avx-linux-expedite): Likewise.
6995 ($(outdir)/i386/i386-avx.dat): New dependency.
6996 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6997 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6998 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6999
7000 * features/i386/32bit-avx.xml: New.
7001 * features/i386/64bit-avx.xml: Likewise.
7002 * features/i386/i386-avx-linux.c: Likewise.
7003 * features/i386/i386-avx-linux.xml: Likewise.
7004 * features/i386/i386-avx.c: Likewise.
7005 * features/i386/i386-avx.xml: Likewise.
7006 * features/i386/x86-64-avx-linux.c: Likewise.
7007 * features/i386/x86-64-avx-linux.xml: Likewise.
7008 * features/i386/x86-64-avx.c: Likewise.
7009 * features/i386/x86-64-avx.xml: Likewise.
7010 * regformats/i386/i386-avx-linux.dat: Likewise.
7011 * regformats/i386/i386-avx.dat: Likewise.
7012 * regformats/i386/x86-64-avx-linux.dat: Likewise.
7013 * regformats/i386/x86-64-avx.dat: Likewise.
7014
05159abe
DE
70152010-04-07 Doug Evans <dje@google.com>
7016
7017 * top.c (source_file_name): Make const char *.
7018 * top.h (source_file_name): Update.
7019 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7020 const char *.
7021 (script_from_file): Change `file' arg to const char *.
7022 * cli/cli-script.h (script_from_file): Update.
7023
96e39866
DE
70242010-04-06 Doug Evans <dje@google.com>
7025
7026 * cli/cli-cmds.c (source_command): Run cleanups.
7027
3149d8c1
SS
70282010-04-06 Stan Shebs <stan@codesourcery.com>
7029
7030 * defs.h (char_ptr): Move typedef here from...
7031 * ada-lang.c (char_ptr): Remove.
7032 * charset.c (char_ptr): Remove.
7033 * tracepoint.h (struct uploaded_string): Remove.
7034 (struct uploaded_tp): Use vectors for string arrays.
7035 * tracepoint.c (trace_save): Use vectors of actions.
7036 (parse_tracepoint_definition): Ditto.
7037 (get_uploaded_tp): Clear vectors.
7038 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7039 (next_cmd): Change to an int.
7040 (read_next_cmd): Use vector of command strings.
7041
4cc23ede
DE
70422010-04-06 Doug Evans <dje@google.com>
7043
7044 * top.h (source_script, cd_command): Delete.
7045 * main.c: #include "cli/cli-cmds.h"
7046
bd333fb7
KB
70472010-04-06 Kevin Buettner <kevinb@redhat.com>
7048
7049 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7050 type in bytes, not bits.
7051
ec8a089a
PM
70522010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7053
7054 * stabsread.c (define_symbol): Add support for char
7055 and string constants.
7056
2244ba2e
PM
70572010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7058
7059 Remove remaining "%ll" uses.
7060 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7061 hex_string call.
7062 * rs6000-nat.c (rs6000_ptrace64): Idem.
7063 * solib-pa64.c (pa64_current_sos): Idem.
7064 * solib-spu.c (spu_current_sos): Idem.
7065 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7066 plongest call.
7067 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7068 phex (VAR, 8) call.
7069 * sh64-tdep.c (sh64_show_media_regs): Idem.
7070
fce3c1f0
SS
70712010-04-05 Stan Shebs <stan@codesourcery.com>
7072
7073 * tracepoint.c: Include gdbcore.h.
7074 (tfile_xfer_partial): Return partial results, also try reading
7075 from executable.
7076 (tfile_has_all_memory): New function.
7077 (init_tfile_ops): Use it.
7078
626ea16d
SDJ
70792010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7080
7081 PR gdb/10736:
7082 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7083 the changes in data-directory.
7084 (init_sysinfo): Reload the syscall XML file if the data-directory
7085 has changed.
7086
1f7ccab2
JK
70872010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7088
7089 Code cleanup.
7090 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7091
d77f58be
SS
70922010-04-04 Stan Shebs <stan@codesourcery.com>
7093 Nathan Sidwell <nathan@codesourcery.com>
7094
7095 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7096 breakpoints printed.
7097 (is_hardware_watchpoint): Make argument const.
7098 (is_watchpoint): Ditto.
7099 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7100 use it everywhere.
7101 (breakpoints_info): Pass NULL to breakpoint_1.
7102 (maintenance_info_breakpoints): Ditto.
7103 (watchpoints_info): New function.
7104 (tracepoints_info): Use breakpoint_1 filter.
7105 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7106 (_initialize_breakpoint): Make "info watchpoints" its own command.
7107 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7108 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7109
af54718e
SS
71102010-04-04 Stan Shebs <stan@codesourcery.com>
7111
7112 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7113
74d1f91e
JK
71142010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7115
7116 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7117 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7118
91d91ceb
JK
71192010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7120
7121 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7122 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7123
60531b24
JK
71242010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7125
7126 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7127 code form.
7128
a3c4230a
HZ
71292010-04-02 Hui Zhu <teawater@gmail.com>
7130
7131 * i386-tdep.c (OT_DQUAD): New enum.
7132 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7133 SSE3, SSSE3 and SSE4.
7134
b15758fe
HZ
71352010-04-02 Hui Zhu <teawater@gmail.com>
7136
7137 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7138 "*addr = 0".
7139
afd02f27
PA
71402010-04-02 Pedro Alves <pedro@codesourcery.com>
7141
7142 * tracepoint.c (trace_dump_actions): New, factored out from
7143 trace_dump_command, and adjusted to recurse into while-stepping's
7144 action list.
7145 (trace_dump_command): Use it.
7146
5cea2a26
PA
71472010-04-02 Pedro Alves <pedro@codesourcery.com>
7148
7149 * breakpoint.h (struct counted_command_line): Moved definition to
7150 breakpoint.c, and forward declare.
7151 (breakpoint_commands): Declare.
7152 * breakpoint.c (struct counted_command_line): Moved here.
7153 (breakpoint_commands): New.
7154 * tracepoint.c (encode_actions): Use breakpoint_commands.
7155 * remote.c (remote_download_tracepoint): Ditto.
7156
7c47795c
L
71572010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7158
7159 * remote.c (remote_parse_stop_reply): Use hex_string instead
7160 of phex_nz for error.
7161
fff87407
SS
71622010-04-01 Stan Shebs <stan@codesourcery.com>
7163 Nathan Sidwell <nathan@codesourcery.com>
7164
7165 * tracepoint.h (enum actionline_type): Remove.
7166 (validate_actionline): Change return to void.
7167 * tracepoint.c (report_agent_reqs_errors): New function.
7168 (validate_actionline): Call it, change return to void, report errors
7169 more consistently.
7170 (collect_symbol): Call report_agent_reqs_errors.
7171 (encode_actions_1): Ditto.
7172 (encode_actions): Don't expect a result from validate_actionline.
7173
615bcdef
SS
71742010-04-01 Stan Shebs <stan@codesourcery.com>
7175
7176 * tracepoint.c (trace_start_command): Confirm if trace is running.
7177 (trace_stop_command): Error if trace not running.
7178
fe01d668
L
71792010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7180
7181 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7182 (AMD64_NUM_LOWER_BYTE_REGS): New.
7183 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7184 (amd64_pseudo_register_write): Likewise.
7185 (amd64_init_abi): Set num_byte_regs to 20.
7186
86b17b60
PA
71872010-04-01 Pedro Alves <pedro@codesourcery.com>
7188
7189 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7190 (prev_breakpoint_count): New.
7191 (set_breakpoint_count): Adjust.
7192 (rbreak_start_breakpoint_count): New.
7193 (start_rbreak_breakpoints): Adjust.
7194 (end_rbreak_breakpoints): Adjust.
7195 (struct commands_info) <arg>: New field.
7196 (do_map_commands_command): Tweak output to include breakpoint spec
7197 range.
7198 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7199 ARG was empty on entry. Set INFO's arg.
7200 (create_breakpoint): Adjust.
7201
7202 * NEWS: Clarify `commands' changes.
7203
2c58c0a9
PA
72042010-04-01 Pedro Alves <pedro@codesourcery.com>
7205
7206 * tracepoint.c: Include stack.h.
7207 (struct add_local_symbols_data): New.
7208 (do_collect_symbol): New.
7209 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7210 iterate_over_block_local_vars.
7211 * stack.c (print_block_frame_locals): Rewrite as ...
7212 (iterate_over_block_locals): ... this. Take a callback function
7213 pointer and generic data pointer, and call that instead of
7214 print_variable_and_value.
7215 (struct print_variable_and_value_data): New.
7216 (do_print_variable_and_value): New.
7217 (iterate_over_block_local_vars): New, abstracted out from
7218 print_frame_local_vars.
7219 (print_frame_local_vars): Rewrite using
7220 iterate_over_block_local_vars.
7221 (iterate_over_block_arg_vars): New, abstracted out from
7222 print_frame_arg_vars.
7223 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7224 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7225 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7226
d476da0e
RE
72272010-03-31 Richard Earnshaw <rearnsha@arm.com>
7228
7229 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7230 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7231 PC register.
7232
8072405b
JK
72332010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7234
7235 Fix crash on reading wrong function declaration DWARF.
7236 * dwarf2read.c (read_subroutine_type): New variable void_type.
7237 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7238 more close to their use.
7239
8bf6485c
SS
72402010-03-31 Stan Shebs <stan@codesourcery.com>
7241
7242 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7243 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7244 * tracepoint.c (save_trace_state_variables): New function.
7245 * tracepoint.h (save_trace_state_variables): Declare it.
7246
2ae2a0b7
PM
72472010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7248
1a161f72 7249 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7250
86ffb506
KS
72512010-03-30 Keith Seitz <keiths@redhat.com>
7252
7253 * c-typeprint.c (c_type_print_args): Don't print "void"
7254 for java, regardless of whether it is TYPE_PROTOTYPED.
7255 Use the passed-in language instead of current_language.
7256 (c_type_print_varspec_suffix): Use current_language instead
7257 of assuming language_c.
7258 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7259 any return type specifier from the physname.
7260
956c2c8b
PA
72612010-03-30 Pedro Alves <pedro@codesourcery.com>
7262
7263 * tui/tui-interp.c (tui_is_toplevel): New.
7264 (tui_init): Set it.
7265 (tui_allowed_p): New.
7266 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7267 enabling it.
7268 * tui/tui.h (tui_allowed_p): Declare.
7269
98e5a990
TT
72702010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7271
7272 * serial.h: Include winsock2.h before windows.h.
7273
c8d5aac9
L
72742010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7275
7276 * NEWS: Mention xmlRegisters= in qSupported packet.
7277
7278 * i386-tdep.c: Include "remote.h".
7279 (_initialize_i386_tdep): Call register_remote_support_xml.
7280
7281 * remote.c (remote_support_xml): New.
7282 (register_remote_support_xml): Likewise.
7283 (remote_query_supported_append): Likewise.
7284 (remote_query_supported): Support remote_support_xml.
7285
7286 * remote.h (register_remote_support_xml): New.
7287
76a2b958
SS
72882010-03-29 Stan Shebs <stan@codesourcery.com>
7289
42e08e69
SS
7290 * tracepoint.c (trace_find_line_command): Remove dead code.
7291
409873ef
SS
7292 * tracepoint.h (struct uploaded_string): New struct.
7293 (struct uploaded_tp): New fields for source strings.
7294 * breakpoint.c (this_utp, next_cmd): New globals.
7295 (read_uploaded_action): New function.
7296 (create_tracepoint_from_upload): Fill in more parts
7297 of a tracepoint.
7298 * tracepoint.c (encode_source_string): New function.
7299 (trace_save): Write out source strings, fix error checks.
7300 (parse_tracepoint_definition): Add source string parsing.
7301 * remote.c (PACKET_TracepointSource): New packet type.
7302 (remote_download_command_source): New function.
7303 (remote_download_tracepoint): Download source pieces also.
7304 (_initialize_remote): Add packet config command.
7305
a0405854
SS
7306 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7307 expression handler.
7308
76a2b958
SS
7309 * tracepoint.c (start_tracing): Check tracepoints before sending
7310 commands to target, don't start if all tracepoints disabled.
7311
d350db38
PA
73122010-03-28 Pedro Alves <pedro@codesourcery.com>
7313
12f2d601 7314 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7315
8b9b7ef8
SS
73162010-03-26 Stan Shebs <stan@codesourcery.com>
7317
7318 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7319
9766ced4
SS
73202010-03-26 Tom Tromey <tromey@redhat.com>
7321
7322 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7323
059acae7
UW
73242010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7325
7326 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7327 (skip_prologue_sal): Remove local definition.
7328 (resolve_sal_pc): Remove now unnecessary code.
7329 * linespec.c (minsym_found): Call skip_prologue_sal.
7330 * symtab.c (find_function_start_pc): Remove.
7331 (find_function_start_sal): Extract prologue skipping into ...
7332 (skip_prologue_sal): ... this new function. Handle code both
7333 with and without debug info. Respect SAL's explicit_pc and
7334 explicit_line flags. Inline old find_function_start_pc.
7335 * symtab.h (find_function_start_pc): Remove.
7336 (skip_prologue_sal): Add prototype.
7337
4a811a97
UW
73382010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7339
7340 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7341 for DW_TAG_imported_module children.
7342
907af001
UW
73432010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7344
7345 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7346 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7347 * completer.c (add_struct_fields): Fix inverted logic.
7348
dde2d684
UW
73492010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7350
7351 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7352
a609a0c8
PA
73532010-03-26 Pedro Alves <pedro@codesourcery.com>
7354
7355 * tracepoint.c (current_trace_status): Don't make sure error_desc
7356 is non-NULL here.
7357 (parse_trace_status): Release a previous error_desc string, and
7358 set it to NULL by default. If stop reason is tracepoint_error,
7359 make sure error_desc is not left NULL.
7360
610197fd
PA
73612010-03-26 Pedro Alves <pedro@codesourcery.com>
7362
7363 * tracepoint.c (trace_save): Remove X from tracepoint error
7364 description.
7365
99b5e152
PA
73662010-03-26 Pedro Alves <pedro@codesourcery.com>
7367
7368 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7369 the terror description. Don't expect an X prefix.
7370
6c28cbf2
SS
73712010-03-25 Stan Shebs <stan@codesourcery.com>
7372
7373 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7374 (struct trace_status): New field error_desc.
7375 * tracepoint.c (stop_reason_names): Add terror.
7376 (current_trace_status): Ensure non-NULL error description.
7377 (trace_status_command): Add error report.
7378 (trace_status_mi): Ditto.
7379 (trace_save): Add special case for error description.
7380 (parse_trace_status): Add case for errors.
7381
418835cc
KS
73822010-03-25 Keith Seitz <keiths@redhat.com>
7383
7384 * dwarf2read.c (read_subroutine_type): If the compilation unit
7385 language is Java, mark any formal parameter named "this" as
7386 artificial (GCC/43521).
7387 (dwarf2_name): Add special handling for Java constructors.
7388
aa7d318d
TT
73892010-03-25 Tom Tromey <tromey@redhat.com>
7390
7391 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7392 * infrun.c (handle_inferior_event): Change initialization of
7393 stop_stack_dummy.
7394 (handle_inferior_event): Change assignment to stop_stack_dummy.
7395 (normal_stop): Update use of stop_stack_dummy.
7396 (struct inferior_status) <stop_stack_dummy>: Change type.
7397 * inferior.h (stop_stack_dummy): Update.
7398 * infcmd.c (stop_stack_dummy): Change type.
7399 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7400 function.
7401 (call_function_by_hand): Call set_std_terminate_breakpoint.
7402 Rewrite std::terminate handling.
7403 * breakpoint.h (enum bptype) <bp_std_terminate,
7404 bp_std_terminate_master>: New.
7405 (enum stop_stack_kind): New.
7406 (struct bpstat_what) <call_dummy>: Change type.
7407 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7408 Declare.
7409 * breakpoint.c (create_std_terminate_master_breakpoint): New
7410 function.
7411 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7412 Call create_std_terminate_master_breakpoint.
7413 (print_it_typical): Handle new breakpoint kinds.
7414 (bpstat_stop_status): Handle bp_std_terminate_master.
7415 (bpstat_what): Correctly set call_dummy field. Handle
7416 bp_std_terminate_master and bp_std_terminate.
7417 (print_one_breakpoint_location): Update.
7418 (allocate_bp_location): Update.
7419 (set_std_terminate_breakpoint): New function.
7420 (delete_std_terminate_breakpoint): Likewise.
7421 (create_thread_event_breakpoint): Update.
7422 (delete_command): Update.
7423 (breakpoint_re_set_one): Update.
7424 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7425
82ccf5a5
JK
74262010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7427
7428 * symfile.c (build_section_addr_info_from_bfd): New.
7429 (build_section_addr_info_from_objfile): Base it on
7430 build_section_addr_info_from_bfd.
7431 (addrs_section_compar, addrs_section_sort): New.
7432 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7433 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7434 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7435
737c4c52
MS
74362010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7437
8d95cc3b 7438 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
7439 Remove unused local variable.
7440
95a42b64
TT
74412010-03-24 Tom Tromey <tromey@redhat.com>
7442
7443 PR breakpoints/9352:
7444 * NEWS: Mention changes to `commands' and `rbreak'.
7445 * symtab.c (do_end_rbreak_breakpoints): New function.
7446 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7447 end_rbreak_breakpoints.
7448 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7449 (set_breakpoint_count): Likewise. Clear last_was_multi.
7450 (multi_start, multi_end, last_was_multi): New globals.
7451 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7452 functions.
7453 (struct commands_info): New
7454 (do_map_commands_command): New function.
7455 (commands_command_1): New function.
7456 (commands_command): Use it.
7457 (commands_from_control_command): Likewise.
7458 (do_delete_breakpoint): New function.
7459 (delete_command): Use it.
7460 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7461 (do_map_disable_breakpoint): New function.
7462 (disable_command): Use it.
7463 (do_map_enable_breakpoint): New function.
7464 (enable_command): Use it.
7465 (enable_once_breakpoint): Add argument.
7466 (enable_once_command): Update.
7467 (enable_delete_breakpoint): Add argument.
7468 (enable_delete_command): Update.
7469 (break_command_really): Set last_was_multi when needed.
7470 (check_tracepoint_command): Fix formatting.
7471 (validate_commands_for_breakpoint): New function.
7472 (breakpoint_set_commands): Use it.
7473 (tracepoint_save_command): Update.
7474 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7475 Declare.
7476
9add0f1b
TT
74772010-03-24 Tom Tromey <tromey@redhat.com>
7478
7479 * breakpoint.h (struct counted_command_line): New struct.
7480 (struct breakpoint) <commands>: Change type.
7481 (struct bpstats) <commands>: Change type.
7482 <commands_left>: New field.
7483 * breakpoint.c (alloc_counted_command_line): New function.
7484 (incref_counted_command_line): Likewise.
7485 (decref_counted_command_line): Likewise.
7486 (do_cleanup_counted_command_line): Likewise.
7487 (make_cleanup_decref_counted_command_line): Likewise.
7488 (breakpoint_set_commands): Use decref_counted_command_line and
7489 alloc_counted_command_line.
7490 (commands_command): Don't error if breakpoint commands are
7491 executing.
7492 (commands_from_control_command): Likewise.
7493 (bpstat_free): Update.
7494 (bpstat_copy): Likewise.
7495 (bpstat_clear_actions): Likewise.
7496 (bpstat_do_actions_1): Likewise.
7497 (bpstat_stop_status): Likewise.
7498 (print_one_breakpoint_location): Likewise.
7499 (delete_breakpoint): Likewise.
7500 (bpstat_alloc): Initialize new field.
7501 (tracepoint_save_command): Update.
7502 * tracepoint.c (encode_actions): Update.
7503 (trace_dump_command): Update.
7504
a6c727b2
DJ
75052010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7506
7507 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7508 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7509 (read_structure_type): For RealView, set TYPE_STUB on structures with
7510 no byte size and no children.
7511 (read_subroutine_type): Mark functions as prototyped by default.
7512 * symtab.c (producer_is_realview): New function.
7513 * symtab.h (expand_line_sal): Fix declaration formatting.
7514 (producer_is_realview): Declare.
7515
0d39a070
DJ
75162010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7517
7518 * arm-tdep.c (skip_prologue_function): New function.
7519 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7520 (thumb_analyze_prologue): Document return value. Recognize more
7521 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7522 Add debug output.
7523 (arm_skip_prologue): Remove call dummy check. Check the prologue
7524 for non-GNU compilers.
7525 (arm_instruction_changes_pc): New function.
7526 (arm_analyze_prologue): New function, broken out from
7527 arm_scan_prologue. Recognize more ARM instructions and skippable
7528 calls. Update comments. Handle NULL cache. Return the address
7529 of the first unrecognized instruction. Do not skip past other
7530 instructions which change control flow. Add debug output.
7531 (arm_scan_prologue): Use arm_analyze_prologue.
7532 (ARM_PC_32): Delete.
7533 (shifted_reg_val): Simplify ARM_PC_32 check.
7534
4baf5cf4
VP
75352010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7536
7537 * tracepoint.c (tvariables_info_1): Actually compute
7538 the number of rows in the result.
7539
4a5e7a5b
PA
75402010-03-24 Pedro Alves <pedro@codesourcery.com>
7541
7542 * remote.c (crc32): Constify `buf' parameter.
7543 (remote_verify_memory): New, abstracted out from...
7544 (compare_sections_command): ... this. Remove hardcoded target
7545 checks.
7546 (init_remote_ops): Install remote_verify_memory.
7547 * target.c (target_verify_memory): New.
7548 * target.h (struct target_ops) <to_verify_memory>: New field.
7549 (target_verify_memory): Declare.
7550
011aacb0
VP
75512010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7552
7553 Implement -trace-save.
7554
7555 * mi-cmds.h (mi_cmds_trace_save): Declare.
7556 * mi-cmds.c (mi_cmds): Register -trace-save.
7557 * mi/mi-main.c (mi_cmd_trace_save): New.
7558 * remote.c (remote_save_trace_data): Take const parameter.
7559 * target.h (struct target_ops::to_save_trace_data): Take
7560 const parameter.
7561 * target.c (update_current_target): Adjust to the above.
7562 * tracepoint.c (trave_save): New, extracted from
7563 (trace_save_command): ...this.
7564 (tfile_trace_find): Remove message that is unnecessary now
7565 that 'tfind' reports found frame.
7566 * tracepoint.h (trace_save): Declare.
7567
f197e0f1
VP
75682010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7569
7570 Implement -trace-find.
7571
7572 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7573 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7574 * mi/mi-main.c (mi_cmd_trace_find): New.
7575 * target.h (struct target_ops): Document to_trace_find.
7576 * tracepoint.h (tfind_1): Declare.
7577 * tracepoint.c (finish_tfind_command): Rename to...
7578 (tfind_1): ...this.
7579 * remote.c (remote_trace_find): Return -1 if target say
7580 there's no frame. Improve error diagnostics.
7581
40e1c229
VP
75822010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7583
7584 -trace-define-variable and -trace-list-variables.
7585
7586 * tracepoint.c (create_trace_state_variable): Make
7587 private copy of name, as opposed to assuming the
7588 pointer lives forever.
7589 (tvariables_info_1): New.
7590 (tvariables_info): Use the above.
7591 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7592 Declare.
7593 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7594 and -trace-list-variables.
7595 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7596 (mi_cmd_trace_list_variables): New.
7597 * mi/mi-main.c (mi_cmd_trace_define_variable)
7598 (mi_cmd_trace_list_variables): New.
7599
9b4c786c
VP
76002010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7601
7602 Implement -break-passcount.
7603
7604 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7605 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7606 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7607
f224b49d
VP
76082010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7609
7610 -trace-start/-trace-end/-trace-status.
7611
7612 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7613 and -trace-stop.
7614 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7615 (mi_cmd_trace_stop): Declare.
7616 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7617 (mi_cmd_trace_stop): New.
7618 * tracepoint.c (start_tracing): New, extracted from...
7619 (trace_start_command): ...this.
7620 (trace_status_mi): New.
7621 * tracepoint.h (struct trace_status): Document
7622 stopping_tracepoint.
7623 (start_tracing, stop_tracing, trace_status_mi): Declare.
7624
6534d786
VP
76252010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7626
7627 Implement creating tracepoints with -break-insert.
7628
7629 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7630 to mean that tracepoint should be created.
7631
51661e93
VP
76322010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7633
7634 * breakpoint.c (check_no_tracepoint_commands): Use
7635 current spelling of 'teval'.
7636
a7bdde9e
VP
76372010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7638
7639 Unify actions and commands
7640
7641 * defs.h (read_command_lines, read_command_lines_1): New
7642 parameters validator and closure.
7643 * tracepoint.h (struct action_line): Remove.
7644 * breakpoint.h (struct breakpoint): Remove the 'actions'
7645 field.
7646 * defs.h (enum command_control_type): New value
7647 while_stepping_control.
7648 (struct command_line): Add comments.
7649 * breakpoint.c (breakoint_is_tracepoint): New.
7650 (breakpoint_set_commands): For tracepoints,
7651 verify the commands are permissible.
7652 (check_tracepoint_commands): New.
7653 (commands_command): Require that each new line is validated using
7654 check_tracepoint_command, if we set commands for a tracepoint.
7655 (create_tracepoint_from_upload): Likewise.
7656 (print_one_breakpoint_location): Remove the code to print
7657 actions specifically.
7658 (tracepoint_save_command): Relay to print_command_lines.
7659 * cli/cli-script.c (process_next_line): New parameters validator
7660 and closure. Handle 'while-stepping'. Call validator if not null.
7661 (read_command_lines, read_command_lines1): Likewise.
7662 (recurse_read_control_structure): New parameters validator and
7663 closure. Handle while_stepping_control.
7664 (print_command_lines): Handle while-stepping.
7665 (get_command_line, define_command, document_command): Adjust.
7666 * remote.c (remote_download_tracepoint): Adjust.
7667 * tracepoint.c (make_cleanup_free_actions, read_actions)
7668 (free_actions, do_free_actions_cleanup): Remove.
7669 (trace_actions_command): Use read_command_lines.
7670 (validate_actionline): Use error in one place.
7671 (encode_actions_1): New, extracted from...
7672 (encode_actions): ...this. Also use cleanups for exception
7673 safety.
7674 (trace_dump_command): Adjust.
7675 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7676 it's tracepoint.
7677
64e3cf3d
MF
76782010-03-23 Mike Frysinger <vapier@gentoo.org>
7679
7680 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7681
52e9fde8
SS
76822010-03-22 Stan Shebs <stan@codesourcery.com>
7683
7684 * value.c (value_static_field): Be lazy about the field's value.
7685
508ccb1f
TT
76862010-03-22 Reid Kleckner <reid@kleckner.net>
7687
7688 PR gdb/11094
7689 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7690 bp_jit_event.
7691 (disable_breakpoints_in_shlibs): Likewise.
7692
acebe513
UW
76932010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7694
7695 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7696 GCC 4.1 debug info generation (GCC PR c++/28460).
7697 (determine_prefix): Likewise.
7698
957b8b5a
DJ
76992010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7700
7701 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7702 get_current_arch.
7703 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7704
3b11a015
SS
77052010-03-19 Stan Shebs <stan@codesourcery.com>
7706
7707 * ax-gdb.c (gen_fetch): Handle bool.
7708 (gen_usual_unary): Ditto.
7709 (gen_cast): Ditto.
7710 (gen_equal): New function.
7711 (gen_less): New function.
7712 (gen_expr_binop_rest): Call them, also return integer type from
7713 logical operations.
7714 (gen_expr): Ditto.
7715
20781792
TT
77162010-03-19 Tom Tromey <tromey@redhat.com>
7717
7718 * jv-lang.c (jv_dynamics_objfile_data_key)
7719 (jv_type_objfile_data_key): New globals.
7720 (class_symtab): Move earlier.
7721 (jv_per_objfile_free): New function.
7722 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7723 parameter.
7724 Remove ancient #if 1.
7725 (add_class_symbol): Remove redundant declaration.
7726 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7727 (java_link_class_type): Mark as static. Update.
7728 (jv_clear_object_type): New function.
7729 (set_java_object_type): Likewise.
7730 (get_java_object_type): Use set_java_object_type.
7731 (is_object_type): Likewise.
7732 (_initialize_java_language): Register new objfile keys.
7733 (get_java_class_symtab): Add 'gdbarch' parameter.
7734 (add_class_symtab_symbol): Update.
7735 (type_from_class): Update.
7736
cf3e25ca
SS
77372010-03-19 Stan Shebs <stan@codesourcery.com>
7738
8d95cc3b 7739 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 7740
f1ae44c9 77412010-03-18 Joel Brobecker <brobecker@adacore.com>
7742
7743 GDB 7.1 released.
7744
4daf5ac0
SS
77452010-03-18 Stan Shebs <stan@codesourcery.com>
7746 Pedro Alves <pedro@codesourcery.com>
7747
7748 * target.h (struct target_ops): New method
7749 to_set_circular_trace_buffer.
7750 (target_set_circular_trace_buffer): New macro.
7751 * target.c (update_current_target): Add
7752 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7753 default behavior.
7754 * remote.c (remote_set_circular_trace_buffer): New function.
7755 (init_remote_ops): Add it to vector.
7756 * tracepoint.h (struct trace_status): New field traceframes_created,
7757 change buffer_size and buffer_free to int.
7758 * tracepoint.c (circular_trace_buffer): New global.
7759 (start_tracing): Send values of disconnected tracing and circular
7760 trace buffer settings.
7761 (set_circular_trace_buffer): New function.
7762 (parse_trace_state): Handle total space and frames created.
7763 (trace_status_command): Display total space and total frames
7764 created.
7765 (trace_save): Write out new status values.
7766 (parse_trace_status): Set traceframe_count, traceframes_created,
7767 buffer_free and buffer_size to -1 by default.
7768 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7769 * NEWS: Mention the circular trace buffer option.
7770
40c549d6
TT
77712010-03-18 Tom Tromey <tromey@redhat.com>
7772
7773 * infcmd.c (finish_command_continuation): Wrap print_return_value
7774 in TRY_CATCH.
7775
e8d05480
JB
77762010-03-18 Joel Brobecker <brobecker@adacore.com>
7777
7778 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7779 DIE has a name before creating the associated partial symbol.
7780 (read_func_scope): Emit a complaint if the subprogram does not
7781 have a name or when we can't extract the subprogram PC bounds.
7782
441b986a
UW
77832010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7784
7785 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7786 instead of selected frame architecture.
7787
4247603b
PA
77882010-03-18 Pedro Alves <pedro@codesourcery.com>
7789
7790 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7791 a valid selected thread, and that it is not running.
7792 (advance_command): Ditto.
7793 (finish_command): Ditto.
7794
400c6af0
SS
77952010-03-17 Stan Shebs <stan@codesourcery.com>
7796
3a96536b
SS
7797 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7798
573cda03
SS
7799 * infcall.c: Include tracepoint.h.
7800 (call_function_by_hand): Disallow calls in tfind mode.
7801 * infcmd.c: Include tracepoint.h.
7802 (ensure_not_tfind_mode): New function.
7803 (continue_1): Call it.
7804 (step_1) Ditto.
7805 (jump_command): Ditto.
7806 (signal_command): Ditto.
7807 (advance_command): Ditto.
7808 (until_command): Ditto.
7809 (finish_command): Ditto.
7810 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7811
400c6af0
SS
7812 * ax-gdb.h (struct axs_value): New field optimized_out.
7813 (gen_trace_for_var): Add gdbarch argument.
7814 * ax-gdb.c (gen_trace_static_fields): New function.
7815 (gen_traced_pop): Call it, add gdbarch argument.
7816 (gen_trace_for_expr): Update call to it.
7817 (gen_trace_for_var): Ditto, and report optimized-out variables.
7818 (gen_struct_ref_recursive): Check for optimized-out value.
7819 (gen_struct_elt_for_reference): Ditto.
7820 (gen_static_field): Pass gdbarch instead of expression, assume
7821 optimization if field not found.
7822 (gen_var_ref): Set the optimized_out flag.
7823 (gen_expr): Error on optimized-out variable.
7824 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7825 expressions, skip optimized-out variables with computed locations.
7826 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7827 erroring out if location expression missing.
7828 (loclist_tracepoint_var_ref): Don't error out here.
7829
a3b2a86b
TT
78302010-03-17 Tom Tromey <tromey@redhat.com>
7831
7832 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7833 DWARF data is available.
7834
38963c97
DJ
78352010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7836
7837 * symfile.c (generic_load): Reset breakpoints after loading.
7838
ddabfc73
TT
78392010-03-17 Tom Tromey <tromey@redhat.com>
7840
7841 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7842
d8c09fb5
JK
78432010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7844
7845 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7846 create_breakpoint call, adjust the parameters.
7847
bbb0eef6
JK
78482010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7849 Chandru <chandru@in.ibm.com>
7850
7851 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7852 * valarith.c (value_subscripted_rvalue): Suppress error if
7853 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7854
46956e39
HZ
78552010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7856
7857 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7858
b8d088ac
JB
78592010-03-16 Joel Brobecker <brobecker@adacore.com>
7860
7861 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7862 before doing the associated thread switch.
7863
322be962
DJ
78642010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7865
7866 * MAINTAINERS: Update my email address.
7867
8cdf0e15
VP
78682010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7869
7870 Simplify MI breakpoint setting.
7871
7872 * breakpoint.c (break_command_really): Make nonstatic and
7873 rename to...
7874 (create_breakpoint): ...this. Rename prior function by this name
7875 to...
7876 (create_breakpoint_sal): ...this.
7877 (create_breakpoints): Rename to...
7878 (create_breakpoints_sal): ...this.
7879 (set_breakpoint): Remove.
7880 * breakpoint.h: Adjust to above changes.
7881 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7882
b6e7192f
SS
78832010-03-15 Stan Shebs <stan@codesourcery.com>
7884
7885 * ax-gdb.c: Include cp-support.h.
7886 (find_field): Remove.
7887 (gen_primitive_field): New function.
7888 (gen_struct_ref_recursive): New function.
7889 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7890 of find_field.
7891 (gen_static_field): New function.
7892 (gen_struct_elt_for_reference): New.
7893 (gen_namespace_elt): New.
7894 (gen_maybe_namespace_elt): New.
7895 (gen_aggregate_elt_ref): New.
7896 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7897
1054b214
TT
78982010-03-15 Tom Tromey <tromey@redhat.com>
7899
7900 * dwarf2read.c (die_needs_namespace): Also return 0 for
7901 DW_TAG_subprogram.
7902
13387711
SW
79032010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7904
7905 PR c++/7936:
7906 * cp-support.h: Added char *declaration element to using_direct
7907 data struct.
7908 (cp_add_using): Added char *declaration argument.
7909 (cp_add_using_directive): Ditto.
7910 (cp_lookup_symbol_imports): made extern.
7911 * cp-namespace.c: Updated with the above changes.
7912 * dwarf2read.c (read_import_statement): Ditto.
7913 (read_namespace): Ditto.
7914 (read_import_statement): Support import declarations.
7915 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7916 declarations.
7917 Added support for 'declaration_only' search.
7918 (cp_lookup_symbol_namespace): Attempt to search for the name as
7919 is before consideration of imports.
7920 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7921 search at every block level search.
7922 Now takes language argument.
7923 (lookup_symbol_aux): Updated.
7924
6e31430b
TT
79252010-03-15 Tom Tromey <tromey@redhat.com>
7926
7927 * c-exp.y (name_not_typename): Add 'operator' clause.
7928
4dea3bb7 79292010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
7930
7931 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7932 * configure: Regenerate.
7933
4d9743af
JK
79342010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7935
7936 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7937 and ".sdynbss". Update the comment.
7938
f75150fe
JZ
79392010-03-15 Jie Zhang <jie@codesourcery.com>
7940
7941 * MAINTAINERS: Update my email address.
7942
3c13bc11
DJ
79432010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7944
7945 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7946
43484f03
DJ
79472010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7948
7949 * charset.c [USE_WIN32API]: Include <windows.h>.
7950 (_initialize_charset): Correct type of w32_host_default_charset.
7951
5f25d77d
PA
79522010-03-14 Pedro Alves <pedro@codesourcery.com>
7953
7954 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7955
1c809c68
TT
79562010-03-12 Tom Tromey <tromey@redhat.com>
7957
7958 PR c++/9708:
7959 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7960 in a lexical block does not need a namespace.
7961 (new_symbol) <DW_TAG_variable>: Put extern variables on
7962 list_in_scope in all cases.
7963
948103cf
SS
79642010-03-12 Stan Shebs <stan@codesourcery.com>
7965
7966 * ax-gdb.c (gen_expr): Add shift expressions.
7967 (gen_expr_binop_rest): Ditto.
7968
00ae8fef
SW
79692010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7970
7971 * buildsym.c (finish_block): Reset using_directives pointer
7972 after block initialization.
7973
9cad29ac
L
79742010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7975
7976 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7977 * i386-tdep.c (i386_word_names): Likewise.
7978
2f4d8875
PA
79792010-03-12 Pedro Alves <pedro@codesourcery.com>
7980
7981 * target.c (memory_xfer_partial): Don't use the stack cache if
7982 inspecting trace frames.
7983 * tracepoint.c (finish_tfind_command): Invalidate the target
7984 dcache.
7985
ccf26247
JK
79862010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7987
7988 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7989 for the PIC displacement, print also the displacement value.
7990 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7991
477c84a7
KB
79922010-03-10 Kevin Buettner <kevinb@redhat.com>
7993
7994 * remote-mips.c (close_ports, mips_initialize_cleanups)
7995 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7996 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7997 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7998 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7999 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
8000 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
8001 comments describing each of these functions.
8002 (mips_enter_debug, mips_exit_debug, common_open)
8003 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
8004 blank line after the comment describing the function.
8005
01c30d6e
JK
80062010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8007
8008 * solib-svr4.c (svr4_exec_displacement): Return now success, new
8009 parameter displacementp. Update comment.
8010 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
8011 element exists. Return if svr4_exec_displacement was not successful.
8012 Update comment.
8013
09919ac2
JK
80142010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8015 Daniel Jacobowitz <dan@codesourcery.com>
8016
8017 * solib-svr4.c (read_program_header): Support type == -1 to read
8018 all program headers.
8019 (read_program_headers_from_bfd): New function.
8020 (svr4_static_exec_displacement): Remove and move the comment ...
8021 (svr4_exec_displacement): ... here. Remove variable found. New
8022 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8023 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8024 targets using read_program_headers_from_bfd. Remove the call of
8025 svr4_static_exec_displacement.
8026
d146bf1e
TT
80272010-03-10 Tom Tromey <tromey@redhat.com>
8028
8029 * dwarf2read.c (struct pubnames_header): Remove.
8030 (_PUBNAMES_HEADER): Remove.
8031 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8032 (struct aranges_header): Remove.
8033 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8034 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8035 (PUBNAMES_SECTION): Remove.
8036 (ARANGES_SECTION): Remove.
8037 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8038 (dwarf2_build_psymtabs): Remove dead code.
8039 (dwarf2_build_psymtabs_easy): Remove.
8040
be391dca
TT
80412010-03-10 Tom Tromey <tromey@redhat.com>
8042
8043 * elfread.c (elf_symfile_read): Don't call
8044 dwarf2_build_frame_info.
8045 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8046 (struct dwarf2_per_objfile) <objfile>: New field.
8047 (dwarf2_has_info): Now idempotent. Set objfile field.
8048 (dwarf2_read_section): Check and set readin field. Call
8049 posix_madvise.
8050 (dwarf2_build_psymtabs): Don't read all sections.
8051 (read_type_comp_unit_head): Read types section.
8052 (create_debug_types_hash_table): Likewise.
8053 (init_cu_die_reader): Add asserts.
8054 (process_type_comp_unit): Add assert.
8055 (dwarf2_build_psymtabs_hard): Read info section.
8056 (load_partial_comp_unit): Add assert.
8057 (create_all_comp_units): Read info section.
8058 (load_full_comp_unit): Likewise.
8059 (dwarf2_ranges_read): Read ranges section.
8060 (dwarf2_record_block_ranges): Add assert.
8061 (dwarf2_read_abbrevs): Read abbrev section.
8062 (read_indirect_string): Read str section.
8063 (dwarf_decode_line_header): Read line section.
8064 (read_signatured_type_at_offset): Read types section.
8065 (dwarf_decode_macros): Read macinfo section.
8066 (dwarf2_symbol_mark_computed): Read loc section.
8067 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8068 dwarf2_build_frame_info.
8069 (dwarf2_build_frame_info): Unconditionally set
8070 dwarf2_frame_objfile_data on the objfile.
8071 * configure.ac: Check for posix_madvise.
8072 * config.in, configure: Rebuild.
8073
ccefe4c4
TT
80742010-03-10 Tom Tromey <tromey@redhat.com>
8075
e38df1d0
TT
8076 * xcoffread.c (xcoff_start_psymtab): Update.
8077 (xcoff_end_psymtab): Update.
8078 * psymtab.c (allocate_psymtab): Remove dead code.
8079 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8080 void*.
8081 * mdebugread.c (parse_partial_symbols): Update.
8082 (new_psymtab): Likewise.
8083 * dwarf2read.c (process_psymtab_comp_unit): Update.
8084 (psymtab_to_symtab_1): Update.
8085 * dbxread.c (start_psymtab): Update.
8086 (end_psymtab): Likewise.
8087
be391dca 80882010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8089
ccefe4c4
TT
8090 * xcoffread.c: Include psymtab.h.
8091 (xcoff_sym_fns): Update.
8092 * symtab.h (struct partial_symbol): Remove.
8093 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8094 (struct partial_symtab): Remove.
8095 (PSYMTAB_TO_SYMTAB): Remove.
8096 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8097 (find_pc_sect_psymtab): Remove.
8098 (find_pc_sect_symtab_via_partial): Declare.
8099 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8100 (find_main_psymtab): Remove.
8101 (find_main_filename): Declare.
8102 (fixup_psymbol_section): Remove.
8103 (fixup_section): Declare.
8104 * symtab.c: Include psymtab.h.
8105 (lookup_symtab): Use lookup_symtab method.
8106 (lookup_partial_symtab): Remove.
8107 (find_pc_sect_psymtab_closer): Remove.
8108 (find_pc_sect_psymtab): Remove.
8109 (find_pc_sect_symtab_via_partial): New function.
8110 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8111 (fixup_section): No longer static.
8112 (fixup_psymbol_section): Remove.
8113 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8114 (lookup_global_symbol_from_objfile): Likewise.
8115 (lookup_symbol_aux_psymtabs): Remove.
8116 (lookup_symbol_aux_quick): New function.
8117 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8118 (lookup_partial_symbol): Remove.
8119 (basic_lookup_transparent_type_quick): New function.
8120 (basic_lookup_transparent_type): Use it.
8121 (find_main_psymtab): Remove.
8122 (find_main_filename): New function.
8123 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8124 (find_line_symtab): Use expand_symtabs_with_filename method.
8125 (output_partial_symbol_filename): New function.
8126 (sources_info): Use map_partial_symbol_filenames.
8127 (struct search_symbols_data): New type.
8128 (search_symbols_file_matches): New function.
8129 (search_symbols_name_matches): Likewise.
8130 (search_symbols): Use expand_symtabs_matching method.
8131 (struct add_name_data): Rename from add_macro_name_data.
8132 (add_macro_name): Update.
8133 (add_partial_symbol_name): New function.
8134 (default_make_symbol_completion_list): Use
8135 map_partial_symbol_names.
8136 (struct add_partial_symbol_name): New type.
8137 (maybe_add_partial_symtab_filename): New function.
8138 (make_source_files_completion_list): Use
8139 map_partial_symbol_filenames.
8140 (expand_line_sal): Use expand_symtabs_with_filename method.
8141 * symmisc.c: Include psymtab.h.
8142 (print_objfile_statistics): Use print_stats method.
8143 (dump_objfile): Use dump method.
8144 (dump_psymtab, maintenance_print_psymbols)
8145 (maintenance_info_psymtabs, maintenance_check_symtabs)
8146 (extend_psymbol_list): Remove.
8147 * symfile.h (struct quick_symbol_functions): New struct.
8148 (struct sym_fns) <qf>: New field.
8149 (sort_pst_symbols): Remove.
8150 (increment_reading_symtab): Declare.
8151 * symfile.c: Include psymtab.h.
8152 (compare_psymbols, sort_pst_symbols): Remove.
8153 (psymtab_to_symtab): Remove.
8154 (increment_reading_symtab): New function.
8155 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8156 method.
8157 (set_initial_language): Use find_main_filename.
8158 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8159 (free_named_symtabs): Remove unused code.
8160 (start_psymtab_common, add_psymbol_to_bcache)
8161 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8162 Remove.
8163 * stack.c: Include psymtab.h, symfile.h.
8164 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8165 * source.h (psymtab_to_fullname): Don't declare.
8166 * source.c: Include psymtab.h.
8167 (select_source_symtab): Use find_last_source_symtab method.
8168 (forget_cached_source_info): Use forget_cached_source_info
8169 method.
8170 (find_and_open_source): No longer static.
8171 (psymtab_to_fullname): Remove.
8172 * somread.c: Include psymtab.h.
8173 (som_sym_fns): Update.
8174 * psympriv.h: New file.
8175 * psymtab.h: New file.
8176 * psymtab.c: New file.
8177 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8178 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8179 * objfiles.c: Include psymtab.h.
8180 (objfile_relocate1): Use relocate method.
8181 (objfile_has_partial_symbols): Use has_symbols method.
8182 * mipsread.c: Include psymtab.h.
8183 (ecoff_sym_fns): Update.
8184 * mi/mi-cmd-file.c: Include psymtab.h.
8185 (print_partial_file_name): New function.
8186 (mi_cmd_file_list_exec_source_files): Use
8187 map_partial_symbol_filenames.
8188 * mdebugread.c: Include psympriv.h.
8189 * machoread.c: Include psympriv.h.
8190 (macho_sym_fns): Update.
8191 * m2-exp.y (yylex): Use lookup_symtab.
8192 * elfread.c: Include psympriv.h.
8193 (elf_sym_fns): Update.
8194 * dwarf2read.c: Include psympriv.h.
8195 * dbxread.c: Include psympriv.h.
8196 (aout_sym_fns): Update.
8197 * cp-support.c: Include psymtab.h.
8198 (read_in_psymtabs): Remove.
8199 (make_symbol_overload_list_qualified): Use
8200 expand_symtabs_for_function method.
8201 * coffread.c: Include psympriv.h.
8202 (coff_sym_fns): Update.
8203 * blockframe.c: Include psymtab.h.
8204 (find_pc_partial_function): Use find_pc_sect_symtab method.
8205 * ada-lang.h (ada_update_initial_language): Update.
8206 * ada-lang.c: Include psymtab.h.
8207 (ada_update_initial_language): Remove 'main_pst' argument.
8208 (ada_lookup_partial_symbol): Remove.
8209 (struct ada_psym_data): New type.
8210 (ada_add_psyms): New function.
8211 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8212 (struct add_partial_datum): New type.
8213 (ada_add_partial_symbol_completions): New function.
8214 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8215 (ada_exception_support_info_sniffer): Update.
8216 * Makefile.in (SFILES): Add psymtab.c.
8217 (COMMON_OBS): Add psymtab.o.
8218 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8219
7d8500b7
PM
82202010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8221
8222 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8223
c0cc3a76
SW
82242010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8225
8226 PR C++/11236:
8227 * cp-namespace.c (cp_add_using): Deleted.
8228 (cp_add_using_directive): Use obstack allocations.
8229 Merged the function cp_add_using into this one.
8230 Added 'struct obstack *' argument.
8231 (cp_scan_for_anonymous_namespaces): Updated.
8232 * cp-support.h: Updated.
8233 * dwarf2read.c (read_import_statement): Updated.
8234 (read_namespace): Updated.
8235
452fa064
CF
82362010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8237
8238 * windows-nat.c (cygwin_conv_path): Remove old macro.
8239
60e1c644
PA
82402010-03-10 Pedro Alves <pedro@codesourcery.com>
8241
8242 * breakpoint.c (condition_command): Handle watchpoint conditions.
8243 (is_hardware_watchpoint): Add comment.
8244 (is_watchpoint): New.
8245 (update_watchpoint): Don't reparse the watchpoint's condition
8246 unless necessary.
8247 (WP_IGNORE): New.
8248 (watchpoint_check): Use it.
8249 (bpstat_check_watchpoint): Handle it.
8250 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8251 conditions in a frame where it makes sense.
8252 (watch_command_1): Store the innermost block of the condition
8253 expression.
8254 (delete_breakpoint): Delete the watchpoint condition expression.
8255 * breakpoint.h (struct bp_location) <cond>: Update comment.
8256 (struct breakpoint): New field `cond_exp_valid_block'.
8257
af6b7be1
JB
82582010-03-09 Joel Brobecker <brobecker@adacore.com>
8259
8260 Adjust handling of Ada DIEs after dwarf2_physname patch.
8261 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8262
60c5c021
CF
82632010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8264 Pierre Muller <muller@ics.u-strasbg.fr>
8265
8266 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8267 from/to posix/win32.
8268 (windows_make_so): Use non-Cygwin 1.7 specific function.
8269 (windows_create_inferior): Make sure that cygallargs points to
8270 original args in non Cygwin 1.7. case.
8271
60a1502a
MS
82722010-03-09 Michael Snyder <msnyder@vmware.com>
8273
8274 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8275 after target_read_memory to get host byte order.
8276 (i386_process_record): Ditto.
8277
94af9270
KS
82782010-03-09 Keith Seitz <keiths@redhat.com>
8279
8280 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8281 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8282 print out const or volatile qualifiers, too.
8283 (c_type_print_args): Add parameters show_artificial and language.
8284 Skip artificial parameters when requested.
8285 Use the appropriate language printer.
8286 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8287 parameters and pass language_c.
8288 * dwarf2read.c (die_list): New file global.
8289 (struct partial_die_info): Update comments for name field.
8290 (pdi_needs_namespace): Renamed to ...
8291 (die_needs_namespace): ... this. Rewrite.
8292 (dwarf2_linkage_name): Remove.
8293 (add_partial_symbol): Do not predicate the call to
8294 partial_die_full_name based on pdi_needs_namespace.
8295 Remove call to cp_check_possible_namespace_symbols and associated
8296 outdated comments.
8297 (guess_structure_name): Do not inspect child subprogram DIEs.
8298 (dwarf2_fullname): Update comments.
8299 Use die_needs_namespace to assist in computing the name.
8300 (read_func_scope): Use dwarf2_name to get the DIE's name.
8301 Use dwarf2_physname to get the "linkage name" of the DIE.
8302 (dwarf2_add_member_field): Use dwarf2_physname instead of
8303 dwarf2_linkage_name.
8304 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8305 (determine_class): Remove.
8306 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8307 except Ada.
8308 (new_symbol): Unconditionally call dwarf2_name.
8309 Compute the "linkage name" using dwarf2_physname.
8310 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8311 When determining to scan for anonymous C++ namespaces, ignore
8312 the linkage name.
8313 (dwarf2_physname): New function.
8314 (dwarf2_full_name): Move content to new function and call
8315 that.
8316 (dwarf2_compute_name): "New" function.
8317 (_initialize_dwarf2_read): Initialize die_list.
8318 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8319 physname.
8320 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8321 without a demangled name.
8322 Print out type information for non-virtual methods.
c8d5aac9 8323 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8324 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8325 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8326 (decode_compound): Stop consuming at an open parenthesis.
8327 Keep template parameters.
8328 Keep any overload information.
8329 Keep keywords like "const".
8330 Remove paren_pointer.
8331 Move is_quoted check from set_flags to here.
8332 Remove #if 0 code from 2000. Ten years is long enough.
8333 (find_method): Before comparing symbol names, canonicalize the string
8334 from the user.
8335 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8336 (find_method_overload_end): New function.
8337 (set_flags): Remove.
c8d5aac9
L
8338 (decode_compound): Assume that parentheses are matched.
8339 It's a lot easier.
94af9270
KS
8340 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8341 to cplus_demangle.
8342 * linespec.c (decode_line_1): Keep important keywords like
8343 "const" and "volatile".
8344 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8345 * typeprint.h (c_type_print_args): Add declaration.
8346 * ui-file.c (do_ui_file_obsavestring): New function.
8347 (ui_file_obsavestring): New function.
8348 * ui-file.h (ui_file_obsavestring): Add declaration.
8349 * valops.c (find_overload_match): Resolve the object to
8350 a non-pointer type.
8351 If the object is a data member, search the object for the member
8352 and return with staticp set.
8353 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8354 Do not attempt to extract a function name from non-function types.
8355 If the extracted function name and the original name are the same,
8356 we don't have a C++ method.
8357
8d95cc3b
PA
8358 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8359 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8360
8361 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8362 and arguments from symbol lookups.
8363 * ax-gdb.c (gen_expr): Likewise.
8364 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8365 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8366 lookup_possible_namespace_symbol): Likewise.
8367 * cp-support.c (read_in_psymtabs): Likewise.
8368 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8369 * language.h (la_lookup_symbol_nonlocal): Likewise.
8370 * scm-valprint.c (scm_inferior_print): Likewise.
8371 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8372 * solib-svr.c (elf_lookup_lib): Likewise.
8373 * solib.c (show_auto_solib_add): Likewise.
8374 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8375 * symmisc.c (maintenance_check_symtabs): Likewise.
8376 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8377 lookup_symbol_aux_local, lookup_symbol_aux_block,
8378 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8379 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8380 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8381 basic_lookup_transparent_type, find_main_psymtab,
8382 lookup_block_symbol): Likewise.
8383 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8384 lookup_symbol_global, lookup_symbol_aux_block,
8385 lookup_symbol_partial_symbol, lookup_block_symbol,
8386 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8387
9cb74f47
PM
83882010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8389
8390 * python/python-internal.h: Include symtab.h.
8391
af6b7be1
JB
83922010-03-09 Joel Brobecker <brobecker@adacore.com>
8393 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
8394
8395 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8396 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8397 indentation.
8398
bad56014
TT
83992010-03-08 Tom Tromey <tromey@redhat.com>
8400
8401 * breakpoint.c (breakpoint_1): Add "QUIT".
8402
08105857
PA
84032010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8404 Pedro Alves <pedro@codesourcery.com>
8405
8406 * solib.c (solib_find): Replace extension if
8407 solib_symbols_extension is set in the target gdbarch.
8408 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8409 solib_symbols_extension to "sym".
8410 * gdbarch.sh (solib_symbols_extension): New variable.
8411 (pstring): New function.
8412 * gdbarch.h, gdbarch.c: Regenerate.
8413
7c953934
TT
84142010-03-08 Tom Tromey <tromey@redhat.com>
8415
8416 PR cli/9591:
8417 * NEWS: Update.
8418 * utils.c: Include main.h.
8419 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8420 (defaulted_query): Use default answer if `batch_flag'.
8421 * main.h (batch_flag): Declare.
8422 * main.c (batch_flag): New global.
8423 (captured_main): Remove 'batch'. Update.
8424
bbd2783e
KB
84252010-03-08 Kevin Buettner <kevinb@redhat.com>
8426
8427 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8428 and Kevin Buettner:
8429
8430 * remote-mips.c (rockhopper_ops): New target_ops struct.
8431 (MON_ROCKHOPPER): New mips_monitor_type.
8432 (read_hex_value): New function.
8433 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 8434 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
8435 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8436 (rockhopper_open): New function.
8437 (mips_wait): Read the PC, FP and SP fields as strings. Use
8438 read_hex_value to parse them and mips_set_register to commit them.
8439 (mips_set_register): New function.
8440 (mips_fetch_registers): Do not cast register value to "unsigned"
8441 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8442 (mips_store_registers): Use a 'T' packet to set registers when
8443 using MON_ROCKHOPPER.
8444 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8445 and expect the total to be printed before the entry address.
8446 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8447
566f3d17
KB
84482010-03-08 Kevin Buettner <kevinb@redhat.com>
8449
8450 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8451 Change return value to int. Store value fetched in location
8452 addressed by `val'. Use function's return value as success
8453 or failure indicator. Adjust all callers.
8454
9c8ee2ab 84552010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
8456
8457 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8458
7155de5a
HZ
84592010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8460 Hui Zhu <teawater@gmail.com>
8461
8462 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8463 tmp_to_stopped_data_address.
8464 (record_open): Reset tmp_to_stopped_by_watchpoint and
8465 tmp_to_stopped_data_address.
8466 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8467 to_stopped_data_address.
8468
580879fc
HZ
84692010-03-08 Hui Zhu <teawater@gmail.com>
8470
8471 * i386-tdep.c (i386_process_record): Initialize regnum.
8472
b0fcb67f
JK
84732010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8474
8475 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8476 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8477
08597104
JB
84782010-03-08 Joel Brobecker <brobecker@adacore.com>
8479
8480 Memory error when reading wrong core file.
8481 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8482 errors while reading the inferior memory, and return zero if
8483 an exception was raised.
8484
425b824a
MS
84852010-03-07 Michael Snyder <msnyder@vmware.com>
8486
ec6dbf37
MS
8487 * record.c (record_restore): Rename tmpu8 to rectype.
8488
648d0c8b
MS
8489 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8490 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8491
8492 (i386_record_push): Rename local tmpulongest to addr.
8493
8494 (i386_process_record): Rename local tmpulongest to addr.
8495
8496 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8497 addr64.
955db0c0
MS
8498
8499 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 8500
10760264
JB
85012010-03-07 Joel Brobecker <brobecker@adacore.com>
8502
8503 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 8504 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 8505
b3c613f2
CF
85062010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8507
8508 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8509 block. Define helper macros to reduce ifdefs in code.
8510 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8511 size. Call unadorned GetModuleFileNameEx rather than
8512 GetModuleFileNameEx*.
8513 (windows_make_so): Use __PMAX to denote maximum buffer size and
8514 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8515 appropriate.
8516 (get_image_name): Use __PMAX to denote maximum buffer size.
8517 (handle_load_dll): Likewise.
8518 (windows_pid_to_exec_file): Likewise.
8519 (windows_create_inferior): Add many accommodations for older Cygwin and
8520 non-Cygwin.
8521 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8522 __USEWIDE conditional.
8523 (bad_GetModuleFileNameExA): Likewise.
8524 (_initialize_loadable): Just use real function names without the dyn_
8525 part since they are defined earlier.
8526
f870a310
TT
85272010-03-05 Corinna Vinschen <vinschen@redhat.com>
8528 Tom Tromey <tromey@redhat.com>
8529
8530 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8531 (parse_escape): Likewise.
8532 * python/py-utils.c (unicode_to_target_string): Update.
8533 (unicode_to_target_python_string): Update.
8534 (target_string_to_unicode): Update.
8535 * printcmd.c (printf_command): Update.
8536 * p-exp.y (yylex): Update.
8537 * objc-exp.y (yylex): Update.
8538 * mi/mi-parse.c: Include charset.h.
8539 (mi_parse_escape): New function.
8540 (mi_parse_argv): Use it.
8541 * jv-exp.y (yylex): Update.
8542 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8543 function.
8544 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8545 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8546 * gdbarch.c: Rebuild.
8547 * gdbarch.h: Rebuild.
8548 * defs.h (parse_escape): Update.
8549 * cli/cli-setshow.c: Include arch-utils.h.
8550 (do_setshow_command): Update.
8551 * cli/cli-cmds.c (echo_command): Update.
8552 * charset.h (target_charset, target_wide_charset): Update.
8553 * charset.c: Include arch-utils.h.
8554 (target_charset_name): Default to "auto".
8555 (target_wide_charset_name): Likewise.
8556 (show_target_charset_name): Handle "auto".
8557 (show_target_wide_charset_name): Likewise.
8558 (be_le_arch): New global.
8559 (set_be_le_names): Add 'gdbarch' argument.
8560 (validate): Likewise. Don't call set_be_le_names.
8561 (set_charset_sfunc, set_host_charset_sfunc)
8562 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8563 Update.
8564 (target_charset): Add 'gdbarch' argument.
8565 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8566 (auto_target_charset_name): New global.
8567 (default_auto_charset, default_auto_wide_charset): New functions.
8568 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8569 for target charsets. Copy result of nl_langinfo. Use GetACP if
8570 USE_WIN32API.
8571 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8572 remove 'byte_order' argument. Update.
8573 (classify_type): Likewise.
8574 (c_emit_char): Update.
8575 (c_printchar): Update.
8576 (c_printstr): Update.
8577 (c_get_string): Update.
8578 (evaluate_subexp_c): Update.
8579 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8580 Declare.
8581 * python/python.c (gdbpy_target_charset): New function.
8582 (gdbpy_target_wide_charset): Likewise.
8583 (GdbMethods): Update.
8584 * NEWS: Update.
8585
4e7386b0
UW
85862010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8587
8588 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8589 off high address bits.
8590
aab48ede
UW
85912010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8592
8593 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8594 address as UnsignedLongLong, not LongLong.
8595
8eeafb51 85962010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 8597 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
8598
8599 * remote-mips.c (gdbthread.h): Include.
8600 (remote_mips_ptid): Declare.
8601 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8602 (common_open): Set inferior_ptid, add it as an inferior, and
8603 as a thread too. Delete FIXME comment regarding start_remote().
8604 (mips_close): Invoke generic_mourn_inferior().
8605 (mips_kill): Make sure that target_mourn_inferior is invoked.
8606 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8607 it's now invoked from mips_close().
8608 (mips_load): Don't null out inferior_ptid. Don't call
8609 clear_symtab_users().
8610 (mips_thread_alive, mips_pid_to_str): New functions.
8611 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8612 to_thread_alive and to_pid_to_str operations.
8613
ae411497
TT
86142010-03-04 Tom Tromey <tromey@redhat.com>
8615
8616 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8617 in DWARF 3 and later.
8618 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8619
0e0b460e
KS
86202010-03-04 Keith Seitz <keiths@redhat.com>
8621
8622 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8623 If the filename portion of the linespec was quoted, recheck the
8624 remainder for additional quoting.
8625 (locate_first_half): Skip over completer chars, too.
8626
1b93ff13
TT
86272010-03-04 Tom Tromey <tromey@redhat.com>
8628
8629 * printcmd.c (printf_command): Pass dummy argument to
8630 printf_filtered.
8631
fc36e839
DE
86322010-03-04 Doug Evans <dje@google.com>
8633
111f853c
DE
8634 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8635 unwound_fp.
8636
fc36e839
DE
8637 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8638
c7437ca6
PA
86392010-03-04 Pedro Alves <pedro@codesourcery.com>
8640
8641 * breakpoint.c (update_watchpoint): Create a sentinel location if
8642 the software watchpoint isn't watching any memory.
8643 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8644
58dadb1b
PA
86452010-03-04 Pedro Alves <pedro@codesourcery.com>
8646
8647 * utils.c (fputs_maybe_filtered): Check if there's already a top
8648 level interpreter before dereferencing it. If there isn't one,
8649 don't paginate either.
8650
50e98be4
DJ
86512010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8652
8653 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8654 the state right when single stepping.
8655 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8656 Get the next PC along with the instruction state.
8657 (thumb_get_next_pc): Remove.
8658 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8659
2e3ceee9
HZ
86602010-03-04 Hui Zhu <teawater@gmail.com>
8661
8662 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8663
390a8aca
PA
86642010-03-03 Pedro Alves <pedro@codesourcery.com>
8665
8666 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8667 top level interpreter is MI.
8668
9355b391
SS
86692010-03-03 Stan Shebs <stan@codesourcery.com>
8670
8671 * remote.c (remote_download_tracepoint): Iterate over locations.
8672 * tracepoint.c (validate_actionline): Ditto.
8673 (encode_actions): Add location argument.
8674 (trace_dump_command): Check all locations to see if stepping
8675 frame.
390a8aca 8676
8685c86f
L
86772010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8678 Eli Zaretskii <eliz@gnu.org>
8679
8680 * NEWS: Add X86 general purpose registers section.
8681
e8f781e2
TT
86822010-03-03 Tom Tromey <tromey@redhat.com>
8683
8684 PR mi/11098:
8685 * varobj.c (install_new_value): Handle case where new print_value
8686 is NULL.
8687
a0e0ef55
TT
86882010-03-03 Dainis Jonitis <jonitis@gmail.com>
8689
8690 PR gdb/11345:
8691 * printcmd.c (printf_command): Print end of format string using
8692 printf_filtered.
8693
a58d7472
TT
86942010-03-02 Tom Tromey <tromey@redhat.com>
8695
8696 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8697 * defs.h (read_command_lines_1): Add missing 'void'.
8698 * cli/cli-script.c (recurse_read_control_structure): Add missing
8699 'void'.
8700 (read_next_line): Likewise.
8701 (read_command_lines_1): Likewise.
8702
ce50d78b
UW
87032010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8704
8705 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8706 store backchain as part of prologue.
8707
7e9af34a
DJ
87082010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8709
8710 * progspace.c (update_address_spaces): Update inferior address spaces
8711 also.
8712
01637564
DE
87132010-03-02 Doug Evans <dje@google.com>
8714
8715 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8716 lowpc,highpc args to addrmap_set_empty.
8717
1ba53b71
L
87182010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8719
8720 * amd64-tdep.c (amd64_byte_names): New.
8721 (amd64_word_names): Likewise.
8722 (amd64_dword_names): Likewise.
8723 (amd64_pseudo_register_name): Likewise.
8724 (amd64_pseudo_register_read): Likewise.
8725 (amd64_pseudo_register_write): Likewise.
8726 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8727 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8728 set_gdbarch_pseudo_register_write and
8729 set_tdesc_pseudo_register_name. Don't call
8730 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8731
8732 * i386-tdep.c (i386_num_mmx_regs): Removed.
8733 (i386_num_pseudo_regs): Likewise.
8734 (i386_byte_names): New.
8735 (i386_word_names): Likewise.
8736 (i386_byte_regnum_p): Likewise.
8737 (i386_word_regnum_p): Likewise.
8738 (i386_mmx_regnum_p): Updated.
8739 (i386_pseudo_register_name): Make it global. Handle byte and
8740 word pseudo-registers.
8741 (i386_pseudo_register_read): Likewise.
8742 (i386_pseudo_register_write): Likewise.
8743 (i386_pseudo_register_type): Handle byte, word and dword
8744 pseudo-registers
8745 (i386_register_reggroup_p): Don't include pseudo
8746 registers, except for MXX, in any register groups. Don't
8747 include pseudo byte, word, dword registers in general_reggroup.
8748 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8749 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8750 pseudo-registers after word pseudo-registers. Call
8751 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8752
8753 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8754 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8755 eax_regnum.
8756 (i386_byte_regnum_p): New.
8757 (i386_word_regnum_p): Likewise.
8758 (i386_dword_regnum_p): Likewise.
8759 (i386_pseudo_register_name): Likewise.
8760 (i386_pseudo_register_read): Likewise.
8761 (i386_pseudo_register_write): Likewise.
8762
a6f5ef51
L
87632010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8764
8765 * target-descriptions.c (tdesc_type): Remove
8766 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8767 (tdesc_predefined_types): Likewise.
8768 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8769 if flag name is empty.
8770 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8771
8772 * features/i386/32bit-core.xml: Define i386_eflags.
8773 * features/i386/64bit-core.xml: Likewise.
8774
8775 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8776 * features/i386/64bit-sse.xml: Likewise.
8777
8778 * features/i386/amd64-linux.c: Regenerated.
8779 * features/i386/amd64.c: Likewise.
8780 * features/i386/i386-linux.c: Likewise.
8781 * features/i386/i386.c: Likewise.
8782
f5dff777
DJ
87832010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8784
8785 * gdbtypes.c (append_composite_type_field_raw): New.
8786 (append_composite_type_field_aligned): Use the new function.
8787 * gdbtypes.h (append_composite_type_field_raw): Declare.
8788 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8789 (struct tdesc_type_flag): New type.
8790 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8791 kind. Add size to u.u. Add u.f for flags.
8792 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8793 (tdesc_free_type): Likewise.
8794 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8795 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8796 (tdesc_add_bitfield, tdesc_add_flag): New.
8797 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8798 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8799 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8800 current_type. Add current_type_size and current_type_is_flags.
8801 (tdesc_start_union): Clear the new fields.
8802 (tdesc_start_struct, tdesc_start_flags): New.
8803 (tdesc_start_field): Handle struct fields, including bitfields.
8804 (field_attributes): Make type optional. Add start and end.
8805 (union_children): Rename to struct_union_children.
8806 (union_attributes): Rename to struct_union_attributes. Add optional
8807 size.
8808 (flags_attributes): New.
8809 (feature_children): Add struct and flags.
8810 * features/gdb-target.dtd: Add flags and struct to features.
8811 Make field type optional. Add field start and end.
8812
90884b2b
L
88132010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8814
8815 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8816 (amd64_linux_read_description): Likewise.
8817 (_initialize_amd64_linux_nat): Set to_read_description to
8818 amd64_linux_read_description.
8819
8820 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8821 (amd64_linux_register_name): Removed.
8822 (amd64_linux_register_type): Likewise.
8823 (amd64_linux_core_read_description): New.
8824 (amd64_linux_init_abi): Set target description to
8825 tdesc_amd64_linux if needed. Support orig_rax in target
8826 description. Don't call set_gdbarch_register_name nor
8827 set_gdbarch_register_type. Call
8828 set_gdbarch_core_read_description.
8829 (_initialize_amd64_linux_tdep): Call
8830 initialize_tdesc_amd64_linux.
8831
8832 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8833
8834 * amd64-tdep.c: Include "features/i386/amd64.c".
8835 (amd64_register_names): Removed.
8836 (amd64_register_name): Likewise.
8837 (amd64_register_type): Likewise.
8838 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 8839 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
8840 set_gdbarch_register_name nor set_gdbarch_register_type.
8841 (_initialize_amd64_tdep): New.
8842
8843 * i386-linux-nat.c (i386_linux_read_description): New.
8844 (_initialize_i386_linux_nat): Set to_read_description to
8845 i386_linux_read_description.
8846
8847 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8848 (i386_linux_register_name): Removed.
8849 (i386_linux_core_read_description): New.
8850 (i386_linux_read_description): Likewise.
8851 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8852 Set target description to tdesc_i386_linux if needed. Support
8853 orig_eax. Set register_reggroup_p. Call
8854 set_gdbarch_core_read_description.
8855 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8856
8857 * i386-linux-tdep.h (tdesc_i386_linux): New.
8858
8859 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8860 with I387_NUM_REGS.
8861
8862 * i386-tdep.c: Include "features/i386/i386.c".
8863 (i386_register_names): Make it const.
8864 (i386_mmx_names): Likewise.
8865 (i386_num_register_names): Removed.
8866 (i386_register_name): Likewise.
8867 (i386_eflags_type): Likewise.
8868 (i386_mxcsr_type): Likewise.
8869 (i386_sse_type): Likewise.
8870 (i386_register_type): Likewise.
8871 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8872 (i386_pseudo_register_name): New.
8873 (i386_pseudo_register_type): Likewise.
8874 (i386_mmx_type): Make it static.
8875 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8876 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8877 call set_gdbarch_register_name nor set_gdbarch_register_type.
8878 Set register_reggroup_p. Set target description to tdesc_i386
8879 if needed. Call set_tdesc_pseudo_register_type,
8880 set_tdesc_pseudo_register_name and tdesc_use_registers.
8881 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8882 initialize_tdesc_x86_64.
8883
8884 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8885 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8886 register_names, tdesc and register_reggroup_p.
8887 (I386_NUM_FREGS): Removed.
8888 (i386_eflags_type): Likewise.
8889 (i386_mxcsr_type): Likewise.
8890 (i386_mmx_type): Likewise.
8891 (i386_sse_type): Likewise.
8892 (i386_register_name): Likewise.
8893 (i386_regnum): Add I386_MXCSR_REGNUM.
8894 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8895
8896 * i387-tdep.h (I387_NUM_REGS): New.
8897
8898 * regformats/i386/i386-linux.dat: Generated.
8899 * regformats/i386/i386.dat: Likewise.
8900 * regformats/i386/amd64-linux.dat: Likewise.
8901 * regformats/i386/amd64.dat: Likewise.
8902
8903 * regformats/reg-i386-linux.dat: Removed.
8904 * regformats/reg-i386.dat: Likewise.
8905 * regformats/reg-x86-64-linux.dat: Likewise.
8906 * regformats/reg-x86-64.dat: Likewise.
8907
d0d0ab16
CV
89082010-03-01 Corinna Vinschen <vinschen@redhat.com>
8909
8910 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8911 cygwin_conv_path API rather than the deprecated
8912 cygwin_conv_to_full_posix_path.
8913 * windows-nat.c:
8914 (GetModuleFileNameExA): Undefine for Cygwin.
8915 (GetModuleFileNameExW): Define for Cygwin.
8916 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8917 Call GetModuleFileNameExW and convert path to POSIX using
8918 cygwin_conv_path.
8919 (windows_make_so): Always define p. Drop unused variable m.
8920 Don't use Win32 functions to check file existance, rather use
8921 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8922 Use canonicalize_file_name to get full path.
8923 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8924 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8925 use correct target buffer size in call to WideCharToMultiByte.
8926 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8927 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8928 (windows_create_inferior): Convert all paths and arguments to wchar_t
8929 and use CreateProcessW on Cygwin.
8930 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8931 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8932 (bad_GetModuleFileNameExW): Define for Cygwin.
8933 (_initialize_loadable): Load GetModuleFileNameExW into
8934 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8935
dc00d89f
PM
89362010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8937
8938 PR python/11036
8939 * python/py-frame.c (frapy_read_var): Add block argument and logic
8940 to cope with user provided blocks.
8941
0e095b7e
JK
89422010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8943
8944 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8945 New comment.
8946
2f9e05b4
CV
89472010-02-28 Corinna Vinschen <vinschen@redhat.com>
8948
8949 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8950 (COMMON_OBS): ... to here since it's used unconditionally.
8951 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8952 (SFILES): To here.
8953
eb195664
DD
89542010-02-26 David Daney <ddaney@caviumnetworks.com>
8955
8956 * mips-linux-tdep.c: Update struct sigframe comments.
8957 (SIGFRAME_CODE_OFFSET): Delete macro.
8958 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8959 this_frame's sp.
8960 (mips_linux_n32n64_sigframe_init): Same.
8961
97b0f3e2
KB
89622010-02-26 Kevin Buettner <kevinb@redhat.com>
8963
8964 * remote-mips.c (mips_load): Don't use pseudo-register when
8965 invalidating regcache.
8966
4069ebbe
DJ
89672010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8968
8969 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8970
05071a4d
PA
89712010-02-26 Pedro Alves <pedro@codesourcery.com>
8972
8973 * NEWS: Add "New targets" section, and mention ARM Symbian
8974 support.
8975
6063c216
UW
89762010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8977
8978 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8979 add ADDR_SIZE member.
8980 (allocate_piece_closure): Update.
8981 (copy_pieced_value_closure): Likewise.
8982 (dwarf2_evaluate_loc_desc): Likewise.
8983 (read_pieced_value): Use DWARF address size instead of
8984 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8985
5107b149 89862010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 8987 Tom Tromey <tromey@redhat.com>
5107b149
PM
8988
8989 * python/py-type.c (typy_lookup_typename): Add in block argument.
8990 If provided restrict lookup to specified blocks.
8991 (gdbpy_lookup_type): Likewise.
8992 (typy_lookup_type): Likewise.
8993
78664fa3 89942010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 8995
78664fa3
PA
8996 Symbian config
8997
8998 gdb/
8999 * arm-symbian-tdep.c: New.
9000 * configure.tgt (arm*-*-symbianelf*): New target.
9001 (*-*-symbianelf*): New OS.
9002 * osabi.c (gdb_osabi_names): Add Symbian.
9003 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
9004 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
9005 (ALLDEPFILES): Add arm-symbian-tdep.c.
9006
eb73e134
DJ
90072010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
9008
9009 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
9010
46ef47e5
PA
90112010-02-24 Pedro Alves <pedro@codesourcery.com>
9012
9013 * mi/mi-main.c (mi_cmd_execute): Fix typo.
9014
f3e9a817 90152010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 9016 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
9017 Thiago Jung Bauermann <bauerman@br.ibm.com>
9018
9019 * python/python.c (_initialize_python): Call
9020 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9021 gdbpy_initialize_blocks.
9022 * python/python-internal.h: Declare struct symbol, block and
9023 symtab_and_line. Declare block_object_type and
9024 symbol_object_type
9025 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9026 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9027 (symbol_to_symbol_object, block_to_block_object)
9028 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9029 (gdbpy_initialize_blocks ): Declare.
9030 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9031 (frapy_select): Add methods.
9032 (frapy_read_var): Add symbol branch.
9033 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9034 py-block.
9035 (SUBDIR_PYTHON_SRCS): Likewise.
9036 (py-symbol.o): New rule.
9037 (py-symtab.o): Likewise.
9038 (py-block.o): Likewise.
9039 * python/py-symbol.c: New file.
9040 * python/py-symtab.c: Likewise.
9041 * python/py-block.c: Likewise.
9042
24291992
PA
90432010-02-24 Pedro Alves <pedro@codesourcery.com>
9044
9045 PR gdb/11321
9046
9047 * inferior.h (prepare_for_detach): Declare.
9048 (struct inferior) <detaching>: New field.
9049 * infrun.c (prepare_for_detach): New.
9050 (handle_inferior_event) <random signal>: Don't stop if detaching.
9051 * target.c (target_detach): Call prepare_for_detach.
9052
fc1cf338
PA
90532010-02-24 Pedro Alves <pedro@codesourcery.com>
9054
9055 Per-process displaced stepping queue.
9056
9057 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9058 (displaced_step_gdbarch, displaced_step_closure,
9059 (displaced_step_original, displaced_step_copy): Move globals to
9060 this...
9061 (struct displaced_step_inferior_state): ... new structure.
9062 (displaced_step_inferior_states): New global.
9063 (get_displaced_stepping_state, add_displaced_stepping_state)
9064 (remove_displaced_stepping_state, infrun_inferior_exit): New
9065 functions.
9066 (displaced_step_clear): Add displaced_step_inferior_state
9067 parameter, and adjust to handle it.
9068 (displaced_step_clear_cleanup): Parameter is now a
9069 displaced_step_inferior_state. Adjust.
9070 (displaced_step_prepare): Adjust.
9071 (displaced_step_fixup, displaced_step_fixup)
9072 (infrun_thread_ptid_changed, resume): Adjust.
9073 (init_wait_for_inferior): Don't call displaced_step_clear.
9074 (infrun_thread_stop_requested): Rewrite.
9075 (_initialize_infrun): Install infrun_inferior_exit as
9076 inferior_exit observer.
9077
0723dbf5
PA
90782010-02-24 Pedro Alves <pedro@codesourcery.com>
9079
9080 * inferior.h (ptid_match): Declare.
9081 * infrun.c (ptid_match): New.
9082 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9083 (handle_notification): Add debug output.
9084 * linux-nat.c (ptid_match): Delete.
9085
09de9781
DM
90862010-02-24 David S. Miller <davem@davemloft.net>
9087
9088 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9089 * syscalls/sparc-linux.xml: New.
9090 * syscalls/sparc64-linux.xml: New.
9091 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9092 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9093 (sparc32_linux_get_syscall_number): New function.
9094 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9095 syscall number fetcher.
9096 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9097 (sparc64_linux_get_syscall_number): New function.
9098 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9099 syscall number fetcher.
9100
a79b8f6e
VP
91012010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9102
9103 Multiexec MI
9104
9105 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9106 * inferior.c (add_inferior_silent): Notify inferior_added
9107 observer.
9108 (delete_inferior_1): Notify inferior_removed observer.
9109 (exit_inferior_1): Pass inferior, not pid, to observer.
9110 (inferior_appeared): Likewise.
9111 (add_inferior_with_spaces): New.
9112 (add_inferior_command): Use the above.
9113 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9114 Declare.
9115
9116 * inflow.c (inflow_inferior_exit): Likewise.
9117 * jit.c (jit_inferior_exit_hook): Likewise.
9118
9119 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9120 remove-inferior.
9121 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9122 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9123 (report_initial_inferior): New.
9124 (mi_inferior_removed): Register the above. Make sure
9125 inferior_added observer is called on the first inferior.
9126 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9127 inferior number, not pid.
9128 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9129 affected.
9130 * mi/mi-main.c (current_context): New.
9131 (proceed_thread_callback): Use typed closure.
9132 Proceed everything if pid is 0. Most implementation split into
9133 (proceed_thread): ... this.
9134 (run_one_inferior): New.
9135 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9136 Adjust for multiexec behaviour.
9137 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9138 (mi_cmd_execute): Handle the 'thread-group' option here.
9139 Do some extra checks.
9140 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9141 options.
9142 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9143
115d30f9
VP
91442010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9145
9146 Make -exec-run a proper MI commands.
9147
9148 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9149 * mi/mi-cmds.c (mi_cmds): Adjust.
9150 * mi/mi-main.c (mi_cmd_exec_run): New.
9151
06cd862c
PA
91522010-02-24 Pedro Alves <pedro@codesourcery.com>
9153 Stan Shebs <stan@codesourcery.com>
9154
9155 * tracepoint.h (set_traceframe_number)
9156 (cleanup_restore_current_traceframe): Declare.
9157 * tracepoint.c (set_traceframe_number): New.
9158 (struct current_traceframe_cleanup): New.
9159 (do_restore_current_traceframe_cleanup)
9160 (restore_current_traceframe_cleanup_dtor)
9161 (make_cleanup_restore_current_traceframe): New.
9162 * infrun.c: Include tracepoint.h.
9163 (fetch_inferior_event): Switch out and in of tfind mode.
9164
ab92d69b
PA
91652010-02-24 Pedro Alves <pedro@codesourcery.com>
9166
9167 * breakpoint.c (breakpoint_init_inferior): Also delete
9168 bp_shlib_event breakpoints.
9169 * solib-frv.c (enable_break): Remove call to
9170 remove_solib_event_breakpoints.
9171 * solib-svr4.c (enable_break): Ditto.
9172 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9173 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9174 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9175 * solib-spu.c (spu_enable_break): Ditto.
9176
e707a91d
PA
91772010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9178
9179 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9180
cfce2ea2
PA
91812010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9182
9183 * varobj.c (varobj_update): Avoid non-constants in initializers.
9184
05566b3b
TT
91852010-02-23 Tom Tromey <tromey@redhat.com>
9186
9187 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9188 handle big-endian values.
9189 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9190
85d721b8
PA
91912010-02-22 Pedro Alves <pedro@codesourcery.com>
9192
9193 PR9605
9194
9195 gdb/
9196 * breakpoint.c (insert_bp_location): If inserting the read
9197 watchpoint failed, fallback to an access watchpoint.
9198 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9199 if the value changed, if not watching the same memory for writes.
9200 (watchpoint_locations_match): Add comment.
9201 (update_global_location_list): Copy the location's watchpoint type.
9202 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9203 handle read watchpoints here.
9204 (i386_insert_watchpoint): Read watchpoints aren't supported.
9205 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9206 packets.
9207 * target.h (target_insert_watchpoint): Update description.
9208
48ea67a7
TT
92092010-02-19 Tom Tromey <tromey@redhat.com>
9210
9211 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9212 * m2-typeprint.c (m2_print_type): Update.
9213 * gdbtypes.c (recursive_dump_type): Update.
9214 (copy_type_recursive): Update.
9215 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9216 (c_type_print_base): Update.
9217 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9218 Remove.
9219 (struct cplus_struct_type) <ntemplate_args>: Remove.
9220 <struct template_arg>: Remove.
9221 <is_dynamic>: Move earlier.
9222 (TYPE_TEMPLATE_ARGS): Remove.
9223 (TYPE_NTEMPLATE_ARGS): Remove.
9224 (TYPE_TEMPLATE_ARG): Remove.
9225
48e32051
TT
92262010-02-19 Tom Tromey <tromey@redhat.com>
9227
9228 PR c++/8693, PR c++/9496:
9229 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9230 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9231 write_dollar_variable. Don't try to classify NAME tokens.
9232 (token_and_value): New type.
9233 (token_fifo, popping, name_obstack): New globals.
9234 (classify_name): New function.
9235 (classify_inner_name): Likewise.
9236 (yylex): Likewise.
9237 (VARIABLE): Now has type sval.
9238 (exp : VARIABLE): Call write_dollar_variable.
9239 (qualified_name): Use TYPENAME, not typebase. Add production for
9240 multiple "::" instances.
9241 (variable): Use name_not_typename.
9242 (qualified_type): Remove.
9243 (typebase): Update.
9244
672d9c23
JK
92452010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9246
9247 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9248 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9249 found by bfd_get_section_by_name.
9250 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9251
bfbf3774
JB
92522010-02-19 Joel Brobecker <brobecker@adacore.com>
9253
9254 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9255 7.0 section" into "Changes in 7.1".
9256
6756b09b 92572010-02-19 Joel Brobecker <brobecker@adacore.com>
9258
9259 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9260 * version.in: Bump version to 7.1.50.20100219-cvs.
9261
202b96c1
PA
92622010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9263
9264 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9265 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9266
de2e5182
TT
92672010-02-17 Tom Tromey <tromey@redhat.com>
9268
9269 * NEWS: Add Python API Improvements section.
9270
7280022e
DJ
92712010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9272
9273 * NEWS: Correct typo.
9274
6f451e5e
TT
92752010-02-17 Tom Tromey <tromey@redhat.com>
9276
9277 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9278
012836ea
JK
92792010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9280
9281 * symfile.c (build_section_addr_info_from_objfile): Include sections
9282 only if they are SEC_ALLOC or SEC_LOAD.
9283
d182d057
L
92842010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9285
9286 PR shlibs/11293
9287 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9288 of ULONGEST for address size.
9289
4eef138c
TT
92902010-02-17 Tom Tromey <tromey@redhat.com>
9291
9292 * NEWS: Add C++ improvements section.
9293
548a926a
UW
92942010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9295
9296 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9297 PyThreadState_Swap): Avoid "statement with no effect" warning.
9298
ad3a0e5b
JK
92992010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9300
9301 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9302 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9303
243e2c5d 93042010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9305 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9306
9307 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9308 gdb_assert. Fix info->size for SIG prologue.
9309
275f2e57
DJ
93102010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9311
9312 * infcmd.c (show_inferior_tty_command): Check for NULL.
9313 Correct output message.
9314
791dfb64
DJ
93152010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9316
9317 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9318 FUNCTION contains parentheses. Improve removal of a trailing
9319 single quote.
9320
14d1346b
DJ
93212010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9322
9323 * gcore.c (do_bfd_delete_cleanup): New function.
9324 (gcore_command): Use it. Discard the cleanup after success.
9325 (gcore_copy_callback): Delete dead code.
9326
e76ab67f
DJ
93272010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9328
9329 * symfile.c (addr_info_make_relative): Always use
9330 find_lowest_section.
9331
71dee663
SW
93322010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9333
9334 * NEWS: Added entry for namespace fixes.
9335
a9854bd5
TT
93362010-02-15 Tom Tromey <tromey@redhat.com>
9337
9338 * dwarf2read.c (guess_structure_name): Allocate name on the
9339 objfile obstack.
9340
fd9e29b5
TT
93412010-02-15 Tom Tromey <tromey@redhat.com>
9342
9343 * c-typeprint.c (c_type_print_base): Reverse order of test.
9344
4e1fc9c9
JK
93452010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9346
9347 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9348 initialize it from ELF BFD. Extend the prelink condition by it.
9349
74164c56
JK
93502010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9351
9352 * defs.h (parse_pid_to_attach): New.
9353 * utils.c (parse_pid_to_attach): New.
9354 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9355 * gnu-nat.c (gnu_attach): Likewise.
9356 * nto-procfs.c (procfs_attach): Likewise.
9357 * procfs.c (procfs_attach): Likewise.
9358 * windows-nat.c (windows_attach): Likewise.
9359 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9360 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9361 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9362 check.
9363
bf6adea8
MM
93642010-02-14 Masaki Muranaka <monaka@monami-software.com>
9365
9366 * MAINTAINERS: Add myself for write after approval privileges.
9367
28f34a8f
JK
93682010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9369
9370 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9371 block.
9372
701ed6dc
JK
93732010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9374
9375 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9376 only if INFO_VERBOSE.
9377
e5829bee
MS
93782010-02-12 Tomas Holmberg <th@virtutech.com>
9379
9380 * mi/mi-main.c: Added the --reverse flag to the following MI
9381 commands: exec-continue, exec-finish, exec-next, exec-step,
9382 exec-next-instruction, exec-step-instruction. This is to
9383 support reverse execution over the MI interface to gdb.
9384
081dfbf7
PA
93852010-02-12 Pedro Alves <pedro@codesourcery.com>
9386
9387 * tracepoint.c (_initialize_tracepoint): Specify that the address
9388 range of `tfind outsize' is exclusive, and that the address range
9389 of `tfind range' is inclusive, in the commands' help strings.
9390
ecc13e53
JB
93912010-02-12 Joel Brobecker <brobecker@adacore.com>
9392
9393 Spurious "dll not found" error messages on x64-windows.
9394 * windows-nat.c: Add include of complaints.h.
9395 (handle_unload_dll): Change dll-not-found error into a complaint.
9396
15c3d785
PA
93972010-02-12 Pedro Alves <pedro@codesourcery.com>
9398
9399 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9400 bp_tracepoint and bp_fast_tracepoint, not
9401 bp_loc_software_breakpoint.
9402 (update_global_location_list): Tracepoints are never duplicates of
9403 anything.
9404
fd9b8c24
PA
94052010-02-12 Pedro Alves <pedro@codesourcery.com>
9406
9407 * breakpoint.c (break_command_really): Change return type to int.
9408 Return false if no breakpoint was created, true otherwise.
9409 (trace_command): Don't set the tracepoint count if no tracepoint
9410 was created.
9411 (ftrace_command): Ditto.
9412 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9413 created in the breakpoints table.
9414
5c0d192f
JK
94152010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9416 Ulrich Weigand <uweigand@de.ibm.com>
9417
9418 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9419
5d5b640e
PA
94202010-02-11 Pedro Alves <pedro@codesourcery.com>
9421
9422 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9423 the offset value isn't of integral type.
9424
e5a0a904
JK
94252010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9426
9427 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9428 New.
9429
be636754
PA
94302010-02-11 Pedro Alves <pedro@codesourcery.com>
9431
9432 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9433 non-subscriptable types.
9434 * valarith.c (binop_types_user_defined_p): New, abstracted out
9435 from ...
9436 (binop_user_defined_p): ... this.
9437 * value.h (binop_types_user_defined_p): Declare.
9438
10ef8d6a
PA
94392010-02-11 Pedro Alves <pedro@codesourcery.com>
9440
9441 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9442 Merge uploaded TSVs before merging uploaded tracepoints.
9443
b1028c8e
PA
94442010-02-11 Pedro Alves <pedro@codesourcery.com>
9445
9446 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9447
7a93fb82 94482010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 9449
7a93fb82
VP
9450 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9451 whitespace character after a dot in comment.
9452 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9453 Likewise.
9454 (list_args_or_locals): For the 'all' (that is
9455 -stack-list-variables) case, always output list of tuples.
9456 Output 'arg' field if variable is argument.
84d90c10 9457
92981e24
TT
94582010-02-10 Tom Tromey <tromey@redhat.com>
9459
9460 * parser-defs.h (parser_debug): Declare.
9461 * parse.c (_initialize_parse): Install "debug parser" set/show
9462 command.
9463 (parser_debug): New global.
9464 (show_parserdebug): New function.
9465 * c-exp.y (c_parse): Set yydebug.
9466
9fd3625f
L
94672010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9468
9469 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9470 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9471 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9472 i386_mxcsr.
9473 (tdesc_find_type): New.
9474 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9475 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9476
9477 * target-descriptions.h (tdesc_find_type): New.
9478
2fe842e5
MS
94792010-02-10 Michael Snyder <msnyder@vmware.com>
9480
9481 * gdb-gdb.py: Comment fix.
9482
f18b4cab
TG
94832010-02-09 Tristan Gingold <gingold@adacore.com>
9484
9485 * machoread.c (macho_symfile_relocate): New function.
9486 (macho_sym_fns): Use macho_symfile_relocate instead of
9487 default_symfile_relocate.
9488 (macho_oso_data): New type.
9489 (current_oso): New variable.
9490 (macho_add_oso_symfile): Do not compute section_addr_info, but
9491 instead set vma of sections.
9492 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9493 Set and clear current_oso.
9494
31dbc1c5
JB
94952010-02-09 Joel Brobecker <brobecker@adacore.com>
9496
9497 Wrong type description for tagged type parameter.
9498 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9499 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9500 reference to a tagged type.
9501
399f313b
TG
95022010-02-09 Tristan Gingold <gingold@adacore.com>
9503
9504 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9505 brothers of the parent.
9506
714f19d5
TT
95072010-02-08 Tom Tromey <tromey@redhat.com>
9508
9509 PR c++/8017:
9510 * value.h: Update.
9511 * valops.c (search_struct_field): Make 'name' const.
9512 (search_struct_method): Likewise.
9513 (find_method_list): Make 'method' const.
9514 (value_struct_elt): Make 'name' and 'err' const.
9515 (value_find_oload_method_list): Make 'method' const.
9516 (find_overload_match): Make 'name' const.
9517 * eval.c (evaluate_subexp_standard): New locals function,
9518 function_name.
9519 <OP_FUNCALL>: Handle OP_SCOPE specially.
9520
de0a0249
UW
95212010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9522
9523 * infrun.c (handle_inferior_event): Do not look up regcache
9524 for exited processes.
9525
8d95cc3b 95262010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
9527
9528 PR gdb/10728
9529 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 9530 warn if found, and assume length = 1.
83b10087 9531
99903ae3
CM
95322010-02-08 Chris Moller <cmoller@redhat.com>
9533
9534 PR gdb/9067
9535 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 9536 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 9537
e3e9f5a2
PA
95382010-02-08 Pedro Alves <pedro@codesourcery.com>
9539
9540 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9541 resumed LWPs as resumed.
9542 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9543 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9544 of throwing an internal error. If an LWP of a process we're not
9545 waiting for reports a signal, don't force collecting a SIGSTOP,
9546 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9547 go through all LWPs cancelling breakpoints in non-stop mode.
9548 (resume_stopped_resumed_lwps): New.
9549 (linux_nat_wait): Use it.
9550
46763423
L
95512010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9552
9553 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9554 i386/amd64 and i386/amd64-linux.
9555 (i386/i386-expedite): New.
9556 (i386/i386-linux-expedite): Likewise.
9557 (i386/amd64-expedite):Likewise.
9558 (i386/amd64-linux-expedite): Likewise.
9559 ($(outdir)/i386/i386-linux.dat): Likewise.
9560 ($(outdir)/i386/amd64.dat): Likewise.
9561 ($(outdir)/i386/amd64-linux.dat): Likewise.
9562
9563 * features/i386/32bit-core.xml: New.
9564 * features/i386/32bit-linux.xml: Likewise.
9565 * features/i386/32bit-sse.xml: Likewise.
9566 * features/i386/64bit-core.xml: Likewise.
9567 * features/i386/64bit-linux.xml: Likewise.
9568 * features/i386/64bit-sse.xml: Likewise.
9569 * features/i386/i386-linux.xml: Likewise.
9570 * features/i386/i386.xml: Likewise.
9571 * features/i386/amd64-linux.xml: Likewise.
9572 * features/i386/amd64.xml: Likewise.
9573 * features/i386/i386-linux.c: Likewise.
9574 * features/i386/i386.c: Likewise.
9575 * features/i386/amd64-linux.c: Likewise.
9576 * features/i386/amd64.c: Likewise.
9577
82856980
SW
95782010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9579
9580 PR c++/7935:
9581 * cp-support.h: Added char* alias element to using_direct data
9582 struct.
9583 (cp_add_using): Added char* alias argument.
9584 (cp_add_using_directive): Ditto.
9585 * cp-namespace.c: Updated with the above changes.
9586 (cp_lookup_symbol_imports): Check for aliases.
9587 * dwarf2read.c (read_import_statement): Figure out local alias
9588 for the import and pass it on to cp_add_using.
9589 (read_namespace): Pass alias argument to cp_add_using.
9590
d18b8b7a
HZ
95912010-02-05 Hui Zhu <teawater@gmail.com>
9592
9593 * defs.h (gdb_bfd_errmsg): New extern.
9594 * exec.c (exec_file_attach): Change bfd_errmsg to
9595 gdb_bfd_errmsg.
9596 * utils.c (AMBIGUOUS_MESS1): New macro.
9597 (AMBIGUOUS_MESS2): New macro.
9598 (gdb_bfd_errmsg): New function.
9599
48379de6
DE
96002010-02-04 Doug Evans <dje@google.com>
9601
9602 * solib-svr4.c (enable_break): Add comment.
9603
4ee73e90
AG
96042010-02-04 Anthony Green <green@moxielogic.com>
9605
9606 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9607 gracefully.
9608
1a334831
TT
96092010-02-04 Tom Tromey <tromey@redhat.com>
9610
9611 * valops.c (search_struct_field): Account for
9612 value_embedded_offset. Fix check for virtual base past the end of
9613 the object. Use value_copy when making a slice of the value.
9614
1180b2c8
L
96152010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9616
9617 PR tui/9622
9618 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9619 only if gdb_stdout is a tty.
9620
c3f08eb7
L
96212010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9622
9623 * target-descriptions.c: Include "osabi.h".
9624 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9625 OSABI.
9626
2d33f7b8
TG
96272010-02-04 Tristan Gingold <gingold@adacore.com>
9628
9629 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9630 (macho_symtab_read): Adjust calls to macho_add_oso.
9631 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9632 (macho_symfile_read): Adjust call to macho_oso_symfile.
9633 (macho_new_init): Move this function after declarations.
9634 (macho_symfile_init): Ditto.
9635 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9636 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9637
11334b82
VP
96382010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9639
9640 Include MI command in remotelog.
9641
9642 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9643
ff97be06
L
96442010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9645
9646 * remote.c (remote_state): Remove gdbarch.
9647 (init_remote_state): Don't set gdbarch.
9648 (remote_query_supported): Pass target_gdbarch instead of
9649 rs->gdbarch to gdbarch_qsupported.
9650
75cebea9
L
96512010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9652
9653 * gdbarch.sh: Add qsupported.
9654
9655 * gdbarch.c: Regenerated.
9656 * gdbarch.h: Likewise.
9657
9658 * remote.c (remote_state): Add gdbarch.
9659 (init_remote_state): Set gdbarch.
9660 (remote_query_supported): Support gdbarch_qsupported.
9661
c1dec97b
DJ
96622010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9663
9664 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9665 __FreeBSD_kernel_version.
9666
ac8035ab
TG
96672010-02-03 Tristan Gingold <gingold@adacore.com>
9668
9669 * symfile.h (struct sym_fns): Add sym_relocate field.
9670 (default_symfile_relocate): New prototype.
9671 (symfile_relocate_debug_section): First argument is now an objfile.
9672 * symfile.c (default_symfile_relocate): Rename from
9673 symfile_relocate_debug_section, first argument is now an objfile.
9674 (symfile_relocate_debug_section): New function.
9675 * coffread.c (coff_sym_fns): Set sym_relocate field.
9676 * somread.c (som_sym_fns): Ditto.
9677 * mipsread.c (ecoff_sym_fns): Ditto.
9678 * machoread.c (macho_sym_fns): Ditto.
9679 * elfread.c (elf_sym_fns): Ditto.
9680 * dwarf2read.c (dwarf2_read_section): Ditto.
9681 * xcoffread.c (xcoff_sym_fns): Ditto.
9682 * dbxread.c (aout_sym_fns): Ditto.
9683 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9684 (elfstab_build_psymtabs): Ditto.
9685
be52b756
L
96862010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9687
9688 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9689
9c3c02fd
TT
96902010-02-02 Tom Tromey <tromey@redhat.com>
9691
9692 * valops.c (value_cast_structs): Try downcasting using the RTTI
9693 type.
9694
f23f4c59
TT
96952010-02-02 Tom Tromey <tromey@redhat.com>
9696
9697 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9698 (gnuv2_baseclass_offset): Now static.
9699 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9700 * gnu-v2-abi.h: Remove.
9701
0cc2414c
TT
97022010-02-02 Tom Tromey <tromey@redhat.com>
9703
9704 * m2-typeprint.c (m2_record_fields): Don't use
9705 TYPE_DECLARED_TYPE.
9706 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9707 (struct main_type) <flag_declared_class>: New field.
9708 (struct cplus_struct_type) <declared_type>: Remove.
9709 <ntemplate_args>: Move earlier.
9710 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9711 (DECLARED_TYPE_TEMPLATE): Remove.
9712 (TYPE_DECLARED_TYPE): Remove.
9713 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9714 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9715 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9716 TYPE_DECLARED_TYPE.
9717
edf3d5f3
TT
97182010-02-02 Tom Tromey <tromey@redhat.com>
9719
9720 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9721 * valops.c (search_struct_field): Compute nbases after calling
9722 CHECK_TYPEDEF.
9723 (check_field): Call CHECK_TYPEDEF.
9724 * cp-valprint.c (cp_print_value): Pass correct address to
9725 baseclass_offset. Fix check for virtual base past the end of the
9726 object. Don't offset address passed to cp_print_value_fields or
9727 apply_val_pretty_printer.
9728 (cp_print_value_fields): Fix call to val_print.
9729 (cp_print_value_fields_rtti): New function.
9730 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9731 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9732 val_print.
9733 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9734 offset to address.
9735 * language.h (struct language_defn) <la_val_print>: Document.
9736 * c-lang.h (cp_print_value_fields_rtti): Declare.
9737
e4b7f41c
JK
97382010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9739
9740 PR libc/11214:
9741 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9742 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9743 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9744
7618e12b
DJ
97452010-02-01 Michael Matz <matz@suse.de>
9746 Daniel Jacobowitz <dan@codesourcery.com>
9747
e4b7f41c 9748 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
9749 functions use a frame pointer.
9750
b381ea14
JK
97512010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9752
9753 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9754 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9755 * config/djgpp/fnchange.lst: Add translations for
9756 symbol-without-target_section.exp and symbol-without-target_section.c.
9757
0e05dfcb
DJ
97582010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9759
9760 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9761 (remote_breakpoint_for_pc): Correct invalid_p check.
9762 * gdbarch.c: Regenerated.
9763
f9d67f43
DJ
97642010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9765
9766 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9767 arm_pc_is_thumb.
9768 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9769 (extend_buffer_earlier): New function.
9770 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9771 (arm_adjust_breakpoint_address): New function.
9772 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9773
177321bd
DJ
97742010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9775
9776 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9777 (arm_linux_thumb2_le_breakpoint): New constants.
9778 (arm_linux_init_abi): Set thumb2_breakpoint and
9779 thumb2_breakpoint_size.
9780 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9781 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9782 Implement support for single stepping through IT blocks if
9783 a 32-bit Thumb breakpoint instruction is available.
9784 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9785 is available, use it when needed.
9786 (arm_remote_breakpoint_from_pc): New function.
9787 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9788 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9789 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9790
a1dcb23a
DJ
97912010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9792
9793 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9794 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9795 * gdbarch.c, gdbarch.h: Regenerated.
9796 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9797 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9798 gdbarch_remote_breakpoint_from_pc.
9799
2b009048
DJ
98002010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9801
9802 * infrun.c (prepare_to_proceed): Handle other signals which might
9803 match a breakpoint.
9804 (handle_inferior_event): Move the check for unusual breakpoint
9805 signals earlier.
9806
e4e2711a
JB
98072010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9808
9809 amd64 - function returning record with field straddling 2 registers.
9810 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9811 a record of length <= 16 in which a field straddles the two
9812 eightbytes.
9813
cba6fab5
JB
98142010-01-29 Joel Brobecker <brobecker@adacore.com>
9815
9816 Implement return values on amd64-windows.
9817 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9818 (amd64_windows_return_value): New function.
9819 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9820 amd64_windows_return_value.
9821
3af6ddfe
JB
98222010-01-29 Joel Brobecker <brobecker@adacore.com>
9823
9824 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 9825 parameter registers.
3af6ddfe
JB
9826 * i386-tdep.h (struct gdbarch_tdep): Add new field
9827 integer_param_regs_saved_in_caller_frame.
9828 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9829 tdep->integer_param_regs_saved_in_caller_frame to 1.
9830 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9831 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9832
80d19a06
JB
98332010-01-29 Joel Brobecker <brobecker@adacore.com>
9834
9835 amd64-windows: memory args passed by pointer during function calls.
9836 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9837 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9838 where tdep->memory_args_by_pointer is non-zero.
9839 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9840 tdep->memory_args_by_pointer to 1.
9841
ba581dc1
JB
98422010-01-29 Joel Brobecker <brobecker@adacore.com>
9843
4966b6c2 9844 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
9845 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9846 amd64-tdep.c.
9847 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9848 call_dummy_integer_regs, and classify.
9849 * amd64-tdep.h (amd64_classify): Add declaration.
9850 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9851 (amd64_reg_class): Delete, moved to i386-tdep.h.
9852 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9853 Replace call to amd64_classify by call to tdep->classify.
9854 (amd64_push_arguments): Get the list of registers to use for
9855 passing integer parameters from the gdbarch tdep structure,
9856 rather than using a hardcoded one. Replace calls to amd64_classify
9857 by calls to tdep->classify.
9858 (amd64_push_dummy_call): Get the register number used for
9859 the "hidden" argument from tdep->call_dummy_integer_regs.
9860 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9861 and tdep->call_dummy_integer_regs. Set tdep->classify.
9862 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9863 (amd64_windows_dummy_call_integer_regs): New static global.
9864 (amd64_windows_classify): New function.
9865 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9866 tdep->call_dummy_integer_regs and tdep->classify.
9867
d37346f0
DJ
98682010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9869
9870 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9871 for the new regcache. All callers updated.
9872 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9873 (get_thread_arch_regcache): Do not set aspace here.
9874 * regcache.h (regcache_xmalloc): Update declaration.
9875
9876 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9877 regcache_xmalloc updated.
9878
7434dadd
JB
98792010-01-28 Joel Brobecker <brobecker@adacore.com>
9880
9881 Another -Wunused-function error in procfs.c (sparc-solaris)
9882 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9883 Only define if SYS_syssgi is defined.
9884 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9885 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9886 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9887 is itself defined.
9888
16d905e2
CF
98892010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9890
9891 * windows-nat.c (windows_initialization_done): New variable.
9892 (get_windows_debug_event): Issue error when process dies before
9893 completely initializing.
9894 (do_initial_windows_stuff): Set flag to indicate when we are done with
9895 the initial steps of attaching to the child.
9896
cd55e50f
JK
98972010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9898
9899 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9900
99cc78aa
DE
99012010-01-27 Doug Evans <dje@google.com>
9902
4c7dcb84
DE
9903 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9904
99cc78aa
DE
9905 * breakpoint.c (bpstat_stop_status): Delete useless code.
9906
52334bf5
JK
99072010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9908
9909 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9910 objfile via SYMBOL_SYMTAB.
9911
708ead4e
TT
99122010-01-26 Tom Tromey <tromey@redhat.com>
9913
9914 PR exp/7643:
9915 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9916 coerce_array on result.
9917
b14e635e
SW
99182010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9919
9920 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9921 search_parent argument.
9922 (cp_add_using): Initialize 'searched' field.
9923 (reset_directive_searched): New function.
9924 * cp-support.h: Add 'searched' field to using_direct struct.
9925 (cp_lookup_symbol_imports): Ditto.
9926 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9927 Perform recursive search.
9928 Implement non parent search.
9929 * valops.c (value_maybe_namespace_elt): Updated.
9930
8540c487
SW
99312010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9932
9933 PR gdb/10929:
9934 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9935 scopes which contain using directives even if they contain no
9936 declarations.
9937 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9938 la_lookup_symbol_nonlocal.
9939 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9940 cp_lookup_symbol_namespace.
9941 (cp_lookup_symbol_namespace): Perform an import lookup at every
9942 block level.
9943 (cp_lookup_symbol_imports): New function.
9944 (cp_lookup_symbol_in_namespace): New function.
9945
421d5d99
TT
99462010-01-25 Tom Tromey <tromey@redhat.com>
9947
9948 PR gdb/11049:
9949 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9950 result.
9951
6bcc772d
RO
99522010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9953
9954 * configure.ac: Only use host_os part when disabling TUI on osf.
9955 Use test to check variables, prefix strings with x.
9956 * configure: Regenerate.
9957
9958 * solib-osf.c (osf_current_sos): Initialize tail.
9959
1c1238a5
TG
99602010-01-25 gingold <gingold@adacore.com>
9961
c8d5aac9
L
9962 * windows-nat.c (windows_continue): Use %x to print thread id.
9963 (get_windows_debug_event): Ditto.
1c1238a5 9964
0b92b5bb
TT
99652010-01-22 Tom Tromey <tromey@redhat.com>
9966
9967 PR symtab/11199:
9968 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9969 type and arguments. Use smash_to_methodptr_type.
9970 (read_structure_type): Call quirk_gcc_member_function_pointer
9971 later.
9972 * gdbtypes.h (smash_to_methodptr_type): Declare.
9973 * gdbtypes.c (smash_to_methodptr_type): New function.
9974 (lookup_methodptr_type): Use it.
9975
0d5392b8
TT
99762010-01-21 Tom Tromey <tromey@redhat.com>
9977
9978 PR symtab/11198:
9979 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9980 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9981 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9982 (glibc_skip_solib_resolver): Use
9983 lookup_minimal_symbol_and_objfile.
9984
e6d088ec
KT
99852010-01-21 Kai Tietz <kai.tietz@onevision.com>
9986
9987 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9988 WIN32 targets.
9989
b966cb8a
TT
99902010-01-20 Tom Tromey <tromey@redhat.com>
9991
9992 PR backtrace/10770:
9993 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9994 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9995 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9996 dwarf_stack_values, not CORE_ADDRs.
9997 (execute_stack_op): Change DW_OP_div and comparison operators to
9998 use signed operands.
9999
3f81c18a
VP
100002010-01-20 Vladimir Prus <vladimir@codesourcery.com>
10001
10002 Per-inferior args and tty and environment.
10003
10004 * infcmd.c (inferior_args): Rename to ...
10005 (inferior_args_scratch): ... this.
10006 (inferior_io_terminal): Rename to ...
10007 (inferior_io_terminal_scratch): ... this.
10008 (inferior_argc, inferior_argv): Remove.
10009 (set_inferior_io_terminal, get_inferior_io_terminal): Store
10010 inside current_inferior().
10011 (set_inferior_tty_command, show_inferior_tty_command): New.
10012 (get_inferior_args, set_inferior_args): Store inside
10013 current_inferior().
10014 (notice_args_set): Likewise and rename to...
10015 (set_args_command): ... this.
10016 (set_inferior_args_vector): Likewise.
10017 (notice_args_read): Rename to...
10018 (show_args_command): ...new.
10019 (tty_command): Remove.
10020 (run_command_1): Don't free old args, as they are freed by
10021 set_inferior_arg now.
10022 (run_no_args_command): Likewise.
10023 (inferior_environ): Remove.
10024 (run_command_1): Use environment of the current inferior.
10025 (environment_info, set_environment_command)
10026 (unset_environment_command, path_info, path_command): Likewise.
10027 (_initialize_infcmd): Adjust for function and variable renames.
10028 Do not init inferior_environ.
10029 * inferior.h (set_inferior_arg): Adjust prototype.
10030 (struct inferior): New fields args, argc, argv, terminal, environment.
10031 (inferior_environ): Remove declaration.
10032 * inferior.c (free_inferior): Free new fields.
10033 (add_inferior_silent): Initialize 'environment' field.
10034 * main.c (captured_main): Set arguments only after the initial
10035 inferior has been created. Set set_inferior_io_terminal,
10036 not tty_command.
10037 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10038 inferior.
10039 (_initialize_mi_cmd_env): Adjust for disappearance of global
10040 inferior_environ.
10041 * solib.c (solib_find): Use environment of the current inferior.
10042
d8b65138
JK
100432010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10044
10045 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10046 HAVE_PYTHON.
10047 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10048
692465f1
JB
100492010-01-20 Joel Brobecker <brobecker@adacore.com>
10050
10051 Get rid of ada-lang.c:function_name_from_pc.
10052 * ada-lang.c: Add "stack.h" #include.
10053 (function_name_from_pc): Delete.
10054 (is_known_support_routine): Replace call to function_name_from_pc
10055 by call to find_frame_funname.
10056 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10057
95519e0e
TT
100582010-01-19 Tom Tromey <tromey@redhat.com>
10059
10060 PR c++/11026:
10061 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10062 objfile obstack.
10063
95c11dc7
TT
100642010-01-19 Tom Tromey <tromey@redhat.com>
10065
10066 * top.c (stop_sig, float_handler, do_nothing): Remove.
10067
a0f49112
JK
100682010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10069
10070 * breakpoint.c (watchpoint_check): Check the call
10071 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10072 Extend the comment.
8d95cc3b 10073 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10074 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10075 watchpoint-cond-gone-stripped.c.
10076
ceeb3d5a
TT
100772010-01-19 Tom Tromey <tromey@redhat.com>
10078
10079 PR c++/8000:
10080 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10081 into parent scope, and enumerator into grandparent scope.
10082
2b71fc8e
JB
100832010-01-19 Joel Brobecker <brobecker@adacore.com>
10084
10085 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10086
03564ed9
JB
100872010-01-19 Joel Brobecker <brobecker@adacore.com>
10088
10089 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10090 i[34567]86-*-solaris2.1[0-9]*.
10091 * configure.tgt: Likewise.
10092
fb2e7cb4
JB
100932010-01-19 Joel Brobecker <brobecker@adacore.com>
10094
10095 * NEWS: Document the source command enhancement allowing it
10096 to load Python scripts. Document the "set/show script-extension"
10097 commands.
10098
1cb5e2a4
JB
100992010-01-19 Joel Brobecker <brobecker@adacore.com>
10100
10101 Add -Wunused-function to compile flags.
10102 * configure.ac: Add -Wunused-function to build_warnings.
10103 * configure: Regenerate.
10104
0ec6cd0c
JB
101052010-01-19 Joel Brobecker <brobecker@adacore.com>
10106
10107 "delete" ada-lex.c:input function, not used.
10108 * ada-lex.l: #define YY_NO_INPUT.
10109
b74845da
JB
101102010-01-19 Joel Brobecker <brobecker@adacore.com>
10111
10112 Delete free_named_symtabs and associated cleanup.
10113 * symfile.h (free_named_symtabs): Delete declaration.
10114 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10115 (cashier_psymtab): Comment function out.
10116 Delete declaration.
10117 (free_named_symtabs): Delete.
10118 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10119 * dbxread.c (end_psymtab): Likewise.
10120 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10121 * exec.c (exec_close_1): Ditto.
10122 * xcoffread.c (xcoff_end_psymtab): Likewise.
10123
65c06092
JB
101242010-01-19 Joel Brobecker <brobecker@adacore.com>
10125
10126 * stack.c (print_block_frame_labels): Comment function out.
10127
d5cd6034
JB
101282010-01-19 Joel Brobecker <brobecker@adacore.com>
10129
10130 Delete unused or undefined functions.
10131 * breakpoint.c (ep_parse_optional_filename): Delete.
10132 * dcache.c (dcache_write_line): Remove declaration.
10133 * infrun.c (build_infrun): Remove declaration.
10134 * tracepoint.c (tracepoint_save_command): Remove declaration.
10135 * linux-nat.c (init_lwp_list): Delete. No longer used.
10136 * event-loop.c (check_async_signal_handlers): Delete declaration.
10137 * infrun.c (init_execution_control_state): Delete.
10138 (proceed): Update comment to avoid mentioning
10139 init_execution_control_state.
10140 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10141 * ada-lang.c (ada_to_static_fixed_value): Delete.
10142 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10143 * cp-namespace.c (cp_copy_usings): Delete.
10144 * xml-syscall.c (xml_number_of_syscalls): Delete.
10145 * progspace.c (find_program_space_by_num): Delete.
10146 * inflow.c (handle_sigio): Delete declaration.
10147 * hppa-tdep.c (hppa_alignof): Delete.
10148 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10149 (mipsnbsd_core_osabi_sniffer): Delete.
10150
4e8f195d
TT
101512010-01-18 Tom Tromey <tromey@redhat.com>
10152
10153 PR c++/9680:
10154 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10155 (CONST_CAST): New tokens.
10156 (exp): Add new productions.
10157 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10158 reinterpret_cast.
10159 (is_cast_operator): New function.
10160 (yylex): Handle cast operators specially.
10161 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10162 UNOP_REINTERPRET_CAST>: New cases.
10163 * expprint.c (print_subexp_standard): Likewise.
10164 (op_name_standard): Likewise.
10165 (dump_subexp_body_standard): Likewise.
10166 * parse.c (operator_length_standard): Likewise.
10167 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10168 UNOP_REINTERPRET_CAST.
10169 * gdbtypes.c (class_types_same_p): New function.
10170 (is_ancestor): Use it.
10171 (is_public_ancestor): New function.
10172 (is_unique_ancestor_worker): Likewise.
10173 (is_unique_ancestor): Likewise.
10174 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10175 (is_unique_ancestor): Declare.
10176 * valops.c (value_reinterpret_cast): New function.
10177 (dynamic_cast_check_1): Likewise.
10178 (dynamic_cast_check_2): Likewise.
10179 (value_dynamic_cast): Likewise.
10180 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10181
d9c57d9f
JB
101822010-01-18 Joel Brobecker <brobecker@adacore.com>
10183
10184 Fix build failure when building without Python support.
10185 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10186 is not defined.
10187
f80d3ff2
JB
101882010-01-18 Joel Brobecker <brobecker@adacore.com>
10189
10190 Use XVS field type instead of doing a parallel lookup.
10191 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10192 if it is a reference type instead of doing a type lookup using
10193 the XVS field name.
10194
5bf03f13
JB
101952010-01-18 Joel Brobecker <brobecker@adacore.com>
10196
10197 Trust PAD types instead of using PAD___XVS.
10198 * ada-lang.c (trust_pad_over_xvs): New static variable.
10199 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10200 parallel XVS type, follow the XVS type instead of the PAD type.
10201 (unwrap_value): Make sure that there is no parallel XVE type
10202 before returning the value as is.
10203 (set_ada_list, show_ada_list): New static variables.
10204 (set_ada_command, show_ada_command): New functions.
10205 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10206 Add new "set/show ada trust-PAD-over-XVS" setting.
10207
973817a3
JB
102082010-01-18 Tom Tromey <tromey@redhat.com>
10209 Thiago Jung Bauermann <bauerman@br.ibm.com>
10210
10211 Allow "source" to load python scripts.
10212 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10213 * python/python.c (source_python_script): New function.
10214 * python/python.h (source_python_script): Add declaration.
10215 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10216 (script_ext_off, script_ext_soft, script_ext_strict)
10217 (script_ext_enums, script_ext_mode): New static constants.
10218 (show_script_ext_mode, find_and_open_script): New functions.
10219 (source_script): Enhance to handle Python scripts.
10220 (init_cli_cmds): Add set/show script-extension commands.
10221
98e03262
SS
102222010-01-16 Stan Shebs <stan@codesourcery.com>
10223
10224 * tracepoint.h (struct trace_status): Use unsigned long long
10225 instead of size_t.
10226 * tracepoint.c (trace_status_command): Fix printf directive.
10227 (trace_save_command): Check fwrite returns, fix printf directive.
10228 (trace_filename): New global.
10229 (tfile_open): Set it, check read returns.
10230 (tfile_close): Free trace_filename.
10231 (tfile_get_traceframe_address): Check read returns.
10232 (tfile_trace_find): Ditto.
10233 (tfile_fetch_registers): Ditto.
10234 (tfile_xfer_partial): Ditto.
10235 (tfile_get_trace_state_variable_value): Ditto.
10236
00bf0b85
SS
102372010-01-15 Stan Shebs <stan@codesourcery.com>
10238
10239 Add trace file support.
10240 * tracepoint.h (enum trace_stop_reason): New enum.
10241 (struct trace_status): New struct.
10242 (parse_trace_status): Declare.
10243 (struct uploaded_tp): Move here from remote.c,
10244 add fields for actions.
10245 (struct uploaded_tsv): New struct.
10246 * tracepoint.c (tfile_ops): New target vector.
10247 (trace_fd): New global.
10248 (tfile_open): New function.
10249 (tfile_close): New function.
10250 (tfile_files_info): New function.
10251 (tfile_get_trace_status): New function.
10252 (tfile_get_traceframe_address): New function.
10253 (tfile_trace_find): New function.
10254 (tfile_fetch_registers): New function.
10255 (tfile_xfer_partial): New function.
10256 (tfile_get_trace_state_variable_value): New function.
10257 (init_tfile_ops): New function.
10258 (_initialize_tracepoint): Call it, add tfile target.
10259 (trace_status): New global.
10260 (current_trace_status): New function.
10261 (trace_running_p): Remove, change all users to get from
10262 current_trace_status()->running.
10263 (get_trace_status): Remove.
10264 (trace_status_command): Call target_get_trace_status directly,
10265 report more detail including tracing stop reasons.
10266 (trace_find_command): Always allow tfind on a file.
10267 (trace_find_pc_command): Ditto.
10268 (trace_find_tracepoint_command): Ditto.
10269 (trace_find_line_command): Ditto.
10270 (trace_find_range_command): Ditto.
10271 (trace_find_outside_command): Ditto.
10272 (trace_frames_offset, cur_offset): Declare as off_t.
10273 (trace_regblock_size): Rename from reg_size, update users.
10274 (parse_trace_status): New function.
10275 (tfile_interp_line): New function.
10276 (disconnect_or_stop_tracing): Ensure current trace
10277 status before asking what to do.
10278 (stop_reason_names): New global.
10279 (trace_save_command): New command.
10280 (get_uploaded_tp): Move here from remote.c.
10281 (find_matching_tracepoint): Ditto.
10282 (merge_uploaded_tracepoints): New function.
10283 (parse_trace_status): Use stop_reason_names.
10284 (_initialize_tracepoint): Define tsave command.
10285 * target.h (target_ops): New fields to_save_trace_data,
10286 to_upload_tracepoints, to_upload_trace_state_variables,
10287 to_get_raw_trace_data, change to_get_trace_status
10288 to take a pointer to a status struct.
10289 (target_save_trace_data): New macro.
10290 (target_upload_tracepoints): New macro.
10291 (target_upload_trace_state_variables): New macro.
10292 (target_get_raw_trace_data): New macro.
10293 * target.c (update_current_target): Add new methods, change
10294 signature of to_get_trace_status.
10295 * remote.c (hex2bin): Make globally visible.
10296 (bin2hex): Ditto.
10297 (remote_download_trace_state_variable): Download name also.
10298 (remote_get_trace_status): Update parameter, use
10299 parse_trace_status.
10300 (remote_save_trace_data): New function.
10301 (remote_upload_tracepoints): New function.
10302 (remote_upload_trace_state_variables): New function.
10303 (remote_get_raw_trace_data): New function.
10304 (remote_start_remote): Use them.
10305 (_initialize_remote_ops): Add operations.
10306 * ax-gdb.c: Include breakpoint.h.
10307 * breakpoint.c (create_tracepoint_from_upload): Use
10308 break_command_really, return tracepoint, warn about unimplemented
10309 parts.
10310 * NEWS: Mention trace file addition.
10311
d904de5b
JK
103122010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10313
10314 Fix compilation warning on gcc-3.4.
10315 * exec.c (print_section_info): Move the `displacement' variable
10316 initialization to its declaration.
10317
64aa9731
JK
103182010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10319
10320 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10321 comparison.
10322
ca1f5def 103232010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10324
10325 "info tasks" broken by typedefs in ATCB type definitions.
10326 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10327 ada_check_typedef before retrieving the length of the type for
10328 regular fields.
10329
12ab9e09
JB
103302010-01-15 Joel Brobecker <brobecker@adacore.com>
10331
10332 Do not use name-based lookup for unconstrained packed arrays.
10333 * ada-lang.c (find_parallel_type_by_descriptive_type):
10334 Limit the fallback to name-based lookups to the case where
10335 the type is a constrained packed array.
10336
c389c3dc
JB
103372010-01-15 Joel Brobecker <brobecker@adacore.com>
10338
10339 Enhance gdb-gdb.py to handle main_type.type_specific.
10340 * gdb-gdb.py: Print the type-specific part of struct main_type.
10341
7991dee7
JK
103422010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10343
10344 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10345 * configure: Regenerate.
10346 * config.in: Regenerate.
10347 * utils.c: Include sys/resource.h.
10348 (dump_core, can_dump_core): New.
10349 (internal_vproblem): Update the comment. Check can_dump_core while
10350 setting dump_core_p. Replace two abort calls by dump_core calls.
10351
93c26624
JK
103522010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10353 Eli Zaretskii <eliz@gnu.org>
10354
10355 * NEWS: Document the PIE support.
10356
55235ad7
JK
103572010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10358
10359 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10360 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10361
41752192
JK
103622010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10363
10364 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10365 Replace exec_entry_point call by bfd_get_start_address.
10366
9f2982ff
JK
103672010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10368
10369 Support Valgrind attachments broken by the PIE support.
10370 * auxv.c: Include gdbcore.h.
10371 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10372 parameters ops, object and annex. Remove their assertions.
10373 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10374 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10375 (memory_xfer_auxv): ... here.
10376 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10377 memory_xfer_auxv.
10378 * procfs.c (procfs_xfer_partial): Likewise.
10379 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10380 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10381 (svr4_solib_create_inferior_hook): Conditionalize the
10382 svr4_relocate_main_executable call.
10383
61f0d762
JK
103842010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10385
10386 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10387 target_section. Find SECT in current_target_sections, gdb_assert it.
10388 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10389 New variable abfd.
10390 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10391 of separate debug info file.
10392
51bee8e9
JK
103932010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10394
10395 Support PIEs with no symfile_objfile.
10396 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10397 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10398
b8040f19
JK
103992010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10400
10401 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10402 code part to ...
10403 (svr4_static_exec_displacement): ... a new function.
10404 (svr4_exec_displacement): New function.
10405 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10406 new_offsets using alloca now. Remove variable old_chain and changed.
10407 Call objfile_relocate unconditionally now.
10408
eb90ce83
DE
104092010-01-14 Doug Evans <dje@google.com>
10410
10411 * gdbtypes.c (arch_flags_type): Fix comment.
10412 * gdbtypes.h (arch_composite_type): Fix comment.
10413
bdfed3bc
TG
104142009-01-14 Tristan Gingold <gingold@adacore.com>
10415
10416 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10417 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10418 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10419 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10420 macho_add_oso_symfile.
10421 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10422
1596ad23
JB
104232010-01-14 Joel Brobecker <brobecker@adacore.com>
10424
10425 Tru64: Dead threads are never deleted.
10426 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10427 (dec_thread_count_gdb_threads): Fix counter increment.
10428 (dec_thread_add_gdb_thread): Fix *listp increment.
10429 (resync_thread_list): Fix bug in deletion of dead threads that
10430 caused all threads to be deleted, instead of just the dead ones.
10431
be759fcf
PM
104322010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10433
10434 PR python/10705
10435
10436 * python/python-internal.h: Add lazy_string_object_type
10437 definition.
10438 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10439 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10440 * python/py-value.c (valpy_lazy_string): New function.
10441 (convert_value_from_python): Add lazy string conversion.
10442 * python/py-prettyprint.c (pretty_print_one_value): Check if
10443 return is also a lazy string.
10444 (print_string_repr): Add lazy string printing branch.
10445 (print_children): Likewise.
10446 * python/py-lazy-string.c: New file. Implement lazy strings.
10447 * python/python.c (_initialize_python): Call
10448 gdbpy_initialize_lazy_string.
10449 * varobj.c (value_get_print_value): Add lazy string printing
10450 branch. Account for encoding.
10451 * c-lang.c (c_printstr): Account for new encoding argument. If
10452 encoding is NULL, find encoding suited for type, otherwise use
10453 user encoding.
10454 * language.h (language_defn): Add encoding argument.
10455 (LA_PRINT_STRING): Likewise.
10456 * language.c (unk_lang_printstr): Update to reflect new encoding
10457 argument to language_defn.
10458 * ada-lang.h (ada_printstr): Likewise.
10459 * c-lang.h (c_printstr): Likewise.
10460 * p-lang.h (pascal_printstr);
10461 * f-lang.c (f_printstr): Likewise.
10462 * m2-lang.c (m2_printstr): Likewise.
10463 * objc-lang.c (objc_printstr): Likewise.
10464 * p-lang.c (pascal_printstr): Likewise.
10465 * scm-lang.c (scm_printstr): Likewise.
10466 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10467 encoding argument.
10468 * ada-valprint.c (ada_printstr): Likewise.
10469 * f-valprint.c (f_val_print): Likewise
10470 * m2-valprint.c (m2_val_print): Likewise.
10471 * p-valprint.c (pascal_val_print): Likewise.
10472 * expprint.c (print_subexp_standard): Likewise.
10473 * valprint.c (val_print_string): Likewise.
10474 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10475 (SUBDIR_PYTHON_SRCS): Likewise.
10476 (py-lazy-string.o): New rule.
10477
1fe72117 104782010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
10479
10480 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10481 uninitialized" warning from gcc on local `tree'.
10482
dc146f7c
VP
104832010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10484
10485 Implement core awareness.
10486
10487 * bcache.c (compare_ints): Remove
10488 (print_percentage): Use compare_positive_ints.
10489 * defs.h (compare_positive_ints): Declare.
10490 * linux-nat.h (struct lin_lwp): New field core.
10491 (linux_nat_core_of_thread_1): Declare.
10492 * linux-nat.c (add_lwp): Init the 'core' field.
10493 (linux_nat_wait_1): Record the core.
10494 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10495 (linux_nat_add_target): Register the above.
10496 * linux-thread-db.c (update_thread_core): New.
10497 (thread_db_find_new_threads): Update core information for
10498 every thread.
10499 * remote.c (struct private_thread_info): New.
10500 (free_private_thread_info, demand_private_info): New.
10501 (PACKET_qXfer_threads, use_osdata_threads): New.
10502 (struct thread_item, threads_parsing_context
10503 (start_thread, end_thread, thread_attributes)
10504 (thread_children, threads_children, threads_elements): New.
10505 (remote_threads_info): Try qXfer:threads before anything
10506 else.
10507 (remote_protocol_packets): Register qXfer:threads.
10508 (remote_open_1): Init use_osdata_threads.
10509 (struct stop_reply): New field 'core'.
10510 (remote_parse_stop_reply): Parse core number.
10511 (process_stop_reply): Record core number.
10512 (remote_xfer_partial): Handle qXfer:threads.
10513 (remote_core_of_thread): New.
10514 (init_remote_ops): Register remote_core_of_thread.
10515 (_initialize_remote): Register qXfer:read.
10516 * target.c (target_core_of_thread): New
10517 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10518 (struct target_ops): New field to_core_of_threads.
10519 (target_core_of_thread): Declare.
10520 * gdbthread.h (struct thread_info): New field private_dtor.
10521 * thread.c (print_thread_info): Report the core.
10522 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10523 * utils.c (compare_positive_ints): New.
10524 * features/threads.dtd: New.
10525 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10526 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10527 (do_nothing, free_vector_of_osdata_items)
10528 (splay_tree_int_comparator, free_splay_tree): New.
10529 (print_one_inferior_data): Implemented printing of selected
10530 inferiors. Collect and print cores.
10531 (output_cores): New.
10532 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10533 thread groups together with --available.
10534
d30c5336
JK
105352010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10536
10537 * configure: Regenerate (for _STRUCTURED_PROC).
10538
02893727
JB
105392010-01-12 Joel Brobecker <brobecker@adacore.com>
10540
10541 Delete dead function.
10542 * ada-lang.c (extract_string): Delete. No longer used.
10543
46ed2d6f
JB
105442010-01-12 Joel Brobecker <brobecker@adacore.com>
10545
10546 Fix -Wunused warning in dec-thread.c.
10547 * dec-thread.c (dec_thread_count_gdb_threads)
10548 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10549
606b8d1a
JB
105502010-01-12 Joel Brobecker <brobecker@adacore.com>
10551
10552 * ada-valprint.c (ada_print_floating): Remove trailing space.
10553
b4ba55a1
JB
105542010-01-12 Joel Brobecker <brobecker@adacore.com>
10555
10556 Add support for DW_AT_GNAT_descriptive_type.
10557 * gdbtypes.h (enum type_specific_kind): New enum.
10558 (struct main_type) [type_specific_field]: New component.
10559 [type_specific]: Add new component "gnat_stuff".
10560 (struct gnat_aux_type): New type.
10561 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10562 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10563 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10564 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10565 (TYPE_SPECIFIC_FIELD): New macros.
10566 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10567 type does not hold any cplus-specific data.
10568 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10569 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10570 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10571 cplus-specific data.
10572 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10573 Set new component TYPE_SPECIFIC_FIELD (type).
10574 (gnat_aux_default): New constant.
10575 (allocate_gnat_aux_type): New function.
10576 (init_type): Add initialization the type-specific stuff for
10577 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10578 (print_gnat_stuff): New function.
10579 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10580 specific data. Adjust code that prints the contents of the
10581 type-specific union using the TYPE_SPECIFIC_FIELD value.
10582 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10583 the type cplus stuff for Ada types.
10584 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10585 Error out if these routines are called with an Ada type.
10586 (read_structure_type, read_array_type, read_subrange_type):
10587 Add call to set_descriptive_type.
10588 (set_die_type): Initialize the gnat-specific data if necessary.
10589 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10590 New functions.
10591 * ada-lang.c (decode_constrained_packed_array_type): Use
10592 decode_constrained_packed_array_type instead of doing a standard
10593 lookup to locate a parallel type.
10594 (find_parallel_type_by_descriptive_type): New function.
10595 (ada_find_parallel_type_with_name): New function.
10596 (ada_find_parallel_type): Reimplement using
10597 ada_find_parallel_type_with_name.
10598 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10599 to check if type has a cplus stuff.
10600 * linespec.c (total_number_of_methods): Likewise.
10601 * mdebugread.c (new_type): Likewise.
10602
b0f02ee9
JK
106032010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10604
10605 * NEWS: Document the 0b binary number prefix parsing.
10606
b260e109
JK
106072010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10608
10609 * objfiles.c (objfile_relocate1): Change the return type to int.
10610 Describe the new return value. Return non-zero if data changed.
10611 (objfile_relocate): New variable changed. Set it. Call
10612 breakpoint_re_set depending on CHANGED.
10613
b5cfddf5
JK
106142010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10615
10616 Implement binary numbers parsing.
10617 * c-exp.y (parse_number): New case 'b' and 'B'.
10618
e0ae4240
JK
106192010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10620 Tristan Gingold <gingold@adacore.com>
10621
10622 * solib.c (info_sharedlibrary_command): Replace
10623 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10624 objfile_has_symbols.
10625
6e0e5977
JB
106262010-01-10 Joel Brobecker <brobecker@adacore.com>
10627
10628 * NEWS: Document the improvements made to the mips-irix port.
10629
7348c5e1
JB
106302010-01-09 Joel Brobecker <brobecker@adacore.com>
10631
10632 Fix the documentation of valprint.c:value_print.
10633 * valprint.c (value_print): Update the function description to
10634 mention that the syntax of the output follows the current_language,
10635 not necessarily C.
10636
567995e1
JK
106372010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10638
10639 Fix displacement of separate debug info files.
10640 * objfiles.c (objfile_relocate): Rename to ...
10641 (objfile_relocate1): ... here and make it static. Extend the comment.
10642 (objfile_relocate): New function.
10643 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10644 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10645 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10646 allocated using alloca.
10647 * symfile.c (copy_section_addr_info): Remove.
10648 (build_section_addr_info_from_objfile): Make it global. New variables
10649 addr_bit and mask, use them.
10650 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10651 (copy_section_addr_info): Remove.
10652
6d8eadbd
JB
106532010-01-09 Joel Brobecker <brobecker@adacore.com>
10654
10655 Signal unwinder for mips-irix N32.
10656 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10657 tramp-frame.h.
10658 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10659 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
10660 (SIGCONTEXT_LO_OFF): New macros.
10661 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
10662 (mips_irix_n32_tramp_frame): New static constant.
10663 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10664
27087a3d
JB
106652010-01-09 Joel Brobecker <brobecker@adacore.com>
10666
10667 Breakpoint in shared library does not work on mips-irix.
10668 * procfs.c: #include "observer.h".
10669 (procfs_inferior_created): New function, moving here the code
10670 which unsets the syssgi syscall-exit notifications.
10671 (procfs_create_inferior): Remove the code which unsets the syssgi
10672 syscall-exit notifications. It is too early to do this here.
10673 (_initialize_procfs): Attach the procfs_inferior_created observer.
10674
f08877ba
JB
106752010-01-09 Joel Brobecker <brobecker@adacore.com>
10676
10677 Wrong return convention for arrays (mips-irix).
10678 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10679 128 bits or smaller are returned the same way as structs
10680 and unions of the the same size.
10681
e4b97d48
JB
106822010-01-09 Joel Brobecker <brobecker@adacore.com>
10683
10684 Cannot set the PC on mips-irix.
10685 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10686 register number, no the cooked one.
10687
11377e68
JB
106882010-01-09 Joel Brobecker <brobecker@adacore.com>
10689
10690 Error while loading core file on mips-irix.
10691 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10692 if debugging from a core file.
10693
b2391021
JB
106942010-01-09 Joel Brobecker <brobecker@adacore.com>
10695
10696 GDB hangs when attaching to process on mips-irix.
10697 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10698 attaching to a process.
10699
f2ec0ecf
JB
107002010-01-09 Joel Brobecker <brobecker@adacore.com>
10701
10702 Use the correct breakpoint instruction on mips-irix.
10703 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10704 containing the correct breakpoint instruction to use on mips-irix.
10705 Use it when the osabi is GDB_OSABI_IRIX.
10706
3c95f01c
JB
107072010-01-09 Joel Brobecker <brobecker@adacore.com>
10708
10709 -Wunused warning in procfs.c (mips-irix only).
10710 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10711 throughout instead of using praddset and prdelset respectively.
10712
4b7703ad
JB
107132010-01-09 Joel Brobecker <brobecker@adacore.com>
10714
10715 GDB crash while stepping into function.
10716 * infrun.c (handle_inferior_event): Refetch the current frame
10717 after handling what.main_action, in case that pointer became
10718 dangling.
10719
12c89474
JB
107202010-01-09 Joel Brobecker <brobecker@adacore.com>
10721
10722 Fix build failure of solaris-hosted cross debuggers.
10723 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10724
1a3fd262 107252010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
10726
10727 Fix build failure on sparc-solaris.
10728 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10729
75242ef4
JK
107302010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10731
10732 Move some symfile code into subroutines.
10733 * symfile.h (relative_addr_info_to_section_offsets)
10734 (addr_info_make_relative): New prototypes.
10735 * symfile.c (default_symfile_offsets): Move a part to ...
10736 (relative_addr_info_to_section_offsets): ... this new function.
10737 (default_symfile_offsets): Call it.
10738 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10739 this part to ...
10740 (addr_info_make_relative): ... this new function.
10741
268a4a75
JK
107422010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10743
10744 Add from_tty to solib_create_inferior_hook.
10745 * infcmd.c (post_create_inferior): Move solib_add after
10746 solib_create_inferior_hook. Pass from_tty to
10747 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10748 0 from_tty and comment why.
10749 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10750 * linux-nat.c (linux_child_follow_fork): Likewise.
10751 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10752 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10753 from_tty.
10754 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10755 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10756 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10757 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10758 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10759 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10760 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10761 Pass it to svr4_so_ops.solib_create_inferior_hook.
10762 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10763 from_tty.
10764 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10765 solib_add.
10766 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10767 enable_break.
10768 * solib-target.c (solib_target_solib_create_inferior_hook): New
10769 parameter from_tty.
10770 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10771 it to ops->solib_create_inferior_hook.
10772 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10773 Move solib_add after solib_create_inferior_hook, call it now with
10774 from_tty as 0. New comment there.
10775 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10776 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10777 Likewise.
10778
cf00dfa7
VP
107792010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10780
10781 Fix multiexec race.
10782 * infrun.c (handle_inferior_event): Use get_thread_regcache
10783 with events ptid, not get_current_regcache.
10784
f91e5ac3
JB
107852009-01-08 Joel Brobecker <brobecker@adacore.com>
10786
10787 GDB crash with empty executable name (MinGW).
10788 * source.c (openp): Add assert that parameter string is not NULL.
10789 if parameter string is an empty string, then return with a failure
10790 immediately.
10791
92b9ce5b
JB
107922009-01-08 Joel Brobecker <brobecker@adacore.com>
10793
10794 Get rid of support for VAX Floats.
10795 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10796 (ada_vax_float_print_function): Delete.
10797 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10798 (ada_vax_float_print_function): Delete.
10799 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10800 (ada_print_type): Remove support for VAX floats.
10801 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10802
268a4a75 108032010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
10804
10805 * stabsread.c (read_args): Handle zero arguments.
10806
f0f20949
JB
108072009-01-08 Joel Brobecker <brobecker@adacore.com>
10808
10809 Cannot find in-tree libiconv.a after reconfigure.
10810 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10811 that we can use, then cache the path to this archive.
10812 * configure: Regenerate.
10813
6b6218c5
SS
108142010-01-07 Stan Shebs <stan@codesourcery.com>
10815
35b1e5cc
SS
10816 Make tracepoint operations go through target vector.
10817 * target.h (enum trace_find_type): New enum.
10818 (struct target_ops): New fields to_trace_init,
10819 to_download_tracepoint, to_download_trace_state_variable,
10820 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10821 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10822 to_set_disconnected_tracing.
10823 (target_trace_init): New macro.
10824 (target_download_tracepoint): New macro.
10825 (target_download_trace_state_variable): New macro.
10826 (target_trace_start): New macro.
10827 (target_trace_set_readonly_regions): New macro.
10828 (target_get_trace_status): New macro.
10829 (target_trace_stop): New macro.
10830 (target_trace_find): New macro.
10831 (target_get_trace_state_variable_value): New macro.
10832 (target_set_disconnected_tracing): New macro.
10833 * target.c (update_current_target): Inherit and set defaults for
10834 tracepoint operations.
10835 * tracepoint.c (default_collect): Make globally visible.
10836 (target_is_remote): Remove, along with all calls.
10837 (tvariables_info): Call target_get_trace_state_variable_value.
10838 (remote_set_transparent_ranges): Remove.
10839 (trace_start_command): Call target_trace_init,
10840 target_download_tracepoint, etc.
10841 (download_tracepoint): Remove.
10842 (trace_stop_command): Simplify.
10843 (stop_tracing): Call target_trace_stop.
10844 (get_trace_status): Call target_get_trace_status.
10845 (trace_status_command): Add case for targets that cannot trace.
10846 (finish_tfind_command): Change to take numerical arguments, call
10847 target_trace_find.
10848 (trace_find_command): Update call to finish_tfind_command.
10849 (trace_find_pc_command): Ditto.
10850 (trace_find_tracepoint_command): Ditto.
10851 (trace_find_line_command): Ditto.
10852 (trace_find_range_command): Ditto.
10853 (trace_find_outside_command): Ditto.
10854 (set_disconnected_tracing_value): Call
10855 target_set_disconnected_tracing.
10856 * remote.c: Add protocol encoding bits from tracepoint.c.
10857 (trace_error): Move from tracepoint.c.
10858 (remote_get_noisy_reply): Ditto.
10859 (free_actions_list_cleanup_wrapper): Ditto.
10860 (free_actions_list): Ditto.
10861 (remote_trace_init): New function.
10862 (remote_download_tracepoint): New function.
10863 (remote_download_trace_state_variable): New function.
10864 (remote_trace_set_readonly_regions): New function.
10865 (remote_trace_start): New function.
10866 (remote_get_trace_status): New function.
10867 (remote_trace_stop): New function.
10868 (remote_trace_find): New function.
10869 (remote_download_trace_state_variable): New function.
10870 (remote_set_disconnected_tracing): New function.
10871 (init_remote_ops): Add tracepoint operations.
10872
6b6218c5
SS
10873 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10874
089b4803
TG
108752010-01-07 Tristan Gingold <gingold@adacore.com>
10876
10877 * symfile.c (build_section_addr_info_from_objfile): New function.
10878 (symbol_file_add_separate): Don't use offsets from objfile but
10879 built an addr info.
10880
d5551862
SS
108812010-01-06 Stan Shebs <stan@codesourcery.com>
10882
10883 Support disconnected tracing.
10884 * infcmd.c (detach_command): Ask whether to stop tracing.
10885 * cli/cli-cmds.c (quit_command): Ditto.
10886 * breakpoint.h (struct breakpoint): New field number_on_target.
10887 * breakpoint.c (create_tracepoint_from_upload): New function.
10888 (get_tracepoint_by_number_on_target): New function.
10889 * remote.c (struct remote): New field disconnected_tracing.
10890 (remote_disconnected_tracing_feature): New function.
10891 (remote_protocol_features): Add DisconnectedTracing.
10892 (struct uploaded_tp): New struct.
10893 (uploaded_tps): New global.
10894 (get_uploaded_tp): New function.
10895 (find_matching_tracepoint): New function.
10896 (remote_get_tracing_state): New function.
10897 (remote_start_remote): Call it.
10898 * tracepoint.c (disconnected_tracing): New global.
10899 (trace_start_command): Initialize number_on_target.
10900 (stop_tracing): New function, split out from...
10901 (trace_stop_command): Call stop_tracing.
10902 (get_trace_status): New function, split out from...
10903 (trace_status_command): Call get_trace_status, add info on
10904 disconnection behavior.
10905 (disconnect_or_stop_tracing): New function.
10906 (finish_tfind_command): Translate from number on target.
10907 (trace_find_tracepoint_command): Translate to number on target.
10908 (send_disconnected_tracing_value): New function.
10909 (set_disconnected_tracing): New function.
10910 (_initialize_tracepoint): Add disconnected-tracing variable.
10911 * NEWS: Mention disconnected tracing.
10912
15d123c9
TG
109132010-01-06 Tristan Gingold <gingold@adacore.com>
10914
10915 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10916 parameter to main_objfile. Iterate on all separate debug objfiles.
10917 * symfile.h (symbol_file_add_separate)
10918 (find_separate_debug_file_by_debuglink): Remove parameter names.
10919 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10920 (reread_symbols): Use free_objfile_separate_debug.
10921 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10922 Adjust comment.
10923 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10924 (free_objfile_separate_debug): New prototypes.
10925 * objfiles.c (objfile_separate_debug_iterate): New function.
10926 (add_separate_debug_objfile, free_objfile_separate_debug): New
10927 functions.
10928 (free_objfile): Use free_objfile_separate_debug. Adjust for
10929 multiple separate debug objfile.
10930 (objfile_has_symbols): Adjust comment. Iterate on all separate
10931 debug objfiles.
10932 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10933 debug objfile.
10934 (lookup_minimal_symbol_text): Ditto.
10935 (lookup_minimal_symbol_by_pc_name): Ditto.
10936 (lookup_minimal_symbol_solib_trampoline): Ditto.
10937 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10938 debug objfiles.
10939
7a697b8d
SS
109402010-01-05 Stan Shebs <stan@codesourcery.com>
10941
10942 Add fast tracepoints.
10943 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10944 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10945 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10946 * breakpoint.c (tracepoint_type): New function.
10947 (ALL_TRACEPOINTS): Use it.
10948 (should_be_inserted): Ditto.
10949 (bpstat_check_location): Ditto.
10950 (print_one_breakpoint_location): Ditto.
10951 (user_settable_breakpoint): Ditto.
10952 (set_breakpoint_location_function): Ditto.
10953 (disable_breakpoints_in_shlibs): Ditto.
10954 (delete_trace_command): Ditto.
10955 (print_it_typical): Add bp_fast_tracepoint case.
10956 (bpstat_what): Ditto.
10957 (print_one_breakpoint_location): Ditto.
10958 (allocate_bp_location): Ditto.
10959 (mention): Ditto.
10960 (breakpoint_re_set_one): Ditto.
10961 (disable_command): Ditto.
10962 (enable_command): Ditto.
10963 (check_fast_tracepoint_sals): New function.
10964 (break_command_really): Call it.
10965 (ftrace_command): New function.
10966 (_initialize_breakpoint): Add ftrace command.
10967 * gdbarch.sh (fast_tracepoint_valid_at): New.
10968 * gdbarch.h, gdbarch.c: Regenerate.
10969 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10970 (i386_gdbarch_init): Use it.
10971 * remote.c (struct remote_state): New field fast_tracepoints.
10972 (PACKET_FastTracepoints): New packet config type.
10973 (remote_fast_tracepoint_feature): New function.
10974 (remote_protocol_features): Add FastTracepoints.
10975 (remote_supports_fast_tracepoints): New function.
10976 (_initialize_remote): Add FastTracepoints.
10977 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10978 * NEWS: Mention fast tracepoints.
10979
737a160e
JB
109802010-01-06 Joel Brobecker <brobecker@adacore.com>
10981
10982 * gdb-gdb.py: New file.
10983
ce6cca6d
MS
109842010-01-05 Michael Snyder <msnyder@vmware.com>
10985
10986 * infrun.c (handle_inferior_event): Fix typo in comment.
10987
0d15807d
JK
109882010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10989
10990 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10991
7803799a
UW
109922010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10993
c8d5aac9 10994 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
10995 and s390x-linux64.
10996 (s390-linux32-expedite): Define.
10997 (s390-linux64-expedite): Define.
10998 (s390x-linux64-expedite): Define.
10999 * features/s390-acr.xml: New file.
11000 * features/s390-fpr.xml: New file.
11001 * features/s390-core32.xml: New file.
11002 * features/s390-core64.xml: New file.
11003 * features/s390x-core64.xml: New file.
11004 * features/s390-linux32.xml: New file.
11005 * features/s390-linux64.xml: New file.
11006 * features/s390x-linux64.xml: New file.
11007 * features/s390-linux32.c: New generated file.
11008 * features/s390-linux64.c: New generated file.
11009 * features/s390x-linux64.c: New generated file.
11010
11011 * regformats/s390-linux32.dat: New generated file.
11012 * regformats/s390-linux64.dat: New generated file.
11013 * regformats/s390x-linux64.dat: New generated file.
11014 * regformats/reg-s390.dat: Remove.
11015 * regformats/reg-s390x.dat: Remove.
11016
11017 * s390-nat.c: Include "auxv.h" and <elf.h>.
11018 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11019 (s390_target_wordsize): New function.
11020 (s390_auxv_parse): Likewise.
11021 (s390_get_hwcap): Likewise.
11022 (s390_read_description): Likewise.
11023 (_initialize_s390_nat): Install s390_auxv_parse and
11024 s390_read_description.
11025
11026 * s390-tdep.c: Include "features/s390-linux32.c",
11027 "features/s390-linux64.c", and "features/s390x-linux64.c".
11028 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11029 (s390_register_call_saved): New function.
11030 (s390_register_name): Remove.
11031 (s390_register_type): Remove.
11032 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11033 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11034 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11035 (s390_pseudo_register_name): New function.
11036 (s390_pseudo_register_type): New function.
11037 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11038 Handle full GPR pesudos and varying pseudo register numbers.
11039 (s390_pseudo_register_write): Likewise
11040 (s390x_pseudo_register_read): Remove.
11041 (s390x_pseudo_register_write): Likewise.
11042 (s390_register_group): Remove.
11043 (s390_pseudo_register_group): New function.
11044 (s390_regmap_gregset): Add GPR upper halves.
11045 (s390x_regmap_gregset): Likewise.
11046 (s390_regmap_fpregset): Likewise.
11047 (s390_regmap_upper): New global variable.
11048 (s390_upper_regset): New global variable.
11049 (s390_upper_regset_sections): New global variable.
11050 (s390_regset_from_core_section): Handle GPR upper halves.
11051 (s390_core_read_description): New function.
11052 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11053 register information. Handle varying pseudo register numbers.
11054 (s390_backchain_frame_unwind_cache): Likewise.
11055 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11056 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11057 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11058 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11059 Handle varying pseudo register numbers.
11060 (s390_unwind_pc): Handle varying pseudo register numbers.
11061 (s390_dwarf2_prev_register): New function.
11062 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11063 register information. Handle varying pseudo register numbers.
11064 Install s390_dwarf2_prev_register to unwind full GPRs.
11065 (s390_gdbarch_init): Handle target descriptions. Assign varying
11066 pseudo register numbers. Install s390_adjust_frame_regnum.
11067 (_initialize_s390_tdep): Initialize target descriptions.
11068
11069 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11070 (S390_NUM_REGS): Redefine to include upper half registers.
11071 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11072 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11073 (tdesc_s390_linux32): Add declaration.
11074 (tdesc_s390_linux64): Likewise.
11075 (tdesc_s390x_linux64): Likewise.
11076
1b1818e4
UW
110772010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11078
11079 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11080 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11081 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11082 (ppc_linux_vmx_regset_sections): Likewise.
11083 (ppc_linux_fp_regset_sections): Likewise.
11084
11085 * corelow.c (get_core_register_section): Constify arguments.
11086 (get_core_registers): Use gdbarch_core_regset_sections instead
11087 of hard-coded platform-specific register section names.
11088
dcbf108f
UW
110892010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11090
11091 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11092 a register, assume the least-significant part is used.
dcbf108f
UW
11093 (write_pieced_value): Likewise.
11094
704e9165
UW
110952010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11096
11097 * printcmd.c: Include "arch-utils.h".
11098 (do_one_display): Re-parse expression if current architecture changed.
11099
c54eabfa
JK
111002010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11101 Joel Brobecker <brobecker@adacore.com>
11102
11103 * gdbtypes.c (check_typedef): New comment on type length.
11104 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11105 comment on type length.
11106 (value_primitive_field): Keep the original TYPE value, new comment.
11107
50cb2941
JK
111082010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11109
11110 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11111 p_start. Change != comparisons to > and < comparisons.
11112
be66db07
JK
111132010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11114
11115 * cli/cli-script.c (process_next_line): Check P2 overrun.
11116
abd775ce
JB
111172009-01-01 Joel Brobecker <brobecker@adacore.com>
11118
11119 Update the copyright hearder to add year 2010 for most GDB files.
11120
6479260d
JB
111212009-01-01 Joel Brobecker <brobecker@adacore.com>
11122
11123 Fix build failure in inf-ptrace.c.
11124 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11125
4a70f654
JB
111262010-01-01 Joel Brobecker <brobecker@adacore.com>
11127
11128 * top.c (print_gdb_version): Update copyright year.
11129
595939de 111302010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11131
11132 Fix break *FUN'address thread NUM.
11133 * ada-lex.l (task): Expand rule to also match the thread keyword.
11134
70575d34
JB
111352010-01-01 Joel Brobecker <brobecker@adacore.com>
11136
11137 Fix break *FUN'address task NUM.
11138 * ada-lex.l (task): New rule.
11139 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11140 been built before using it.
11141
e1e4d4a4 11142For older changes see ChangeLog-2009.
c906108c
SS
11143\f
11144Local Variables:
11145mode: change-log
11146left-margin: 8
11147fill-column: 74
11148version-control: never
57da7796 11149coding: utf-8
c906108c 11150End: