ravenscar/sparc: cannot fetch registers from non-active thread
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
594e8718
JK
12010-11-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * dwarf2read.c (dwarf2_read_index): Ignore higher .gdb_index versions.
4
7ba86c9e
TT
52010-11-22 Tom Tromey <tromey@redhat.com>
6
7 * Makefile.in (.PRECIOUS): Reference ada-lex.c.
8
1bfda48e
KS
92010-11-19 Keith Seitz <keiths@redhat.com>
10
11 * data-directory/Makefile.in (SYSCALLS_INSTALL_DIR):
12 Remove extraneous '/' after $(DESTDIR).
13 (PYTHON_INSTALL_DIR): Likewise.
14
3f1eff0a
JK
152010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
16
17 Fix stale memory references.
18 * elfread.c (elf_symfile_read): Replace xmalloc by bfd_alloc, drop
19 xfree, new comment.
20
954d8cae
TT
212010-11-19 Jan Kratochvil <jan.kratochvil@redhat.com>
22 Tom Tromey <tromey@redhat.com>
23
24 * Makefile.in (.y.c): Directly create $@ from YLWRAP.
25 (.PHONY): Remove for .y outputs.
26
d53d4ac5
TT
272010-11-19 Will Drewry <wad@google.com>
28 Tavis Ormandy <taviso@google.com>
29 Jan Kratochvil <jan.kratochvil@redhat.com>
30
31 * dwarf2read.c (decode_locdesc): Enforce location description stack
32 boundaries.
33
77bc0675
PM
342010-11-18 Pierre Muller <muller@ics.u-strasbg.fr>
35
36 * arm-tdep.c (arm_in_function_epilogue_p): Fix code when "MOV SP"
37 instruction is found.
38
ba19bb4d
TT
392010-11-17 Tom Tromey <tromey@redhat.com>
40
41 * value.c (value_entirely_optimized_out): Check the
42 'check_any_valid' field.
43
19f220c3
JK
442010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
45
46 * ada-lang.c (modify_general_field): Remove.
47 (make_array_descriptor): Replace all modify_general_field calls by
48 modify_field.
49 * value.c (modify_field): Update comment. New variable bytesize.
50 Normalize BITPOS. Initialize BYTESIZE, use it.
51
87df528e
JK
522010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
53
54 * dwarf2read.c (dw2_forget_cached_source_info): Clear the FULL_NAMES
55 elements after xfree.
56
97924a97
TT
572010-11-16 Tom Tromey <tromey@redhat.com>
58
59 * gdb-add-index.sh: Really remove.
60
9816fde3
JK
612010-11-16 Jan Kratochvil <jan.kratochvil@redhat.com>
62
63 Code cleanup.
64 * dwarf2read.c (alloc_one_comp_unit): Rename prototype to ...
65 (init_one_comp_unit): ... this one.
66 (prepare_one_comp_unit): New prototype.
67 (dw2_require_line_header, process_psymtab_comp_unit): Use
68 init_one_comp_unit.
69 (process_psymtab_comp_unit): Use prepare_one_comp_unit.
70 (load_partial_comp_unit): Remove variable attr. Use
71 init_one_comp_unit with xmalloc. Use prepare_one_comp_unit.
72 (load_full_comp_unit): Use init_one_comp_unit with xmalloc. Use
73 prepare_one_comp_unit.
74 (read_signatured_type): Remove variable attr. Use init_one_comp_unit.
75 Use prepare_one_comp_unit.
76 (alloc_one_comp_unit): Rename to ...
77 (init_one_comp_unit): ... here and remove there calloc, new parameter
78 cu.
79 (prepare_one_comp_unit): New function.
80
73c964d6
PM
812010-11-14 Pierre Muller <muller@ics.u-strasbg.fr>
82
83 * arm-tdep.c (arm_in_function_epilogue_p): Fix code to avoid
84 possible used of uninitialized variable.
85
74af9197
NF
862010-11-12 Nathan Froyd <froydnj@codesourcery.com>
87
88 * rs6000-tdep.c (bfd_uses_spe_extensions): New function.
89 (rs6000_gdbarch_init): Call it.
90
e52d5016
NF
912010-11-12 Nathan Froyd <froydnj@codesourcery.com>
92
93 * rs6000-tdep.c (gdb_print_insn_powerpc): Disassemble e500
94 instructions if debugging an E500 binary.
95
621c8364
TT
962010-11-12 Tom Tromey <tromey@redhat.com>
97
98 * varobj.c (value_get_print_value): Rearrange. Pass stream to
99 apply_varobj_pretty_printer.
100 * c-lang.c: Include exceptions.h.
101 (c_get_string): Throw MEMORY_ERROR when appropriate.
102 * python/py-prettyprint.c (enum string_repr_result): New.
103 (print_stack_unless_memory_error): New function.
104 (print_string_repr): Change return type. Use
105 print_stack_unless_memory_error.
106 (print_children): Use print_stack_unless_memory_error.
107 (apply_val_pretty_printer): Update. Don't print children if
108 string representation threw an exception.
109 (apply_varobj_pretty_printer): Add 'stream' argument. Use
110 print_stack_unless_memory_error.
111 * python/python.c (gdbpy_gdb_error, gdbpy_gdb_memory_error): New
112 globals.
113 (_initialize_python): Initialize them.
114 * python/python-internal.h (GDB_PY_HANDLE_EXCEPTION): Use
115 gdbpy_convert_exception.
116 (GDB_PY_SET_HANDLE_EXCEPTION): Likewise.
117 (gdbpy_gdb_error, gdbpy_gdb_memory_error): Declare.
118 (gdbpy_convert_exception): Declare.
119 (apply_varobj_pretty_printer): Update.
120 * python/py-utils.c (gdbpy_convert_exception): New function.
121
f1b9e6e7
MK
1222010-11-12 Marc Khouzam <marc.khouzam@ericsson.com>
123
124 * mi/mi-main.c (mi_cmd_target_detach): Accept new
125 thread-group id format.
126
74884f7b
JK
1272010-11-12 Jan Kratochvil <jan.kratochvil@redhat.com>
128
129 * spu-tdep.c (spu_catch_start): Fix compilation error typo.
130
84f4c1fe
PM
1312010-11-11 Phil Muldoon <pmuldoon@redhat.com>
132
133 * python/py-breakpoint.c (BPPY_REQUIRE_VALID): Check if bp is
134 NULL.
135 (BPPY_SET_REQUIRE_VALID): Ditto.
136 (bpnum_is_valid): Delete function.
137 (bppy_get_visibility): New function.
138 (bppy_new): Parse for, and validate internal keyword. Pass
139 internal keyword to breakpoint or watchpoint functions.
140 (build_bp_list): New function.
141 (gdbpy_breakpoints): Rewrite. Use build_bp_list and
142 iterate_over_breakpoints.
143 (gdbpy_breakpoint_created): Rewrite. Do not store breakpoints in a
144 look-aside vector.
145 (gdbpy_breakpoint_deleted): Rewrite, defer breakpoint management
146 to internal breakpoint chain.
147
148 * breakpoint.c (set_breakpoint_number): New function.
149 (breakpoint_1): Check if breakpoint number is more than zero.
150 (set_raw_breakpoint_without_location): Set py_bp_object to NULL.
151 (create_breakpoint_sal): Take a new parameter called internal.
152 Call set_breakpoint_number with internal parameter. Do not
153 mention internal breakpoints. All callers updated.
154 (create_breakpoint): Ditto.
155 (create_breakpoints_sal): Ditto.
156 (watch_command_1): Ditto.
157 (watch_command_wrapper): Take a new parameter called internal.
158 All callers updated.
159 (rwatch_command_wrapper): Ditto.
160 (awatch_command_wrapper): Ditto.
161 (save_breakpoints): Update breakpoint save condition check.
162 (iterate_over_breakpoints): New function.
163 * breakpoint.h: Add conditional python includes. Add py_bp_object
164 and comment to struct breakpoint. Update all callers.
165 * defs.h: Add PyObject definition for GDB builds without Python.
166
4dfea560
DE
1672010-11-10 Doug Evans <dje@google.com>
168
f61a2da7
DE
169 * python/lib/gdb/command/pretty_printers.py
170 (do_enable_pretty_printer_1): Handle printer.subprinters is None.
171
4dfea560
DE
172 * value.c (set_value_enclosing_type): Renamed from
173 value_change_enclosing_type. All callers updated.
174 * value.h (set_value_enclosing_type): Update.
175 * valops.c (value_full_object): Always return a copy if we need to
176 make changes to the input value.
177
a1442452
PA
1782010-11-09 Pedro Alves <pedro@codesourcery.com>
179
180 * breakpoint.c (watch_command_1): Get a pointer of the lazy
181 version of the expression's value, even if reading the value from
182 memory fails. When creating a -location watchpoint, get the
183 value's address from the lazy value pointer.
184
803b5f95
JK
1852010-11-07 Jan Kratochvil <jan.kratochvil@redhat.com>
186
187 * infrun.c (restore_inferior_thread_state): Use
188 discard_inferior_thread_state to free the data.
189 (discard_inferior_thread_state): xfree also siginfo_data.
190
99e7ae30
DE
1912010-11-05 Doug Evans <dje@google.com>
192
193 Make gdb.parameter("directories") work.
194 New command "set directories".
195 * NEWS: Document them.
196 * source.c (set_directories_command): New function.
197 (show_directories_1): Renamed from show_directories.
198 All callers updated.
199 (show_directories_command): New function.
200 (_initialize_source): Install "directories" as a set/show
201 variable instead of just a show command.
202
f4b8a18d
KW
2032010-11-05 Ken Werner <ken.werner@de.ibm.com>
204
205 * NEWS: Mention OpenCL C language support.
206 * Makefile.in (SFILES): Add opencl-lang.c.
207 (COMMON_OBS): Add opencl-lang.o.
208 * opencl-lang.c: New File
209 * defs.h (enum language): Add language_opencl.
210 * dwarf2read.c (read_file_scope): Handle DW_AT_producer for the
211 IBM XL C OpenCL compiler.
212 * c-lang.h: Include "parser-defs.h".
213 (evaluate_subexp_c): Declare.
214 * c-lang.c (evaluate_subexp_c): Remove the static qualifier.
215 (c_op_print_tab): Add declaration.
216 * eval.c (binop_promote): Handle language_opencl.
217 * c-exp.y: Lookup the primitive types instead of referring to the
218 builtins.
219
075ff26d
JK
2202010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
221
222 Fix configure --enable-plugins --without-python.
223 * configure.ac (for ELF support in BFD) <"$plugins" = "yes">: New.
224 * configure: Regenerate.
225
14ad3217
JK
2262010-11-05 Jan Kratochvil <jan.kratochvil@redhat.com>
227
228 * solib.c (solib_read_symbols): Call exception_fprintf even without
229 FROM_TTY. Print also so->so_name.
230
a9d5ef47
SW
2312010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
232
233 * gdbtypes.h (struct rank): Created subrank.
234 * gdbtypes.c: Initialized subrank for all
235 'BADNESS' constants.
236 (distance_to_ancestor): New function.
237 (is_ancestor): Use distance_to_ancestor.
238 (is_public_ancestor): Ditto.
239 (sum_ranks): Handle subrank.
240 (compare_ranks): Ditto.
241 (rank_one_type): Subrank base conversions.
242
6403aeea
SW
2432010-11-04 Sami Wagiaalla <swagiaal@redhat.com>
244
245 * gdbtypes.h: Create struct rank.
246 Convert all 'BADNESS' macros to const struct rank declarations.
247 (sum_ranks): New function.
248 (compare_ranks): New function.
249 * valops.c (find_oload_champ): Updated.
250 (classify_oload_match): Use compare_ranks.
251 Improved comments.
252 (compare_parameters): Use compare_ranks.
253 * gdbtypes.c: Initialize 'BADNESS' constants.
254 (sum_ranks): New function.
255 (compare_ranks): New function.
256 (compare_badness): Use compare_ranks.
257 (rank_function): Use global constants instead of literals.
258 (rank_one_type): Ditto.
259 Return struct rank.
260 Use sum_ranks.
261
23fa7f66
DE
2622010-11-04 Doug Evans <dje@google.com>
263
264 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Fix comment.
265 (find_pretty_printer): Fix comments.
266
608bcef2
HZ
2672010-11-04 Hui Zhu <teawater@gmail.com>
268
269 * tracepoint.c (remote_trace_set_readonly_regions): Change lma to vma.
270
9addb3b9
JB
2712010-11-03 Joel Brobecker <brobecker@adacore.com>
272
273 * ada-valprint.c (ada_val_print_array): Move variables `eltlen'
274 and `len' declaration and computation inside block where they
275 are being used.
276
75be741b
JB
2772010-11-03 Joel Brobecker <brobecker@adacore.com>
278
279 * valprint.c (val_print_array_elements): Put back handling of
280 empty arrays.
281
dbc98a8b
KW
2822010-11-03 Ken Werner <ken.werner@de.ibm.com>
283
284 * dwarf2read.c (read_array_type): Read the DW_AT_byte_size from the
285 DIE and set the length of the type.
286 * gdbtypes.h (get_array_bounds): Move here from valprint.h.
287 * gdbtypes.c (get_array_bounds): Move here from valprint.c and
288 return 0 if the corresponding bounds of the type are undefined.
289 * valprint.h (get_array_bounds): Move declaration to gdbtypes.h.
290 * valprint.c (get_array_bounds): Move implementation to gdbtypes.c.
291 (val_print_array_elements): Use get_array_bounds to compute the number
292 of array elements instead of dividing the length of the array by the
293 length of the element types.
294 * valarith.c (vector_binop): Likewise.
295 * valops.c (value_cast): Likewise.
296 * c-valprint.c (c_val_print): Likewise.
297 * c-typeprint.c (c_type_print_varspec_suffix): Likewise.
298
120bd360
KW
2992010-11-03 Ken Werner <ken.werner@de.ibm.com>
300
301 * valarith.c (value_pos, value_neg, value_complement): Handle
302 vector types.
303 * valops.c (value_one): Likewise.
304
c37f7098
KW
3052010-11-03 Ken Werner <ken.werner@de.ibm.com>
306
307 * value.h (value_non_lval): Declare.
308 * value.c (value_non_lval): New function.
309 * eval.c (evaluate_subexp_standard) <UNOP_POSTINCREMENT,
310 UNOP_POSTDECREMENT>: Call value_non_lval to ensure to return a
311 non-lvalue.
312
7b51bc51
DE
3132010-11-02 Doug Evans <dje@google.com>
314
315 New python module gdb.printing, and new commands info pretty-printer,
316 enable pretty-printer, disable pretty-printer.
317 * NEWS: Mention them.
318 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/printing.py,
319 gdb/command/__init__.py, gdb/command/pretty_printers.py.
320 * python/lib/gdb/__init__.py: Install pretty-printer commands.
321 * python/lib/gdb/printing.py: New file.
322 * python/lib/gdb/command/__init__.py: New file.
323 * python/lib/gdb/command/pretty_printers.py: New file.
324
50c97f38
TT
3252010-11-02 Tom Tromey <tromey@redhat.com>
326
327 * NEWS: Mention Guile removal.
328 * defs.h (enum language) <language_scm>: Remove.
329 * Makefile.in (SFILES): Remove scm-exp.c, scm-lang.c,
330 scm-valprint.c.
331 (HFILES_NO_SRCDIR): Remove scm-lang.h, scm-tags.h.
332 (COMMON_OBS): Remove scm-exp.o, scm-lang.o, scm-valprint.o.
333 * scm-exp.c, scm-lang.c, scm-valprint.c, scm-lang.h, scm-tags.h:
334 Remove.
335
9dea9163
DE
3362010-11-02 Doug Evans <dje@google.com>
337
338 * top.c: #include "python/python.h".
339 (gdb_init): Add a comment regarding initialize_all_files.
340 Call finish_python_initialization at the end.
341 * python/python.h (finish_python_initialization): Declare.
342 * python/python.c (finish_python_initialization): New function.
343 (_initialize_python): Move python-implemented initialization there
344 and call it.
345 (GdbMethods): Use #ifdef HAVE_PYTHON for consistency.
346
a289b8f6
JK
3472010-11-02 Jan Kratochvil <jan.kratochvil@redhat.com>
348
349 Revert:
350 2010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
351 Pedro Alves <pedro@codesourcery.com>
352 * gdbthread.h (currently_stepping): New declaration.
353 * infrun.c (currently_stepping): Remove the forward declaration.
354 (currently_stepping): Make it global.
355 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
356 variables tp and step, initialized them. Pass STEP to to_resume.
357 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
358 * remote.c (currently_stepping_callback): New.
359 (remote_vcont_resume)
360 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
361 New variable tp. Call currently_stepping_callback and step such
362 thread.
363
2209c807
HZ
3642010-11-01 Hui Zhu <teawater@gmail.com>
365
366 * tracepoint.c (tfile_xfer_partial): Change lma to vma.
367
0a2a54b8
HZ
3682010-10-28 Hui Zhu <teawater@gmail.com>
369
370 * tracepoint.c (trace_save): Change utp->actions to
371 utp->step_actions.
372
284a3db3
JB
3732010-10-26 Joel Brobecker <brobecker@adacore.com>
374
375 * (_FILE_OFFSET_BITS): Fix typo in comment.
376
aed1781d
JB
3772010-10-26 Joel Brobecker <brobecker@adacore.com>
378
379 * python/python-internal.h (_FILE_OFFSET_BITS): Undefine.
380 (PyEval_InitThreads): Remove duplicate. Define as nothing.
381 (PyEval_ReleaseLock): Define as nothing.
382
1e3fad37
JB
3832010-10-26 Joel Brobecker <brobecker@adacore.com>
384
385 * dwarf2read.c (psymtab_include_file_name): Replace call to strcmp
386 by call to FILENAME_CMP.
387
558b1900
JB
3882010-10-26 Joel Brobecker <brobecker@adacore.com>
389
390 * dictionary.c (dict_hash): Move assignment out of if condition.
391
f474844c
JZ
3922010-10-22 Jie Zhang <jie@codesourcery.com>
393
394 * Makefile.in (install): Remove dependency of install-only and
395 recursively invoke make for install-only.
396 * data-directory/Makefile.in: Add FLAGS_TO_PASS variable.
397 (install): Pass FLAGS_TO_PASS when recursively make install-only.
398
8991e9fa
HZ
3992010-10-20 Hui Zhu <teawater@gmail.com>
400
401 * tracepoint.c (tfile_get_traceframe_address): Call
402 extract_signed_integer.
403 (tfile_trace_find): Call extract_signed_integer and
404 extract_unsigned_integer. Change data_size to unsigned int.
405 (tfile_fetch_registers): Call extract_unsigned_integer.
406 (tfile_xfer_partial): Ditto.
407 (tfile_get_trace_state_variable_value): Call
408 extract_signed_integer and extract_unsigned_integer.
409
21bce120
VP
4102010-10-20 Vladimir Prus <vladimir@codesourcery.com>
411
412 * remote.c (remote_get_threadlist): If we got empty
413 response, bail out immediately, and don't emit any
414 warnings.
415
ad8b5167
UW
4162010-10-19 Ulrich Weigand <uweigand@de.ibm.com>
417
418 * arm-tdep.c (thumb_get_next_pc_raw): Handle Thumb-16 encoding
419 for "mov pc, REG" as well.
420 (thumb_instruction_changes_pc): Likewise.
421
79afc5ef
SW
4222010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
423
424 PR C++/11500:
425 * valarith.c (value_x_unop): Handle STRUCTOP_PTR.
426 * eval.c (evaluate_subexp_standard): Check for overload of
427 'operator->'.
428 * valarith.c (value_x_binop): Throw NOT_FOUND_ERROR.
429 (value_x_unop): Ditto.
430 * valops.c: Include "exceptions.h".
431 (find_overload_match): Throw NOT_FOUND_ERROR.
432 (value_struct_elt): Ditto.
433
cca56ac7
TT
4342010-10-19 Tom Tromey <tromey@redhat.com>
435
436 * python/py-cmd.c (cmdpy_function): Unreference exception state.
437
026ffab7
SW
4382010-10-19 Sami Wagiaalla <swagiaal@redhat.com>
439
440 * gdbtypes.h: Introduce BOOL_PTR_CONVERSION_BADNESS.
441 * gdbtypes.c (rank_one_type): Use BOOL_PTR_CONVERSION_BADNESS
442 for conversion.
443 Make all other conversions illegal.
444
8c540a24
DE
4452010-10-18 Doug Evans <dje@google.com>
446
447 * c-typeprint.c (c_type_print_base, case TYPE_CODE_TYPEDEF): Verify
448 assumptions of when this case happens. Print "<unnamed typedef>".
449
3a772aa4
TT
4502010-10-18 Tom Tromey <tromey@redhat.com>
451
452 * valprint.c (val_print_string): Pass 'encoding' to
453 LA_PRINT_STRING.
454
01f8c46d
JK
4552010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
456
457 Fix the `stopped language detection' testcase for gcc-4.5.
458 * dwarf2read.c (read_partial_die): Set also LANGUAGE_OF_MAIN.
459 * symfile.c (set_initial_language): Move variable filename to a more
460 inner block. Prefer LANGUAGE_OF_MAIN.
461 * symtab.c (language_of_main): New variable.
462 (set_main_name): Always reset LANGUAGE_OF_MAIN.
463 * symtab.h (language_of_main): New declaration.
464
8aeb23f3
JK
4652010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
466 Pedro Alves <pedro@codesourcery.com>
467
468 * gdbthread.h (currently_stepping): New declaration.
469 * infrun.c (currently_stepping): Remove the forward declaration.
470 (currently_stepping): Make it global.
471 * linux-nat.c (resume_callback) <lp->stopped && lp->status == 0>: New
472 variables tp and step, initialized them. Pass STEP to to_resume.
473 Print also possibly "PTRACE_SINGLESTEP" if STEP. Initialize LP->STEP.
474 * remote.c (currently_stepping_callback): New.
475 (remote_vcont_resume)
476 <ptid_equal (ptid, minus_one_ptid) || ptid_is_pid (ptid)>:
477 New variable tp. Call currently_stepping_callback and step such
478 thread.
479
c1e56572
JK
4802010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
481
482 * infrun.c (follow_exec): Replace symbol_file_add_main by
483 symbol_file_add with SYMFILE_DEFER_BP_RESET, set_initial_language and
484 breakpoint_re_set.
485 * m32r-rom.c (m32r_load, m32r_upload_command): Use parameter 0 for
486 clear_symtab_users.
487 * objfiles.c (free_all_objfiles): Likewise.
488 * remote-m32r-sdi.c (m32r_load): Likewise.
489 * solib-som.c (som_solib_create_inferior_hook): Likewise.
490 * symfile.c (new_symfile_objfile): New comment for add_flags. Call
491 clear_symtab_users with ADD_FLAGS.
492 (reread_symbols): Use parameter 0 for clear_symtab_users.
493 (clear_symtab_users): New parameter add_flags. Do not call
494 breakpoint_re_set if SYMFILE_DEFER_BP_RESET.
495 (clear_symtab_users_cleanup): Use parameter 0 for clear_symtab_users.
496 * symtab.h (clear_symtab_users): New parameter add_flags.
497
3a182a69
JK
4982010-10-17 Jan Kratochvil <jan.kratochvil@redhat.com>
499
500 Fix GCC false warning.
501 * varobj.c (value_get_print_value) <str_addr>: Initialize it.
502
3a9d7214
PM
5032010-10-16 Pierre Muller <muller@ics.u-strasbg.fr>
504
505 * p-typeprint.c (pascal_type_print_method_args): Fix problem in
506 display of type of method arguments.
507
09ca9e2e
TT
5082010-10-15 Tom Tromey <tromey@redhat.com>
509
510 PR python/11948:
511 * varobj.c (value_get_print_value): Use val_print_string to print
512 lazy strings.
513 * python/py-prettyprint.c (print_string_repr): Use
514 val_print_string to print lazy strings. Fix cleanup logic.
515 (print_children): Likewise.
516 * python/python-internal.h (gdbpy_extract_lazy_string): Update.
517 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Rewrite.
518 Change return type to 'void', add 'addr' argument.
519 * value.h (val_print_string): Update.
520 * valprint.c (val_print_string): Add 'encoding' argument.
521 * printcmd.c (print_formatted): Update.
522 * p-valprint.c (pascal_val_print): Update.
523 * m2-valprint.c (print_unpacked_pointer): Update.
524 (m2_print_array_contents): Likewise.
525 * jv-valprint.c (java_value_print): Update.
526 * f-valprint.c (f_val_print): Update.
527 * c-valprint.c (c_val_print): Update.
528 * auxv.c (fprint_target_auxv): Update.
529
92163a10
JK
5302010-10-15 Doug Evans <dje@google.com>
531 Jan Kratochvil <jan.kratochvil@redhat.com>
532
533 PR exp/12117
534 * gdbtypes.c (check_typedef): Clean up function comment.
535 Keep track of instance flags as we strip typedefs and create a new
536 type to preserve them if necessary.
537 * gdbtypes.h (type) <instance_flags>: Extend the comment.
538
dae71413
PM
5392010-10-15 Pierre Muller <muller@ics.u-strasbg.fr>
540
541 * p-lang.c (is_pascal_string_type): Use TYPE_FIELD_NAME accessor.
542
7062b0a0
SW
5432010-10-14 Sami Wagiaalla <swagiaal@redhat.com>
544
545 * gdbtypes.h: Create BASE_PTR_CONVERSION_BADNESS.
546 * gdbtypes.c (rank_one_type): Move type comparison code out of here
547 to...
548 (types_equal): ...here. And changed it as follows:
549 Outside of typedefs type must be of the same TYPE_CODE.
550 When compairing two pointers or references they are equal if their
551 targets are equal.
552 Correct pointer conversions.
553
5c3da5ea
PM
5542010-10-14 Pierre Muller <muller@ics.u-strasbg.fr>
555
556 * p-lang.c (is_pascal_string_type): Avoid crashes on structures
557 having fields without names.
558
577ce03a
TT
5592010-10-13 Tom Tromey <tromey@redhat.com>
560
561 * language.h (LA_PRINT_ARRAY_INDEX): Fix argument name.
562
a737a51b
DE
5632010-10-13 Doug Evans <dje@google.com>
564
0e3509db
DE
565 New python module gdb.types.
566 * NEWS: Document it.
567 * data-directory/Makefile.in (PYTHON_FILES): Add gdb/types.py.
568 * python/lib/gdb/types.py: New file.
569
a737a51b
DE
570 * c-typeprint.c: Whitespace cleanup.
571 (cp_type_print_method_args): Remove unnecessary forward decl.
572 (cp_type_print_derivation_info): Ditto.
573 (c_type_print_varspec_prefix): Mark as static at definition.
574 (c_type_print_modifier): Fix arg descriptions.
575
8dc78533
JK
5762010-10-13 Jan Kratochvil <jan.kratochvil@redhat.com>
577
578 * python/py-breakpoint.c (bppy_set_condition): New comment.
579 * python/py-cmd.c (cmdpy_function): Call also gdbpy_print_stack for
580 failed PyUnicode_Decode.
581 (cmdpy_completer): Skip element for failed
582 python_string_to_host_string.
583 (cmdpy_init): Return -1 on failed python_string_to_host_string.
584 * python/py-frame.c (frapy_read_var): Extend the function comment.
585 * python/py-function.c (fnpy_init): Return -1 on failed
586 python_string_to_host_string.
587 * python/py-inferior.c (infpy_read_memory, infpy_write_memory): Extend
588 the function comment.
589 (infpy_search_memory): Extend the function comment. Remove the
590 PyErr_SetString call on already set error state.
591 * python/py-param.c (set_parameter_value): Extend the function
592 comment. Return -1 on failed python_string_to_host_string, twice.
593 (set_attr): Extend the function comment.
594 (compute_enum_values): Extend the function comment. New variable
595 back_to. Protect self->enumeration by BACK_TO cleanups. Return 0 on
596 failed python_string_to_host_string.
597 (get_doc_string): Call gdbpy_print_stack on failed
598 python_string_to_host_string.
599 (parmpy_init): Extend the function comment.
600 * python/py-prettyprint.c (pretty_print_one_value): Likewise.
601 (gdbpy_get_display_hint, print_children): Call gdbpy_print_stack on
602 failed python_string_to_host_string.
603 * python/py-value.c (valpy_new, valpy_getitem, valpy_call)
604 (valpy_binop, valpy_richcompare): Extend the function comment.
605 * python/python.c
606 (struct python_env) <error_type, error_value, error_traceback>: New
607 fields.
608 (restore_python_env): Handle PyErr_Occurred. Call PyErr_Restore.
609 (ensure_python_env): Call PyErr_Fetch.
610 * varobj.c (update_dynamic_varobj_children): Call gdbpy_print_stack on
611 failed convert_value_from_python.
612 (value_get_print_value): Call gdbpy_print_stack on failed
613 python_string_to_target_python_string.
614
1bdb0c54
TT
6152010-10-12 Tom Tromey <tromey@redhat.com>
616
617 * python/py-prettyprint.c (search_pp_list): Fix error checking.
618
0526b37a
SW
6192010-10-12 Sami Wagiaalla <swagiaal@redhat.com>
620
621 * gdbtypes.c (do_is_ancestor): New function.
622 (is_ancestor): Use do_is_ancestor.
623 (is_public_ancestor): Use do_is_ancestor.
624
c1b5be38
PM
6252010-10-12 Pierre Muller <muller@ics.u-strasbg.fr>
626
627 * ser-go32.c (struct dos_ops): Add missing fdopen field.
628
68770265
MGD
6292010-10-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
630
631 * arm-tdep.c (arm_mode_strings): Add NULL entry at end of array.
632
64b00020
DE
6332010-10-11 Doug Evans <dje@google.com>
634
635 * c-typeprint.c (c_type_print_modifier): Add note that this prints
636 the address space id too.
637
43b8e241
JK
6382010-10-11 Jan Kratochvil <jan.kratochvil@redhat.com>
639
640 Fix attaching to re-prelinked executables on ppc64.
641 * solib-svr4.c (svr4_exec_displacement): New variable plt2_asect,
642 initialize it, try to adjust FILESZ field by it.
643
417b5110
DJ
6442010-10-08 Daniel Jacobowitz <dan@codesourcery.com>
645
646 * tracepoint.c (merge_uploaded_trace_state_variables): Only print
647 messages if info_verbose.
648
3bdf2bbd
KW
6492010-10-08 Ken Werner <ken.werner@de.ibm.com>
650
651 * valops.c (value_cast): Handle vector types.
652 * valarith.c (value_binop): Widen scalar to vector if appropriate.
653
ec3d575a
UW
6542010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
655
656 * arm-tdep.c (thumb_expand_immediate): New function.
657 (thumb_instruction_changes_pc): Likewise.
658 (thumb2_instruction_changes_pc): Likewise.
659 (thumb_analyze_prologue): Handle 32-bit Thumb instructions during
660 prologue parsing. Improved support for optimized code.
661 (thumb_scan_prologue): Do not reply on line-number information,
662 use same heuristics as arm_scan_prologue insead.
663 (skip_prologue_function): Accept functions
664 "__tls_get_addr" and "__aeabi_read_tp".
665
4024ca99
UW
6662010-10-08 Ulrich Weigand <uweigand@de.ibm.com>
667 Daniel Jacobowitz <dan@codesourcery.com>
668
669 * arm-tdep.c (thumb_in_function_epilogue_p)
670 (arm_in_function_epilogue_p): New.
671 (arm_gdbarch_init): Install arm_in_function_epilogue_p as
672 gdbarch_in_function_epilogue_p callback.
673
855c153f
DE
6742010-10-07 Doug Evans <dje@google.com>
675
00e14314
DE
676 * cc-with-index.sh (output_file): Default to a.out.
677
3876f04e
DE
678 * dwarf2read.c (mapped_index): Rename member index_table to
679 symbol_table and index_table_slots to symbol_table_slots.
680 All uses updated.
681 (create_symbol_hash_table): Renamed from create_index_table.
682 All callers updated.
683 (add_indices_to_cpool): Rename arg index_table to symbol_hash_table.
684 (write_hash_table): Rename local index_table to symbol_hash_table.
685
855c153f
DE
686 * addrmap.h (addrmap_foreach_fn): New typedef.
687 (addrmap_foreach): Declare.
688 * addrmap.c (struct addrmap_funcs): New member foreach.
689 (addrmap_foreach): New function.
690 (addrmap_fixed_foreach): New function.
691 (addrmap_fixed_funcs): Update.
692 (struct mutable_foreach_data): New struct.
693 (addrmap_mutable_foreach_worker): New function.
694 (addrmap_mutable_foreach): New function.
695 (addrmap_mutable_funcs): Update.
696
1d2a4540
PH
6972010-10-07 Paul Hilfinger <hilfinger@adacore.com>
698
699 * dictionary.c (dict_hash): Revert to msymbol_hash_iw in
700 more cases.
701
40658b94
PH
7022010-10-07 Paul Hilfinger <hilfinger@adacore.com>
703
704 * ada-lang.c (full_match): Declare.
705 (ada_match_name): Rename to match_name (we should avoid prefixing static
706 symbols with "ada_").
707 (match_name): New name for ada_match_name.
708 (struct ada_psym_data): Remove and replace with...
709 (struct match_data): User data for map_matching_symbols.
710 (ada_add_psyms): Remove.
711 (aux_add_nonlocal_symbols): New function, used as callback for
712 map_matching_symbols.
713 (compare_names): Ordering function adopted from strcmp_iw for Ada-encoded
714 symbols.
715 (ada_add_non_local_symbols): Rename to add_nonlocal_symbols.
716 (add_nonlocal_symbols): Renamed from ada_add_non_local_symbols.
717 Rework to use map_matching_symbols instead of map_ada_symtabs.
718 (ada_lookup_symbol_list): Use add_nonlocal_symbols.
719 * psymtab.c: Include dependency on dictionary.h.
720 (match_partial_symbol): New function.
721 (ada_lookup_partial_symbol): Remove.
722 (map_block): New function, auxiliary to map_matching_symbols_psymtab.
723 (map_matching_symbols_psymtab): New function.
724 (psym_functions): Replace map_ada_symtabs with map_matching_symbols_psymtab.
725 * symfile.h: Replace map_ada_symtabs definition with map_matching_symbols.
726
c4d840bd
PH
7272010-10-06 Paul Hilfinger <hilfinger@adacore.com>
728
729 * ada-lang.c (ada_match_name): Use new API for wild_match.
40658b94
PH
730 (wild_match): Change API to be consistent with that of strcmp_iw;
731 return 0 for a match, and switch operand order.
732 (full_match): New function.
733 (ada_add_block_symbols): Use dict_iter_match_{first,next} for
734 matching to allow use of hashing.
735 * dictionary.c (struct dict_vector): Generalize iter_name_first,
736 iter_name_next ot iter_match_first, iter_match_next.
737 (iter_name_first_hashed): Replace with iter_match_first_hashed.
738 (iter_name_next_hashed): Replace with iter_match_next_hashed.
739 (iter_name_first_linear): Replace with iter_match_first_linear.
740 (iter_name_next_linear): Replace with iter_match_next_linear.
741 (dict_iter_name_first): Re-implement to use dict_iter_match_first.
742 (dict_iter_name_next): Re-implement to use dict_iter_match_next.
743 (dict_iter_match_first): New function.
744 (dict_iter_match_next): New function.
745 (dict_hash): New function.
746 * dictionary.h (dict_iter_match_first, dict_iter_match_next): Declare.
747 * psymtab.c (ada_lookup_partial_symbol): Use new wild_match API.
c4d840bd 748
543ecec7
DE
7492010-10-06 Doug Evans <dje@google.com>
750
751 * data-directory/Makefile.in: Remove @host_makefile_frag@, @frags@.
752
2f608a3a
KW
7532010-10-06 Ken Werner <ken.werner@de.ibm.com>
754
755 * dwarf2read.c (read_tag_const_type): Handle const arrays.
756
aa2e2d8d
DE
7572010-10-06 Doug Evans <dje@google.com>
758
9c9606fb
DE
759 * Makefile.in (REQUIRED_SUBDIRS): New var.
760 (subdir_do): Verify required subdir Makefiles exist.
761
aa2e2d8d
DE
762 Create subdir data-directory.
763 * Makefile.in (XML_SYSCALL_DIR, XML_SYSCALL_FILES): Moved to
764 data-directory/Makefile.in.
765 (SUBDIRS): Add data-directory.
766 (all): Remove xml-syscall-copy dependency.
767 (xml-syscall-copy): Moved to data-directory/Makefile.in as
768 stamp-syscalls.
769 (xml-syscall-install): Moved to data-directory/Makefile.in as
770 install-syscalls.
771 (install-only): Remove xml-syscall-install dependency.
772 (all-data-directory): New rule.
773 (data-directory/Makefile): New rule.
774 * configure.ac (AC_OUTPUT): Add data-directory/Makefile.
775 * configure: Regenerate.
776 * data-directory/Makefile.in: New file.
777 * python/lib/gdb/__init__.py: New file.
778
aa27d0b3
JB
7792010-10-06 Joel Brobecker <brobecker@adacore.com>
780
781 Fix ARI warnings in advance_wild_match.
782 * ada-lang.c (advance_wild_match): Delete local variable t2.
783 Adjust code accordingly. Minor reformatting.
784
2844d6b5
KW
7852010-10-06 Ken Werner <ken.werner@de.ibm.com>
786
787 * gdbtypes.h (struct main_type): Remove flag_nottext.
788 (enum type_flag_value): Remove TYPE_FLAG_NOTTEXT.
789 (enum type_instance_flag_value): Add TYPE_INSTANCE_FLAG_NOTTEXT.
790 (TYPE_NOTTEXT): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of flag_nottext.
791 * gdbtypes.c (make_vector_type): Use TYPE_INSTANCE_FLAG_NOTTEXT instead
792 of TYPE_FLAG_NOTTEXT.
793 (init_type): Remove the initialization of the flag_nottext field.
794 (gdbtypes_post_init): Use TYPE_INSTANCE_FLAG_NOTTEXT instead of
795 TYPE_FLAG_NOTTEXT.
796 * c-valprint.c (c_val_print): Remove TYPE_VECTOR check.
797
2fdf6df6
DE
7982010-10-04 Doug Evans <dje@google.com>
799
ea65fe05
DE
800 * cc-with-index.sh: New file.
801
2fdf6df6
DE
802 * dwarf2read.c (dw2_do_instantiate_symtab): Insert blank line after
803 function comment.
804 (dw2_instantiate_symtab, dw2_get_cu, extract_cu_value): Ditto.
805 (create_cus_from_index, create_addrmap_from_index): Ditto.
806 (mapped_index_string_hash, find_slot_in_mapped_hash): Ditto.
807 (dw2_setup, dw2_require_line_header, dw2_require_full_path): Ditto.
808 (dw2_do_expand_symtabs_matching): Ditto.
b89be57b
DE
809 (eq_strtab_entry, create_strtab, add_string): Ditto.
810 (hash_strtab_entry): Ditto.
811 (hash_symtab_entry, eq_symtab_entry, delete_symtab_entry): Ditto.
812 (create_index_table, create_mapped_symtab, find_slot): Ditto.
813 (hash_expand, add_index_entry, add_indices_to_cpool): Ditto.
814 (write_hash_table, add_address_entry, write_psymbols): Ditto.
815 (write_obstack, unlink_if_set, write_one_signatured_type): Ditto.
816 (write_psymtabs_to_index): Ditto.
2fdf6df6 817
40bc484c
JB
8182010-10-04 Joel Brobecker <brobecker@adacore.com>
819
820 * ada-lang.c: #include "value.h".
821 (ensure_lval): Delete advance declaration. Remove gdbarch and sp
822 arguments. Implement using value_allocate_space_in_inferior
823 instead of allocating memory from the stack.
824 (make_array_descriptor): Remove gdbarch and sp parameters. Update
825 calls to ensure_lval.
826 (ada_convert_actual): Remove gdbarch and sp parameters. Update
827 calls to make_array_descriptor and ensure_lval.
828 * ada-lang.h (ada_convert_actual): Update declaration.
829 * infcall.c (value_arg_coerce): Update call to ada_convert_actual.
830
f17618ea
DE
8312010-10-04 Doug Evans <dje@google.com>
832
833 * python/python.c (_initialize_python): Define new function
834 GdbSetPythonDirectory in python. Use it to update sys.path and
835 gdb.__path__.
836
83e3a93c
PH
8372010-10-03 Paul Hilfinger <hilfinger@adacore.com>
838
839 * gdb/ada-typeprint.c (print_selected_record_field_types): New function,
840 incorporating and generalizing print_record_field_types.
841 (print_record_field_types): Change return value and update comment.
842 Re-implement using print_selected_record_field_types.
843 (print_choices): Print "=>" here.
844 Handle case of unencoded variant branch.
845 (print_variant_clauses): Reformat comment.
846 Special-case unencoded variant branch.
847
8482010-10-03 Paul Hilfinger <hilfinger@adacore.com>
73589123
PH
849
850 * ada-lang.c (wild_match): Reimplement.
851 Change API to eliminate unused length argument, reverse arguments and
852 make 0 the 'true' return value.
853 (advance_wild_match): New auxiliary function for wild_match to improve
854 readability.
855 (ada_match_name, ada_add_block_symbols): Use new API for wild_match.
856 * psymtab.c (ada_lookup_partial_symbol, map_ada_symtabs): Use new
857 API for wild_match.
858 * symfile.h (map_ada_symtabs): Modify declaration to use new API for
859 wild_match.
860 * dwarf2read.c (dw2_map_ada_symtabs): Ditto.
861
11570e71
DE
8622010-10-01 Doug Evans <dje@google.com>
863
864 * dwarf2read.c (_initialize_dwarf2_read): Add usage info to help text
865 for `save gdb-index' command.
866
72b9f47f
TT
8672010-10-01 Tom Tromey <tromey@redhat.com>
868
869 * symfile.h (allocate_symtab): Update.
870 * symfile.c (allocate_symtab): Make 'filename' const.
871 * psymtab.c (add_psymbol_to_bcache): Make 'name' const.
872 (add_psymbol_to_list): Likewise.
873 * psympriv.h (struct partial_symtab) <filename, dirname>: Now
874 const.
875 (add_psymbol_to_list): Update.
876 * mdebugread.c (new_symtab): Make 'name' const.
877 (psymtab_to_symtab_1): Make 'filename' const.
878 * elfread.c (elfstab_offset_sections): Update.
879 * dwarf2read.c (dwarf_decode_lines): Make 'comp_dir' const.
880 (dwarf2_start_subfile): Make 'dirname' and 'comp_dir' const.
881 (psymtab_include_file_name): Update.
882 * dbxread.c (find_stab_function_addr): Make 'filename' const.
883 * buildsym.h (start_subfile): Update.
884 * buildsym.c (start_subfile): Make arguments const.
885
55e39473
MS
8862010-09-30 Ali Lakhia <lakhia@alumni.utexas.net>
887
888 * fork-child.c (breakup_args): Fix crash if shell forking is
889 disabled at compile time.
890
05e522ef
JB
8912010-10-01 Joel Brobecker <brobecker@adacore.com>
892
893 * ada-lang.c (desc_bounds): Add handling of the case where
894 the P_BOUNDS field is a pointer to a stub.
895 (desc_data_target_type): Same for P_ARRAY field.
896 (ada_check_typedef): Strip the typedef layers from the type
897 found by ada_find_any_type.
898
49a45ecf
JB
8992010-10-01 Joel Brobecker <brobecker@adacore.com>
900
901 * sparc-tdep.c (sparc32_frame_align): New function.
902 (sparc32_gdbarch_init): Set the frame_align gdbarch method.
903 * sparc64-tdep.c (sparc64_frame_align): New function.
904 (sparc64_gdbarch_init): Set the frame_align gdbarch method.
905
a5916a62
L
9062010-09-30 H.J. Lu <hongjiu.lu@intel.com>
907
908 * defs.h (MAX_REGISTER_SIZE): Set to 64.
909
00b5771c
TT
9102010-09-30 Tom Tromey <tromey@redhat.com>
911
912 * symfile.h (struct sym_fns) <next>: Remove.
913 (add_symtab_fns): Update.
914 * symfile.c (sym_fns_ptr): New typedef.
915 (symtab_fns): Now a VEC.
916 (add_symtab_fns): Update. Change argument type.
917 (find_sym_fns): Update. Change return type.
918 (get_symfile_segment_data): Update.
919 * objfiles.h (struct objfile) <sf>: Now const.
920 * somread.c (som_sym_fns): Now const. Update.
921 * xcoffread.c (xcoff_sym_fns): Now const. Update.
922 * mipsread.c (ecoff_sym_fns): Now const. Update.
923 * machoread.c (macho_sym_fns): Now const. Update.
924 * elfread.c (elf_sym_fns): Now const. Update.
925 (elf_sym_fns_gdb_index): Likewise.
926 * dbxread.c (aout_sym_fns): Now const. Update.
927 * coffread.c (coff_sym_fns): Now const. Update.
928
38f12cfc
TT
9292010-09-30 Tom Tromey <tromey@redhat.com>
930
931 * value.c (value_primitive_field): Take 'offset' into account for
932 packed field.
933
9ae8282d
TT
9342010-09-30 Tom Tromey <tromey@redhat.com>
935
936 * completer.c (count_struct_fields): Handle anonymous structs and
937 unions.
938 (add_struct_fields): Likewise.
939
e9e07ba6
JK
9402010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
941
942 Fix printing parameters of inlined functions.
943 * ada-lang.c (is_known_support_routine)
944 (ada_unhandled_exception_name_addr_from_raise): Provide NULL parameter
945 for find_frame_funname.
946 * python/py-frame.c (frapy_name): Likewise.
947 * stack.c (find_frame_funname): New parameter funcp. Update the
948 function comment. Fill it in.
949 (print_frame): New variable func. Initialize it by
950 find_frame_funname. Print arguments only if FUNC is not NULL. Use
951 FUNC as the parameter of print_args_stub.
952 * stack.h (find_frame_funname): New parameter funcp. Remove the
953 function declaration comment.
954
cd2effb2
JK
9552010-09-30 Jan Kratochvil <jan.kratochvil@redhat.com>
956
957 PR corefiles/12071.
958 * inferior.c (have_live_inferiors): New variables old_chain, inf and
959 tp. Iterate INFERIOR_LIST and call target_has_execution.
960
bceffbf3
JK
9612010-09-29 Jan Kratochvil <jan.kratochvil@redhat.com>
962
963 Fix GDB crash on inferior calls with self-referencing classes.
964 * gnu-v3-abi.c (gnuv3_pass_by_reference): Do not call itself on static
965 member fields.
966
abc72ce4
DE
9672010-09-29 Doug Evans <dje@google.com>
968
969 Workaround for gcc/45682.
970 * dwarf2read.c (partial_die_info): New fields fixup_called,
971 linkage_name.
972 (guess_partial_die_structure_name): Renamed from guess_structure_name.
973 Move definition next to use. Use linkage_name to determine if class
974 is in a namespace. All callers updated.
975 (fixup_partial_die): Return early if already called.
976 Set fixup_called when done.
977 (guess_full_die_structure_name): New function.
978 (determine_prefix): Call it for class/struct/union dies if c++ and
979 .debug_types section is present and parent is DW_TAG_compile_unit.
980
0ac7be25
JB
9812010-09-28 Joel Brobecker <brobecker@adacore.com>
982
983 * configure.tgt (sparc-*-*): Set gdb_sim to ../sim/erc32/libsim.a.
984 (sparc-*-rtems*): Delete. Now redundant with sparc-*-*.
985
6e1bb179
JB
9862010-09-28 Joel Brobecker <brobecker@adacore.com>
987
988 * NEWS: Announce Ravenscar Profile support.
989
036b1ba8
JB
9902010-09-28 Joel Brobecker <brobecker@adacore.com>
991 Jerome Guitton <guitton@adacore.com>
992
993 * ravenscar-thread.c, ravenscar-thread.h, ravenscar-sparc-thread.c:
994 New files.
995 * configure.tgt (sparc-*-*): Add ravenscar-thread.o and
996 ravenscar-sparc-thread.o to gdb_target_obs.
997
474011fb
JB
9982010-09-28 Joel Brobecker <brobecker@adacore.com>
999
1000 * ada-tasks.c (iterate_over_live_ada_tasks): New function.
1001 * ada-lang.h (iterate_over_live_ada_tasks): Declare.
1002
99e24b90
PM
10032010-09-27 Pierre Muller <muller@ics.u-strasbg.fr>
1004
1005 * amd64-windows-tdep.c (amd64_skip_main_prologue): New function.
1006 (amd64_windows_init_abi): Register amd64_skip_main_prologue as gdbarch
1007 skip_main_prologue method.
1008
987d643c
TT
10092010-09-27 Tom Tromey <tromey@redhat.com>
1010
1011 * dwarf2read.c (dwarf2_read_index): Only allow version 3.
1012 (write_psymbols): Add 'psyms_seen' and 'is_static' arguments.
1013 Only emit a given psymbol once.
1014 (struct signatured_type_index_data) <psyms_seen>: New field.
1015 (write_one_signatured_type): Update.
1016 (cleanup_htab): New function.
1017 (write_psymtabs_to_index): Update. Create psyms_seen hash. Bump
1018 version to 3.
1019 (save_gdb_index_command): Update index documentation.
1020
d3aff959
TT
10212010-09-27 Tom Tromey <tromey@redhat.com>
1022
1023 * bcache.c (expand_hash_table): Use hash_function, not hash.
1024
716b65bf
TT
10252010-09-27 Tom Tromey <tromey@redhat.com>
1026
1027 * gdb_wchar.h: Change minimum libiconv to 0x108.
1028
1736ad11
JK
10292010-09-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1030
1031 Fix lost siginfo_t for inferior calls.
1032 * infrun.c
1033 (struct inferior_thread_state) <siginfo_gdbarch, siginfo_data>: New.
1034 (save_inferior_thread_state): New variables regcache, gdbarch and
1035 siginfo_data. Initialize SIGINFO_DATA if gdbarch_get_siginfo_type_p.
1036 Move INF_STATE allocation later, pre-clear it. Initialize REGISTERS
1037 using REGCACHE.
1038 (restore_inferior_thread_state): New variables regcache and gdbarch.
1039 Restore SIGINFO_DATA for matching GDBARCH. Restore REGISTERS using
1040 REGCACHE. Free also SIGINFO_DATA.
1041
4b5246aa
TT
10422010-09-24 Tom Tromey <tromey@redhat.com>
1043
1044 * dwarf2read.c (dw2_expand_symtabs_matching): Add missing
1045 MAYBE_SWAPs.
1046 (dw2_map_symbol_names): Likewise.
1047
2a7d6a25
SW
10482010-09-24 Sami Wagiaalla <swagiaal@redhat.com>
1049
1050 * valops.c (find_oload_champ_namespace_loop): replace incorrect
1051 discard_cleanups do_cleanups.
1052
b53a1623
PA
10532010-09-24 Pedro Alves <pedro@codesourcery.com>
1054
e6ee044d
PA
1055 PR gdb/11842
1056
b53a1623
PA
1057 * amd64-linux-nat.c (compat_siginfo_from_siginfo)
1058 (siginfo_from_compat_siginfo): Also copy si_pid and si_uid when
1059 si_code is < 0. Check for si_code == SI_TIMER before checking for
1060 si_code < 0.
1061
96a8853a
PA
10622010-09-24 Pedro Alves <pedro@codesourcery.com>
1063
1064 * objfiles.h (ALL_OBJSECTIONS): Handle breaks in the inner loop.
1065
39383a48
JB
10662010-09-22 Joel Brobecker <brobecker@adacore.com>
1067
1068 * ada-tasks.c (read_atcb): Do not compute the task ptid when
1069 debugging a core file.
1070
d31d2fc3
JK
10712010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1072
1073 Code cleanup.
1074 * objfiles.c (allocate_objfile) <objfile->name != NULL>: Remove.
1075 (free_objfile) <objfile->name != NULL>: Remove the conditional around
1076 xfree.
1077 * objfiles.h (struct objfile) <name>: New comment it is never NULL.
1078 * python/py-auto-load.c (auto_load_new_objfile) <!objfile->name>:
1079 Remove.
1080 * python/py-objfile.c (objfpy_get_filename) <obj->objfile->name>
1081 Remove the conditional.
1082 * python/py-progspace.c (pspy_get_filename) <objfile->name>: Likewise.
1083
7f6130ff
JK
10842010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1085
1086 * main.c: Include objfiles.h.
1087 (captured_main): New variable objfile. Call
1088 load_auto_scripts_for_objfile for ALL_OBJFILES.
1089
c2b0a229
JK
10902010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1091
1092 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also
1093 DW_TAG_constant.
1094
72929c62
JB
10952010-09-22 Joel Brobecker <brobecker@adacore.com>
1096
1097 * dwarf2read.c (scan_partial_symbols): Add handling of
1098 DW_TAG_constant DIEs.
1099 (add_partial_symbol, load_partial_dies, new_symbol): Likewise.
1100
496c0e1b
JB
11012010-09-22 Joel Brobecker <brobecker@adacore.com>
1102
1103 * configure.ac: Add support for --enable-gdbserver.
1104 * configure: Regenerate.
1105
ec322823
SW
11062010-09-22 Sami Wagiaalla <swagiaal@redhat.com>
1107
1108 PR C++/12028
1109 * valops.c (find_oload_champ_namespace_loop): removed incorrect
1110 'old_cleanups' reassignment.
1111
1558ab4c
JK
11122010-09-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1113
1114 * charset.c (wchar_iterate) <EILSEQ>: Return any possibly converted
1115 characters.
1116
875b4ff5
PM
11172010-09-16 Phil Muldoon <pmuldoon@redhat.com>
1118
1119 PR mi/11407
1120 * mi/mi-cmd-stack.c (list_args_or_locals): Catch exceptions from
1121 read_var_value and common_val_print and print a warning.
1122
65dedcb2
JK
11232010-09-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1124
1125 * MAINTAINERS (GLOBAL MAINTAINERS) <Jan Kratochvil>: Move the entry to
1126 keep the list in alphabetical order. Use longer e-mail address.
1127
0e780a22
TT
11282010-09-15 Tom Tromey <tromey@redhat.com>
1129
1130 * MAINTAINERS (GLOBAL MAINTAINERS): Add Jan Kratochvil.
1131
62234ccc
TT
11322010-09-15 Tom Tromey <tromey@redhat.com>
1133
1134 * charset.c (iconv_open): New define.
1135 (iconv): Likewise.
1136 (iconv_close): Likewise.
1137 (phony_iconv_open): Add "phony_" prefix.
1138 (phony_iconv_close): Likewise.
1139 (phony_iconv): Likewise.
1140 * gdb_wchar.h: Check _LIBICONV_VERSION, __STDC_ISO_10646__.
1141 Change how INTERMEDIATE_ENCODING is defined.
1142
4950bc1c
DE
11432010-09-15 Doug Evans <dje@google.com>
1144
1145 * dwarf2read.c (struct die_info): Fix comment.
1146
349126ea
AM
11472010-09-15 Alan Modra <amodra@gmail.com>
1148
1149 PR 4606
1150 * gcore.c (gcore_create_callback): Clear SEC_HAS_CONTENTS rather
1151 than setting SEC_NEVER_LOAD on sections that need not be copied.
1152
923c6a3d
TT
11532010-09-14 Tom Tromey <tromey@redhat.com>
1154
1155 * psympriv.h (add_psymbol_to_list, init_psymbol_list)
1156 (start_psymtab_common, allocate_psymtab, discard_psymtab):
1157 Declare.
1158 * symfile.h (extend_psymbol_list): Remove.
1159 (add_psymbol_to_list, init_psymbol_list, start_psymtab_common)
1160 (allocate_psymtab, discard_psymtab): Move to psympriv.h.
1161 * psymtab.c (extend_psymbol_list): Move earlier. Now static.
1162
a9e6a4bb
JK
11632010-09-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1164
1165 * dwarf2read.c (dw2_map_ada_symtabs): Remove the internal_error.
1166 Update the comment.
1167
7155d578
TT
11682010-09-14 Tom Tromey <tromey@redhat.com>
1169
1170 PR symtab/8399:
1171 * dwarf2loc.c (locexpr_describe_location_piece): Don't call error
1172 for unrecognized frame base expression.
1173
515ed532
TT
11742010-09-14 Tom Tromey <tromey@redhat.com>
1175
1176 PR exp/11803:
1177 * value.c (value_static_field): Use value_of_variable.
1178
b467f580
PM
11792010-09-14 Pierre Muller <muller@ics.u-strasbg.fr>
1180
1181 * m32r-rom.c: Replace winsock.h with winsock2.h header.
1182 * remote-m32r-sdi.c: Replace winsock.h by winsock2.h.
1183
450ca57c
SW
11842010-09-13 Sami Wagiaalla <swagiaal@redhat.com>
1185
1186 PR symtab/11992:
1187 * c-exp.y (classify_name): Check is_a_member_of_this before returning
1188 UNKNOWN_CPP_NAME.
1189
1aee7009
JB
11902010-09-13 Joel Brobecker <brobecker@adacore.com>
1191
1192 * NEWS: Add x86-lynxos to the list of platforms supported by
1193 gdbserver.
1194
5ec6ebf9
JB
11952010-09-13 Joel Brobecker <brobecker@adacore.com>
1196
1197 * NEWS: Announce GDBserver support for version 5.x of ppc-lynxos.
1198
1863c96c
TT
11992010-09-13 Tom Tromey <tromey@redhat.com>
1200
1201 * Makefile.in (HFILES_NO_SRCDIR): Add progspace.h.
1202
0c5acf93
L
12032010-09-13 H.J. Lu <hongjiu.lu@intel.com>
1204
1205 * i386-tdep.c (i386_ymm_type): Set type name to
1206 builtin_type_vec256i.
1207
1c6272a6
MS
12082010-09-12 Michael Snyder <msnyder@vmware.com>
1209
1210 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1211
e866c497
L
12122010-09-12 H.J. Lu <hongjiu.lu@intel.com>
1213
1214 * i386-tdep.c (i386_gdbarch_init): Fix typo in comments.
1215
9191d390
L
12162010-09-11 H.J. Lu <hongjiu.lu@intel.com>
1217
1218 * amd64-tdep.c (amd64_register_name): Removed.
1219 (amd64_init_abi): Don't call set_gdbarch_register_name.
1220
1221 * i386-tdep.c (i386_ymmh_regnum_p): Make it static.
1222
1223 * i386-tdep.h (i386_ymmh_regnum_p): Removed.
1224
8d4d924b
JK
12252010-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1226 Paul Bolle <pebolle@tiscali.nl>
1227
1228 Redirect also uiout and stdtarg{,err} in execute_command_to_string.
1229 * cli-logging.c (struct saved_output_files) <targerr>: New.
1230 (set_logging_redirect, pop_output_files, handle_redirections):
1231 Redirect also gdb_stdtargerr.
1232 * defs.h (struct ui_out, make_cleanup_ui_out_redirect_pop): New
1233 declarations.
1234 * event-top.c (gdb_setup_readline, gdb_disable_readline): Redirect
1235 also gdb_stdtargerr.
1236 * top.c (execute_command_to_string): Move make_cleanup_ui_file_delete
1237 to the top. Redirect also gdb_stdlog, gdb_stdtarg and gdb_stdtargerr.
1238 Use ui_out_redirect, register make_cleanup_ui_out_redirect_pop.
1239 * tui/tui-io.c (tui_setup_io): Redirect also gdb_stdtargerr.
1240 * utils.c (do_ui_out_redirect_pop, make_cleanup_ui_out_redirect_pop):
1241 New functions.
1242
3329c4b5
PM
12432010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1244
1245 * hppa-tdep.c (unwind_command): Use host_address_to_string function
1246 to display a host address.
1247 * monitor.c (monitor_read_memory): Likewise.
1248 * xtensa-tdep.c (xtensa_push_dummy_call): Likewise.
1249
5e8db398
PM
12502010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1251
1252 * coffread.c (struct coff_symbol): Change c_value type from `long' to
1253 `CORE_ADDRESS' as it might contain target addresses.
1254
37049e31
PM
12552010-09-10 Pierre Muller <muller@ics.u-strasbg.fr>
1256
1257 * alpha-mdebug-tdep.c (find_proc_desc): Use SYMBOL_VALUE_BYTES macro
1258 before cast to pointer to avoid warning.
1259
351a3e56
KB
12602010-09-09 Kevin Buettner <kevinb@redhat.com>
1261
1262 * v850-tdep.c (v850_gdbarch_init): Change the v850's `char'
1263 type to be signed.
349126ea 1264
6afafb54
UW
12652010-09-09 Ulrich Weigand <uweigand@de.ibm.com>
1266
1267 * dwarf2read.c (fixup_partial_die): Do not set dummy name for
1268 anonymous class partial DIEs.
1269
60430eff
DJ
12702010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1271
1272 * dwarf2read.c (dwarf2_compute_name): Check that the first
1273 argument is a pointer.
1274
f1078f66
DJ
12752010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1276
1277 * dwarf2read.c (read_func_scope, read_structure_type)
1278 (read_common_block): Check for a NULL return from new_symbol.
1279
82430852
JK
12802010-09-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1281
1282 * dwarf2read.c (dwarf2_read_index): Return on no SEC_HAS_CONTENTS.
1283
c767944b
DJ
12842010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1285
1286 * dwarf2read.c (read_structure_type): Move processing of
1287 fields and member functions from here...
1288 (process_structure_scope): ... to here.
1289
561d3825
DJ
12902010-09-08 Daniel Jacobowitz <dan@codesourcery.com>
1291
1292 * gnu-v3-abi.c (gnuv3_print_method_ptr): Do not use
1293 the domain type.
1294 (gnuv3_make_method_ptr): Likewise.
1295
9bd89d67
TT
12962010-09-08 Tom Tromey <tromey@redhat.com>
1297
1298 * breakpoint.c (create_breakpoint): Add missing _().
1299
1d040b0d
DE
13002010-09-08 Doug Evans <dje@google.com>
1301
1302 * dwarf2-frame.h (dwarf2_frame_build_info): Delete, unused.
1303
774b6a14
TT
13042010-09-08 Tom Tromey <tromey@redhat.com>
1305
1306 Revert:
1307 2010-09-01 Tom Tromey <tromey@redhat.com>
1308 * dwarf2read.c, gdbtypes.c, psymtab.c, symfile.h, symtab.c,
1309 symtab.h: Revert earlier change.
1310
fc956729
SW
13112010-09-09 Sami Wagiaalla <swagiaal@redhat.com>
1312
1313 * psymtab.c (add_psymbol_to_bcache): Initialize
1314 obj_section.
1315 memset psymbol.ginfo.value to 0.
1316
48f9886d
PA
13172010-09-06 Pedro Alves <pedro@codesourcery.com>
1318
1319 * infrun.c (resume): Extend comment on ignoring single-step
1320 requests on vfork parents waiting for a vfork-done.
1321
423ec54c
JK
13222010-09-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1323 Pedro Alves <pedro@codesourcery.com>
1324
1325 * corelow.c (core_open): Use target_signal_from_host if CORE_GDBARCH
1326 is NULL.
1327 * fork-child.c (startup_inferior) <resume_signal>: Use enum
1328 target_signal type.
1329 * linux-nat.c (linux_nat_resume): Use target_signal_to_host before
1330 calling strsignal. Use enum target_signal type for saved_signo.
1331 (linux_handle_extended_wait) <signo>: Use enum target_signal type.
1332 (linux_nat_wait_1): Use enum target_signal type for signo. Use
1333 target_signal_to_host before calling strsignal.
1334 * remote-m32r-sdi.c (m32r_wait, m32r_detach): Replace 0 by
1335 TARGET_SIGNAL_0.
1336
a6eb9bc8
JK
13372010-09-06 Pedro Alves <pedro@codesourcery.com>
1338 Jan Kratochvil <jan.kratochvil@redhat.com>
1339
1340 * common/signals.c (ANY): Remove.
1341 (SET): No longer use ANY.
1342
74609e71
YQ
13432010-09-06 Yao Qi <yao@codesourcery.com>
1344
1345 * infrunc(resume): When inferior is waiting_for_vfork_done,
1346 clear step and don't use displaced stepping.
1347
8464be76
DJ
13482010-09-04 Daniel Jacobowitz <dan@codesourcery.com>
1349
1350 * breakpoint.c (can_use_hardware_watchpoint): Handle the first
1351 value specially.
1352
33d62d64
JK
13532010-09-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1354
1355 Code cleanup - split print_stop_reason.
1356 * infrun.c (enum inferior_stop_reason): Remove.
1357 (print_stop_reason): Remove by splitting into ...
1358 (print_exited_reason, print_signal_exited_reason)
1359 (print_no_history_reason, print_signal_received_reason)
1360 (print_end_stepping_range_reason): ... these new functions. Update
1361 the preceding comment.
1362 (handle_inferior_event): Change the calls to print_exited_reason,
1363 print_signal_exited_reason, print_no_history_reason,
1364 print_signal_received_reason, print_end_stepping_range_reason.
1365 (handle_step_into_function, handle_step_into_function_backward):
1366 Change the calls to print_end_stepping_range_reason.
1367
14dba4b4
JK
13682010-09-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1369
1370 * breakpoint.c (save_breakpoints): Use RETURN_MASK_ALL.
1371 * cli-out.c: Include vec.h.
1372 (cli_field_fmt, cli_spaces, cli_text, cli_message, cli_flush): New
1373 variable stream, initialize it, use it.
1374 (cli_redirect): New function comment. Replace the stream and
1375 original_stream fields by the new streams field. Remove the
1376 original_stream != NULL conditional, assert error on NULL instead.
1377 (out_field_fmt, field_separator): New variable stream, initialize it, use it.
1378 (cli_out_data_ctor): Assert non-NULL stream. Replace the stream and
1379 original_stream fields by the new streams field.
1380 (cli_out_set_stream): Replace the stream field by the new streams
1381 field.
1382 * cli-out.h: Include vec.h.
1383 (ui_filep): New typedef, call DEF_VEC_P for it.
1384 (struct cli_ui_out_data): Replace the stream and original_stream
1385 fields by the new streams field.
1386 * cli/cli-logging.c (set_logging_redirect): Call ui_out_redirect with
1387 NULL first. Extend the comment.
1388 (handle_redirections): Call ui_out_redirect with output.
1389 * python/py-breakpoint.c (bppy_get_commands): Move ui_out_redirect
1390 calls outside of the TRY_CATCH block.
1391
b04bc5d4 13922010-09-03 Joel Brobecker <brobecker@adacore.com>
1393
1394 GDB 7.2 released.
1395
080db4e0
JB
13962010-09-02 Joel Brobecker <brobecker@adacore.com>
1397
1398 Back out the following change:
1399 | 2010-06-29 Hui Zhu <teawater@gmail.com>
1400 | * record.c (set_record_pic_cmdlist,
1401 | show_record_pic_cmdlist): New variables.
1402 | (set_record_pic_command,
1403 | show_record_pic_command): New functions.
1404 | (record_pic_function, record_pic_line, record_pic_enum,
1405 | set_record_pic_type, record_pic_hide_nofunction,
1406 | record_pic_hide_nosource, record_pic_hide_same): New variables.
1407 | (record_pic_fputs): New function.
1408 | (function_list, node_list, edge_list): New struct.
1409 | (function_list, node_list, edge_list): New variables.
1410 | (record_pic_cleanups, record_pic_node,
1411 | record_pic_edge, cmd_record_pic): New functions.
1412 | (_initialize_record): Add new commands for record pic.
1413
0a4f61e3
DJ
14142010-09-02 Daniel Jacobowitz <dan@codesourcery.com>
1415
1416 * config.in, configure: Regenerated.
1417 * configure.ac: Check for waitpid.
1418 * ser-pipe.c (pipe_close): Wait for the program to exit.
1419
58b61394
JK
14202010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1421
ba720883 1422 * cli/cli-logging.c: Include gdb_assert.h.
58b61394
JK
1423 (set_logging_overwrite): New function.
1424 (logging_redirect): New comment.
1425 (logging_no_redirect_file, set_logging_redirect)
1426 (pop_output_files) <logging_no_redirect_file>: New.
1427 (handle_redirections) <!logging_redirect>: New variable
1428 no_redirect_file. Remove file autoclose for tee_file_new. No longer
1429 discard cleanup for the close of former OUTPUT. Set
1430 LOGGING_NO_REDIRECT_FILE.
1431 (handle_redirections) <logging_redirect>: gdb_assert
1432 LOGGING_NO_REDIRECT_FILE.
1433 (show_logging_command) <logging_redirect handling>: Adjust messages
1434 for SAVED_FILENAME not NULL.
1435 (_initialize_cli_logging): Install set_logging_overwrite and
1436 set_logging_redirect.
1437
706774f2
JK
14382010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1439
1440 * iq2000-tdep.c (iq2000_scan_prologue): Initialize SAL.END.
1441
9a35ccf7
JK
14422010-09-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1443
1444 * Makefile.in (GDB_WARN_CFLAGS_NO_FORMAT): Convert it to the no- form.
1445 (monitor.o): Replace $(INTERNAL_WARN_CFLAGS) by $(INTERNAL_CFLAGS) and
1446 add $(GDB_WARN_CFLAGS_NO_FORMAT).
1447 (printcmd.o): Replace $(INTERNAL_CFLAGS_BASE) by $(INTERNAL_CFLAGS).
1448
ba9b2ec3
YQ
14492010-09-02 Yao Qi <yao@codesourcery.com>
1450
1451 * linux-nat.c (status_to_str): Use WTERMSIG to extract the signal
1452 number from a WIFSIGNALED status.
1453
faf68db7
TT
14542010-09-01 Tom Tromey <tromey@redhat.com>
1455
1456 * symtab.h (lookup_type_symbol): Declare.
1457 * symtab.c (lookup_symbol_in_language_full): Rename from
1458 lookup_symbol_in_language. Add 'for_type' argument.
1459 (lookup_symbol_in_language): New function.
1460 (lookup_type_symbol): Likewise.
1461 (lookup_symbol_aux): Add 'for_type' argument.
1462 (match_symbol_aux): New function.
1463 (lookup_symbol_aux_symtabs): Use expand_one_symtab_matching.
1464 (match_transparent_type): New function.
1465 (basic_lookup_transparent_type): Use expand_one_symtab_matching.
1466 * symfile.h (struct quick_symbol_functions)
1467 <pre_expand_symtabs_matching>: Remove.
1468 <expand_one_symtab_matching>: New field.
1469 * psymtab.c (expand_one_symtab_matching_psymtabs): New function.
1470 (pre_expand_symtabs_matching_psymtabs): Remove.
1471 (psym_functions): Update.
1472 * gdbtypes.c (lookup_typename): Use lookup_type_symbol.
1473 * dwarf2read.c (dw2_lookup_symbol): Update comment.
1474 (dw2_pre_expand_symtabs_matching): Remove.
1475 (dw2_expand_one_symtab_matching): New function.
1476 (dwarf2_gdb_index_functions): Update.
1477
248c9dbc
JB
14782010-09-01 Joel Brobecker <brobecker@adacore.com>
1479
1480 * NEWS: Add entry announcing GDBserver support on powerpc-lynxos.
1481
f75d858b
MK
14822010-09-01 Marc Khouzam <marc.khouzam@ericsson.com>
1483
1484 * mi/mi-main.c (mi_cmd_list_target_features): Add `reverse'
1485 as a feature reported by -list-target-features.
1486
0482b03b
JB
14872010-09-01 Joel Brobecker <brobecker@adacore.com>
1488
1489 * features/Makefile (WHICH): Add rs6000/powerpc-32.
1490 (powerpc-32.o, powerpc-32.c): New rules.
1491 (clean): Also remove powerpc-32.c.
1492 * regformats/rs6000/powerpc-32.dat: Generate.
1493
710e1a31
SW
14942010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1495
1496 * symfile.c (reread_symbols): Use psymbol_bcache_free, and
1497 psymbol_bcache_init.
1498 * psymtab.h (psymbol_bcache_init): New function prototype.
1499 (psymbol_bcache_free): New function prototype.
1500 (psymbol_bcache_get_bcache): New function prototype.
1501 * psymtab.c (psymbol_bcache_init): New function.
1502 (psymbol_bcache_free): New function.
1503 (psymbol_bcache_full): New function.
1504 (psymbol_bcache_get_bcache): New function.
1505 (add_psymbol_to_bcache): use psymbol_bcache_full.
1506 * objfiles.h (psymbol_cache): Change type of psymbol_cache to
1507 psymbol_bcache.
1508 * symmisc.c (print_symbol_bcache_statistics): Updated.
1509 (print_objfile_statistics): Updated.
1510 * objfiles.c (allocate_objfile): Use psymbol_bcache_init to initialize
1511 psymbol_cache.
1512 (free_objfile): Use psymbol_bcache_free.
1513
64382290
TT
15142010-08-31 Tom Tromey <tromey@redhat.com>
1515
1516 PR c++/11961:
1517 * dwarf2read.c (new_symbol_full) <DW_TAG_template_type_param>:
1518 Don't set TYPE_NAME on the type.
1519
8bbed405
MS
15202010-08-31 Michael Snyder <msnyder@msnyder-server.eng.vmware.com>
1521
1522 * infrun.c (set_exec_direction_func): Error out if target does not
1523 support reverse execution.
1524
06253dd3
JK
15252010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1526
1527 Make linux_get_siginfo_type `type *' unique.
1528 * linux-tdep.c (linux_gdbarch_data_handle, struct linux_gdbarch_data)
1529 (init_linux_gdbarch_data, get_linux_gdbarch_data): New.
1530 (linux_get_siginfo_type): New variable linux_gdbarch_data. Initialize
1531 it. Use linux_gdbarch_data->siginfo_type as a persistent storage.
1532 (_initialize_linux_tdep): New.
1533
b8edc417
JK
15342010-08-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1535
1536 Code cleanup.
1537 * defs.h (find_memory_region_ftype): New typedef.
1538 (exec_set_find_memory_regions): Use it.
1539 * exec.c (exec_set_find_memory_regions): Use find_memory_region_ftype.
1540 * fbsd-nat.c (fbsd_find_memory_regions): Likewise.
1541 * gcore.c (objfile_find_memory_regions): Likewise.
1542 * gnu-nat.c (gnu_find_memory_regions): Likewise.
1543 * linux-nat.c (linux_nat_find_memory_regions): Likewise.
1544 * procfs.c (iterate_over_mappings_cb_ftype): Remove.
1545 (iterate_over_mappings): Rename iterate_over_mappings_cb_ftype to
1546 find_memory_region_ftype.
1547 (insert_dbx_link_bpt_in_region): Likewise.
1548 (iterate_over_mappings): Likewise. Drop the comment part about the
1549 function prototype.
1550 (find_memory_regions_callback): Use find_memory_region_ftype.
1551 (proc_find_memory_regions): Likewise.
1552 (info_mappings_callback): Rename iterate_over_mappings_cb_ftype to
1553 find_memory_region_ftype.
1554 * target.c (dummy_find_memory_regions): Use find_memory_region_ftype.
1555 * target.h (struct target_ops) <to_find_memory_regions>: Likewise.
1556
cbd70537
SW
15572010-08-31 Sami Wagiaalla <swagiaal@redhat.com>
1558
1559 * psymtab.c (add_psymbol_to_bcache): Remove 'static' from
1560 'static partial_symbol psymbol'.
1561 (psymbol_hash): New function.
1562 (psymbol_compare): New function.
1563 * bcache.c (hash_continue): New.
1564 (hash): Use hash_continue.
1565 * bcache.c: Add hash_function and compare_function
1566 pointers to bcache struct.
1567 (bcache_full): Use bcache->hash_function, and
1568 bcache->compare_function.
1569 (bcache_compare): New function.
1570 (bcache_xmalloc): Take hash_function and
1571 compare_function arguments and initialize the
1572 bcach's pointers.
1573 Updated comment.
1574 * objfiles.c (allocate_objfile): Updated.
1575 * symfile.c (reread_symbols): Updated.
1576 * python/py-type.c (typy_richcompare): Updated.
1577
03f17ccf
TT
15782010-08-30 Andre Poenitz <andre.poenitz@nokia.com>
1579 Tom Tromey <tromey@redhat.com>
1580
1581 PR python/11792:
1582 * python/py-value.c (valpy_get_dynamic_type): New function.
1583 (value_object_getset): Add "dynamic_type".
1584 (valpy_get_type): Fail on error.
1585
25b41d01
YQ
15862010-08-30 Yao Qi <yao@codesourcery.com>
1587
1588 * arm-linux-tdep.c (arm_linux_sigreturn_return_addr): New.
1589 (arm_linux_syscall_next_pc): New.
1590 (arm_linux_copy_svc): Use arm_linux_sigreturn_return_addr instead.
1591 (arm_linux_init_abi): Initialize syscall_next_pc.
1592 * arm-tdep.c (thumb_get_next_pc_raw): Get next pc of SWI in Thumb mode.
1593 (arm_get_next_pc_raw): Get next pc of SWI in ARM mode.
1594 * arm-tdep.h (struct gdbarch_tdep): Add a function pointer syscall_next_pc.
1595 Declare arm_frame_is_thumb.
1596
5760d0ab
JK
15972010-08-30 Jan Kratochvil <jan.kratochvil@redhat.com>
1598
1599 Code cleanup.
1600 * breakpoint.c (bpstat_alloc): Remove unused prototype.
1601 (bpstat_alloc): Change parameters cbs to bs_link_pointer. Adjust the
1602 code.
1603 (bpstat_stop_status): Change root_bs into bs_head and bs_link. Adjust
1604 calls of bpstat_alloc. Remove explicit bs chain termination.
1605
46a96992
JK
16062010-08-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1607
1608 Code cleanup.
1609 * linux-nat.c (pull_pid_from_list): Rename status to statusp.
1610 (my_waitpid): Likewise.
1611
36374493
DE
16122010-08-27 Doug Evans <dje@google.com>
1613
1614 * dwarf2read.c (dw2_require_line_header): Read from .debug_types
1615 as appropriate.
1616
8b93c54c
TT
16172010-08-27 Tom Tromey <tromey@redhat.com>
1618
1619 * dwarf2read.c (dwarf2_attach_fields_to_type): Don't set
1620 TYPE_FIELD_IGNORE_BITS.
1621
16be1145
DE
16222010-08-27 Doug Evans <dje@google.com>
1623
1624 * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
1625 the order they're defined in. munmap .debug_types buffer.
1626
e254ef6a
DE
16272010-08-26 Doug Evans <dje@google.com>
1628
1629 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.
1630 (dw2_forget_cached_source_info): Rename local cu to per_cu.
1631 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching): Ditto.
1632 (dw2_print_stats, dw2_expand_all_symtabs): Ditto.
1633 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file): Ditto.
1634 (dw2_find_symbol_file, dw2_expand_symtabs_matching): Ditto.
1635 (dw2_map_symbol_filenames, dwarf2_initialize_objfile): Ditto.
1636 (dwarf2_free_objfile, write_one_signatured_type): Ditto.
1637 (write_psymtabs_to_index): Ditto.
1638
ae53ffa4
PA
16392010-08-26 Pedro Alves <pedro@codesourcery.com>
1640
1641 * NEWS: Mention libthread_db debugging with core files.
1642
c6da4cef
DE
16432010-08-26 Doug Evans <dje@google.com>
1644
1645 * dwarf2read.c (dwarf2_build_include_psymtabs): Remove unnecessary
1646 forward decl. Pass pst->dirname to dwarf_decode_lines.
1647 (psymtab_include_file_name): New function.
1648 (dwarf_decode_lines): Call it. Update comments.
1649
cd02d79d
PA
16502010-08-25 Pedro Alves <pedro@codesourcery.com>
1651
1652 * dwarf2read.c (inherit_abstract_dies): Handle origin die's
1653 compilation unit being different from target die's.
1654
673bfd45
DE
16552010-08-24 Doug Evans <dje@google.com>
1656
1657 PR symtab/11942
1658 * dwarf2read.c (dwarf2_per_objfile): New members debug_info_type_hash,
1659 debug_types_type_hash.
1660 (dwarf2_cu, dwarf2_per_cu_data): Delete member type_hash.
1661 All uses updated.
1662 (lookup_die_type): Renamed from tag_type_to_tag. First look in
1663 appropriate type_hash table. All callers updated.
1664 (allocate_signatured_type_table): Renamed from
1665 allocate_signatured_type_hash_table. All callers updated.
1666 (create_signatured_type_table_from_index): Renamed from
1667 create_signatured_type_hash_from_index. All callers updated.
1668 (read_die_type): Add comment. Move actual reading to ...
1669 (read_die_type_1): ... here. New function.
1670 (follow_die_ref_or_sig): Tweak comment.
1671 (set_die_type): Rewrite to use appropriate choice of
1672 debug_info_type_hash or debug_types_type_hash.
1673 (get_die_type_at_offset): New function.
1674 (get_die_type): Call it.
1675
e8fd65ef
JK
16762010-08-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1677
1678 * python/py-type.c (typy_richcompare): Initialize worklist.
1679
9779414d
DJ
16802010-08-24 Daniel Jacobowitz <dan@codesourcery.com>
1681 Kazu Hirata <kazu@codesourcery.com>
1682 Jonathan Larmour <jifl@eCosCentric.com>
1683
1684 * arm-tdep.c: Include features/arm-with-m.c.
1685 (arm_psr_thumb_bit): New. Update all uses of CPSR_T to
1686 call this function.
1687 (arm_pc_is_thumb): Add a gdbarch argument. Update all callers.
1688 Check is_m after force-mode.
1689 (arm_gdbarch_init): Check the binary before the target description.
1690 Add check for M profile attribute. If we have an M-profile device,
1691 but no target register description, use arm-with-m. Recognize the
1692 new org.gnu.gdb.arm.m-profile feature and its xpsr register.
1693 (_initialize_arm_tdep): Call initialize_tdesc_arm_with_m.
1694 * arm-tdep.h (XPSR_T): Define.
1695 (struct gdbarch_tdep): Add is_m member.
1696 * features/arm-m-profile.xml, features/arm-with-m.c,
1697 features/arm-with-m.xml: New files.
1698
9dc481d3
DE
16992010-08-23 Doug Evans <dje@google.com>
1700
1701 * dwarf2read.c (read_structure_type): Add comment.
1702 (read_enumeration_type): Add comment.
1703 (process_enumeration_scope): Move definition of some locals
1704 closer to their use.
1705 (read_namespace_type): Add comment.
e71ec853 1706 (set_die_type): Fix typo in comment.
9dc481d3 1707
f9ffd4bb
TT
17082010-08-23 Tom Tromey <tromey@redhat.com>
1709
1710 PR python/11145:
1711 * python/py-value.c: Include expression.h.
1712 (valpy_do_cast): New function.
1713 (valpy_cast): Use it.
1714 (valpy_dynamic_cast): New function.
1715 (valpy_reinterpret_cast): Likewise.
1716 (value_object_methods): Add dynamic_cast, reinterpret_cast.
1717
96f73ba5
TT
17182010-08-23 Tom Tromey <tromey@redhat.com>
1719
1720 PR python/11391:
1721 * python/py-value.c (valpy_nonzero): Don't throw error for other
1722 Value types.
1723
d839c8a4
TT
17242010-08-23 Tom Tromey <tromey@redhat.com>
1725
1726 PR python/10676:
1727 * python/py-type.c: Include bcache.h, vec.h.
1728 (struct type_equality_entry): New.
1729 (compare_strings): New function.
1730 (check_types_equal): Likewise.
1731 (check_types_worklist): Likewise.
1732 (typy_richcompare): Likewise.
1733 (type_object_type): Set tp_richcompare field.
1734
05d0e1e7
TT
17352010-08-23 Tom Tromey <tromey@redhat.com>
1736
1737 PR python/10953:
1738 * python/py-type.c (typy_fields): Call check_typedef.
1739 (typy_template_argument): Add TRY_CATCH.
1740
702c2711
TT
17412010-08-23 Tom Tromey <tromey@redhat.com>
1742
1743 PR python/11915:
1744 * python/py-type.c (typy_array): New function.
1745 (type_object_methods): Add "array".
1746
4a532131
PA
17472010-08-20 Pedro Alves <pedro@codesourcery.com>
1748
1749 * python/python.c: Include "serial.h".
1750 (gdbpy_event_fds): Change type to `struct serial *' a array from
1751 int array.
1752 (gdbpy_run_events): Change parameters. Use serial_readchar in
1753 place of read.
1754 (gdbpy_post_event): Use serial_write in place of write.
1755 (gdbpy_initialize_events): Use serial_pipe instead of pipe, and
1756 serial_async in place of add_file_handler.
1757
58f07bae
PA
17582010-08-20 Pedro Alves <pedro@codesourcery.com>
1759
1760 * serial.h (gdb_pipe, serial_pipe): Declare.
1761 * serial.c (serial_interface_lookup): Take a const char pointer.
1762 (serial_fdopen): Rename to ...
1763 (serial_fdopen_ops): ... this. Add an OPS parameter and use it.
1764 Call the OPS' fdopen function if there is one.
1765 (serial_fdopen): Rewrite as wrapper to serial_fdopen_ops.
1766 (serial_pipe): New.
1767 (struct serial_ops) <fdopen>: New field.
1768
1769 * ser-mingw.c (free_pipe_state):
1770 (free_pipe_state): Close output on non-pex pipes.
1771 (pipe_windows_fdopen): New.
1772 (gdb_pipe): New.
1773 (_initialize_ser_windows): Register pipe_windows_fdopen.
1774 * ser-go32.c (gdb_pipe): New.
1775 * ser-pipe.c (pipe_close): Close file descriptor even if there's
1776 no state pointer.
1777 (pipe_ops): Delete.
1778 (gdb_pipe): New.
1779
3da10d80
KS
17802010-08-20 Keith Seitz <keiths@redhat.com>
1781
1782 PR symtab/11465:
889bf7c5 1783 * dwarf2read.c (struct delayed_method_info): New struct.
3da10d80
KS
1784 (struct dwarf2_cu): Add vector method_list.
1785 (scan_partial_symbols): Count methods for union, class, structure,
1786 and interface types.
1787 (add_to_method_list): New function.
1788 (free_delayed_list): New function.
1789 (compute_delayed_physnames): New function.
1790 (process_full_comp_unit): Make a cleanup for the CU's delayed
1791 physname list, compute the delayed physnames, and free the
1792 the list.
1793 (dwarf2_add_member_fn): For C++ and Java, delay the computation
1794 of the physname until after the CU is read.
1795
1796 * dwarf2read.c (read_structure_type): Check if the current
1797 DIE's type was already completed after dwarf2_full_name
1798 was called.
889bf7c5 1799
ca11e899
SS
18002010-08-19 Stan Shebs <stan@codesourcery.com>
1801
1802 * NEWS: Mention some additional changes.
1803
4d2dc20a
TT
18042010-08-19 Tom Tromey <tromey@redhat.com>
1805
1806 * Makefile.in (install-python): Add DESTDIR.
1807
d30f5e1f
DE
18082010-08-19 Doug Evans <dje@google.com>
1809
1810 PR exp/11926
1811 * parser-defs.h (parse_float, parse_c_float): Declare.
1812 * parse.c (parse_float, parse_c_float): New function.
1813 * c-exp.y (parse_number): Call parse_c_float.
1814 * objc-exp.y (parse_number): Ditto.
1815 * p-exp.y (parse_number): Ditto. Use ANSI/ISO-style definition.
1816 * jv-exp.y (parse_number): Call parse_float, fix suffix handling.
1817
2837d59e
JB
18182010-08-19 Joel Brobecker <brobecker@adacore.com>
1819
1820 * psymtab.c (map_symbol_filenames_psymtab): Call FUN with
1821 the arguments in the correct order.
1822 * symtab.c (maybe_add_partial_symtab_filename): Declare
1823 the arguments in the correct order.
1824
35633fef
JK
18252010-08-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1826
1827 * varobj.c (varobj_create): Replace variable old_fi with old_id,
1828 initialize it by null_frame_id, wrap its usage by get_frame_id,
1829 frame_id_p and frame_find_by_id.
1830
94f7449c
TT
18312010-08-18 Tom Tromey <tromey@redhat.com>
1832
1833 PR python/11900:
1834 * configure: Rebuild.
1835 * configure.ac: Add install-python to CONFIG_INSTALL.
1836 * Makefile.in (install-python): New.
1837
f3574227
DE
18382010-08-18 Doug Evans <dje@google.com>
1839
1840 * gdb_assert.h (gdb_assert_not_reached): New macro.
1841 (gdb_assert_fail): Fix typo in comment.
1842 * avr-tdep.c (avr_return_value): Use gdb_assert_not_reached instead of
1843 gdb_assert (0).
1844 * darwin-nat.c (darwin_check_new_threads): Ditto.
1845 * dwarf2read.c (dwarf2_get_section_info): Ditto.
1846 (munmap_section_buffer): Ditto.
1847 * m32c-tdep.c (make_types): Ditto.
1848 (m32c_decode_srcdest4, m32c_decode_sd23, m32c_frame_base): Ditto.
1849 * macroexp.c (get_character_constant): Ditto.
1850 (get_string_literal): Ditto.
1851 * mep-tdep.c (mep_pseudo_cr_size): Ditto.
1852 (mep_pseudo_cr_index, mep_register_type): Ditto.
1853 (mep_pseudo_register_read, mep_pseudo_register_write): Ditto.
1854 (mep_get_insn, mep_analyze_prologue): Ditto.
1855 * objfiles.c (qsort_cmp): Ditto.
1856 * prologue-value.c (pv_is_identical): Ditto.
1857 * record.c (record_get_loc): Ditto.
1858 * value.c (value_static_field): Ditto.
1859 * xtensa-tdep.c (call0_track_op): Ditto.
1860
c92817ce
TT
18612010-08-18 Tom Tromey <tromey@redhat.com>
1862
1863 PR symtab/11919:
1864 * gdbtypes.c (lookup_struct_elt_type): Clean up error emission.
1865 * parse.c (parse_field_expression): Use RETURN_MASK_ERROR. Move
1866 name-copying lower. Document exception behavior.
1867 * completer.c (expression_completer): Catch exceptions from
1868 parse_field_expression.
1869
856d6f99
PA
18702010-08-18 Pedro Alves <pedro@codesourcery.com>
1871
1872 PR corefile/8210
1873
1874 * linux-thread-db.c (add_thread_db_info): Skip glibc/BZ5983
1875 workaround on core files.
1876 (try_thread_db_load_1): Don't try enabling thread event reporting
1877 on core files.
1878 (thread_db_load): Allow thread_db on core files.
1879 (attach_thread): Don't check thread signals on core files, nor try
1880 really attaching to the thread, nor enabling thread event event
1881 reporting.
1882 (thread_db_detach): Don't try disabing thread event reporting or
1883 removing thread event breakpoints when debugging a core file.
1884 (find_new_threads_callback): Don't try enabling thread event
1885 reporting on core files.
1886 (thread_db_find_new_threads_2): Don't look for a stopped lwp when
1887 debugging a core file.
1888 (thread_db_find_new_threads): Don't update thread
1889 cores (processors) when debugging a core (dump).
1890
261b8d08
PA
18912010-08-18 Pedro Alves <pedro@codesourcery.com>
1892
1893 PR corefile/8210
1894
1895 * corelow.c (add_to_thread_list): Don't use
1896 gdbarch_core_reg_section_encodes_pid. Use bfd_core_file_pid.
1897 (get_core_register_section): Don't use
1898 gdbarch_core_reg_section_encodes_pid.
1899
1900 * gdbarch.sh (core_reg_section_encodes_pid): Delete.
1901 * gdbarch.h, gdbarch.c: Regenerate.
1902 * amd64-sol2-tdep.c (amd64_sol2_init_abi): Don't set
1903 gdbarch_core_reg_section_encodes_pid.
1904 * i386-sol2-tdep.c (i386_sol2_init_abi): Ditto.
1905 * sparc-sol2-tdep.c (sparc32_sol2_init_abi): Ditto.
1906 * sparc64-sol2-tdep.c (sparc64_sol2_init_abi): Ditto.
1907
f9b42018
YQ
19082010-08-18 Yao Qi <yao@codesourcery.com>
1909
1910 * MAINTAINERS : Add myself under Write After Approval.
1911
def98928
TT
19122010-08-17 Tom Tromey <tromey@redhat.com>
1913
1914 * NEWS: Mention template parameter support.
1915
0807b50c
PA
19162010-08-17 Pedro Alves <pedro@codesourcery.com>
1917
1918 PR breakpoints/11371
1919
1920 * breakpoint.c (decref_bp_location): Assert the reference count is
1921 sane.
1922
f431efe5
PA
19232010-08-17 Pedro Alves <pedro@codesourcery.com>
1924
1925 PR breakpoints/11371
1926
1927 * breakpoint.c (breakpoint_init_inferior): Decrement the
1928 location's reference count instead of deleting right away.
1929 (bpstat_free): Decrement the location's reference count. Make
1930 static.
1931 (bpstat_copy): Increment the location's reference count.
1932 (bpstat_find_breakpoint): Adjust.
1933 (bpstat_num): Adjust.
1934 (print_it_typical): Adjust. Use the breakpoint pointer in the
1935 bpstat instead of the location's owner.
1936 (bpstat_alloc): Remove const qualifier from the 'bl' parameter.
1937 Adjust to record the location's owner in the bpstat.
1938 (watchpoint_check): Use the breakpoint pointer in the bpstat
1939 instead of the location's owner.
1940 (bpstat_check_breakpoint_conditions): Don't handle
1941 bp_watchpoint_scope here. Use the breakpoint pointer in the
1942 bpstat instead of the location's owner.
1943 (bpstat_stop_status): Defer inferior function calls to after
1944 building the bpstat list. Handle bp_watchpoint_scope here. Use
1945 the breakpoint pointer in the bpstat instead of the location's
1946 owner.
1947 (bpstat_what): Use the breakpoint pointer in the bpstat instead of
1948 the location's owner.
1949 (free_bp_location): Don't walk bpstats clearing locations.
1950 (incref_bp_location): New.
1951 (decref_bp_location): New.
1952 (breakpoint_auto_delete): Use the breakpoint pointer in the bpstat
1953 instead of the location's owner.
1954 (update_global_location_list): Clear the location's owner, and
1955 decrement the location's reference count instead of deleting it
1956 right away.
1957 (breakpoint_retire_moribund): Decrement the location's reference
1958 count instead of deleting it right away.
1959 (bpstat_remove_bp_location): Delete.
1960 (bpstat_remove_breakpoint): New.
1961 (bpstat_remove_bp_location_callback): Delete.
1962 (bpstat_remove_breakpoint_callback): New.
1963 (delete_breakpoint): Iterate over all threads' stop_bpstat's
1964 clearing references to the breakpoint that is being deleted.
1965
1966 * breakpoint.h (struct bp_location) <refc>: New field.
1967 <owner>: Update comments.
1968 (bpstat_free): Delete declaration.
1969 (struct bpstats): Change the type of the breakpoint_at field to
1970 struct breakpoint point, from struct bp_location pointer. Add new
1971 field bp_location_at.
1972
14c0d4e1
TT
19732010-08-16 Tom Tromey <tromey@redhat.com>
1974
1975 * NEWS: Fix typo.
1976
b56df873
TT
19772010-08-16 Tom Tromey <tromey@redhat.com>
1978
1979 * NEWS: Mention watch -location.
1980
d63d0675
JK
19812010-08-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1982
1983 * breakpoint.c (update_watchpoint): Add source empty line. Prefer
1984 EXP_STRING_REPARSE to EXP_STRING.
1985 (watch_command_1): Set also EXP_STRING_REPARSE.
1986 (delete_breakpoint): Free also EXP_STRING_REPARSE.
1987 * breakpoint.h (struct breakpoint): New field exp_string_reparse.
1988 Update comment for exp_string.
1989
06a64a0b
TT
19902010-08-16 Tom Tromey <tromey@redhat.com>
1991
1992 * value.c (release_value): Clear 'next' pointer.
1993 * breakpoint.c (watch_command_1): Add 'just_location' argument.
1994 (watch_command_wrapper): Update.
1995 (watch_maybe_just_location): New function.
1996 (watch_command): Update.
1997 (rwatch_command_wrapper): Update.
1998 (rwatch_command): Update.
1999 (awatch_command_wrapper): Update.
2000 (awatch_command): Update.
2001 (check_for_argument): New function.
2002 (_initialize_breakpoint): Update help text.
2003
f96b8fa0
UW
20042010-08-14 Ulrich Weigand <uweigand@de.ibm.com>
2005
2006 * arm-tdep.c (arm_push_dummy_call): Handle pointers to
2007 typedef'ed function types correctly.
2008
4eb54052
TT
20092010-08-13 Tom Tromey <tromey@redhat.com>
2010
2011 * python/python-internal.h (gdbpy_get_hook_function): Don't
2012 declare.
2013
44be957e
JK
20142010-08-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2015
ba720883 2016 * cli/cli-logging.c (logging_overwrite, logging_redirect): Make them
44be957e
JK
2017 static.
2018
76d8b686
KW
20192010-08-13 Ken Werner <ken.werner@de.ibm.com>
2020
2021 * python/python.c (gdbpy_solib_name): Remove the const qualifier of
2022 the format strings to be compatible with Python 2.4.
2023
8dedea02
VP
20242010-08-13 Vladimir Prus <vladimir@codesourcery.com>
2025
2026 Easier and more stubborn MI memory read commands.
2027
2028 * mi/mi-cmds.c (mi_cmds): Register data-read-memory-bytes
2029 and data-write-memory-bytes.
2030 * mi/mi-cmds.h (mi_cmd_data_read_memory_bytes)
2031 (mi_cmd_data_write_memory_bytes): New.
2032 * mi/mi-main.c (mi_cmd_data_read_memory): Use regular target_read.
2033 (mi_cmd_data_read_memory_bytes, mi_cmd_data_write_memory_bytes):
2034 New.
2035 (mi_cmd_list_features): Add "data-read-memory-bytes" feature.
2036 * target.c (target_read_until_error): Remove.
2037 (read_whatever_is_readable, free_memory_read_result_vector)
2038 (read_memory_robust): New.
2039 * target.h (target_read_until_error): Remove.
2040 (struct memory_read_result, free_memory_read_result_vector)
2041 (read_memory_robust): New.
2042
1d9ec526
HZ
20432010-08-13 Hui Zhu <teawater@gmail.com>
2044
2045 * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
2046 (read_comp_unit): Initialize back_to.
2047
98bfdba5
PA
20482010-08-12 Daniel Jacobowitz <dan@codesourcery.com>
2049 Pedro Alves <pedro@codesourcery.com>
2050
2051 * dwarf2read.c: Include "c-lang.h" and "valprint.h".
2052 (struct dwarf2_per_objfile) <reading_partial_symbols>: New field.
2053 (struct partial_die_info) <has_template_arguments>: New field.
2054 <num_attrs>: Change type to unsigned char.
2055 <building_fullname>: New field.
2056 (dwarf2_build_psymtabs_hard): Set reading_partial_symbols. Only
2057 allocate a CU if we don't have one already. Add a cleanup for the
2058 CU.
2059 (partial_die_full_name): Handle template arguments not in
2060 DW_AT_name.
2061 (dwarf2_psymtab_to_symtab): Clear reading_partial_symbols.
2062 (load_full_comp_unit): Only allocate a CU if we don't have one
2063 already.
2064 (do_ui_file_peek_last): New.
2065 (dwarf2_compute_name): Handle template parameters not in
2066 DW_AT_name.
2067 (read_comp_unit): Read and free abbrevs if not read yet.
2068 (load_partial_dies): Handle template arguments not in DW_AT_name.
2069 (find_partial_die): If we have a CU, but no a partial dies yet,
2070 also read in the CU.
2071 (dwarf2_const_value_attr): New, abstracted out from
2072 dwarf2_const_value.
2073 (dwarf2_const_value, dwarf2_const_value_data): Adjust to use
2074 dwarf2_const_value_attr.
2075 (determine_prefix): Detect and break loops created by RCVT's debug
2076 info.
2077 (maybe_queue_comp_unit): Bail out early if reading partial
2078 symbols.
2079 (follow_die_offset): Load full CU if we have no dies.
2080 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Make public.
2081 * dwarf2loc.h (dwarf2_evaluate_loc_desc): Declare.
2082
ca5c20b6 20832010-08-11 Tom Tromey <tromey@redhat.com>
889bf7c5 2084 Phil Muldoon <pmuldoon@redhat.com>
ca5c20b6
PM
2085
2086 * python/python.c (gdbpy_run_events): New function.
2087 (gdbpy_post_event): Likewise.
2088 (gdbpy_initialize_events): Likewise.
2089 (_initialize_python): Call gdbpy_initialize_events.
2090
7346b668
KW
20912010-08-11 Ken Werner <ken.werner@de.ibm.com>
2092
2093 * gdb/valarith.c (vector_binop): New function.
2094 (scalar_binop): Likewise.
2095 (value_binop): Call scalar_binop or vector_binop depending on the types.
2096 * gdb/eval.c (ptrmath_type_p): Return 0 in case of TYPE_VECTOR.
2097 (evaluate_subexp_with_coercion): Add vector check to not convert vectors
2098 to pointers.
2099 * gdb/value.c (coerce_array): Add vector check to not coerce vectors.
2100
62183e15
TT
21012010-08-11 Brad Roberts <braddr@puremagic.com>
2102
2103 * d-lang.c (extract_identifiers): Handle multiple digits.
2104
39d7b0e2
JK
21052010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2106
2107 Code cleanup.
2108 * dummy-frame.c (dummy_frame_unwinder): Remove its static qualifier.
2109 Rename to dummy_frame_unwind.
2110 (dummy_frame_unwind): Remove.
2111 * dummy-frame.h (dummy_frame_unwind): Reference directly the struct.
2112 * frame-unwind.c (frame_unwind_init): Use address of
2113 dummy_frame_unwind and inline_frame_unwind.
2114 * frame.c (create_sentinel_frame): Use address of
2115 sentinel_frame_unwind.
2116 * inline-frame.c (inline_frame_unwinder): Rename to
2117 inline_frame_unwind.
2118 (inline_frame_unwind): Remove.
2119 * inline-frame.h (inline_frame_unwind): Reference directly the struct.
2120 * sentinel-frame.c (sentinel_frame_unwinder): Rename to
2121 sentinel_frame_unwind.
2122 (sentinel_frame_unwind): Remove.
2123 * sentinel-frame.h (sentinel_frame_unwind): Reference directly the
2124 struct.
2125
9f9a8002
JK
21262010-08-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2127
2128 Code cleanup.
2129 * frame-unwind.c (frame_unwind_find_by_frame): Remove the return type
2130 and returned value. New comment from frame-unwind.h.
2131 * frame-unwind.h (frame_unwind_find_by_frame): Remove the return type.
2132 Extend the comment.
2133 * frame.c (get_frame_id, frame_unwind_register_value)
2134 (create_new_frame, get_prev_frame_1, frame_unwinder_is)
2135 (get_frame_type, frame_unwind_arch): Do not use the return value of
2136 frame_unwind_find_by_frame.
2137
cb2e07a6 21382010-08-11 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5 2139 Thiago Jung Bauermann <bauerman@br.ibm.com>
cb2e07a6
PM
2140 Tom Tromey <tromey@redhat.com>
2141
2142 * python/python.c (gdbpy_solib_address): New function.
2143 (gdbpy_decode_line): Likewise.
2144
c29c521f
TT
21452010-08-10 Tom Tromey <tromey@redhat.com>
2146
2147 Revert gdb-add-index addition:
2148 * Makefile.in (install-only): Don't install gdb-add-index.
2149 * gdb-add-index.sh: Remove.
2150
0c012db1
KB
21512010-08-09 Kevin Buettner <kevinb@redhat.com>
2152
2153 * remote-sim.c (gdbsim_xfer_inferior_memory): Replace
2154 `target_has_execution' check with `to_has_memory' check.
2155 (gdbsim_has_all_memory, gdbsim_has_memory): New functions.
2156 (init_gdbsym_ops): Initialize relevant fields of `gdbsim_ops'
2157 with `gdbsim_has_all_memory' and `gdbsim_has_memory'.
2158
db04efe6
KB
21592010-08-09 Kevin Buettner <kevinb@redhat.com>
2160
2161 * remote-sim.c (program_loaded, gdbsim_desc, remote_sim_ptid)
2162 (resume_siggnal, resume_step): Move these static globals...
2163 (struct sim_inferior_data): ...into this new struct.
2164 (sim_inferior_data_key, next_pid, sim_argv, gdbsim_is_open):
2165 New static globals.
2166 (gdb_callback, callbacks_initialized): Move these globals to
2167 a point earlier in the file.
2168 (check_for_duplicate_sim_descriptor, get_sim_inferior_data)
2169 (get_sim_inferior_data_by_ptid, sim_inferior_data_cleanup)
2170 (gdbsim_close_inferior, gdbsim_resume_inferior)
2171 (gdbsim_stop_inferior): New functions.
2172 (SIM_INSTANCE_NOT_NEEDED, SIM_INSTANCE_NEEDED, INITIAL_PID):
2173 New constants.
2174 (gdbsim_fetch_register, gdbsim_store_register, gdbsim_load)
2175 (gdbsim_create_inferior, gdbsim_open, gdbsim_close, gdbsim_resume)
2176 (gdbsim_stop, gdbsim_cntrl_c, gdbsim_wait)
2177 (gdbsim_xfer_inferior_memory, gdbsim_files_info)
2178 (gdbsim_mourn_inferior, simulator_command, gdbsim_thread_alive,
2179 (gdbsim_pid_to_str): Invoke `get_sim_inferior_data' to set
2180 new local variable `sim_data' in each of these functions. Use
2181 `sim_data' to reference former globals `program_loaded',
2182 `gdbsim_desc', `remote_sim_ptid', `resume_siggnal', and
2183 `resume_step'.
2184 (gdbsim_open): Remove local variable `argv'. Put results of call
2185 to `gdb_buildargv' in `sim_argv' rather than in `argv'. Don't
2186 make a cleanup for it. Free it though when a sim instance cannot
2187 be obtained.
2188 (gdbsim_close): Free sim_argv and null it out as appropriate.
2189 Close sim instances in all inferiors.
2190 (gdbsim_cntrl_c): Stop all inferiors.
2191 (gdbsim_wait):
2192 (_initialize_remote_sim): Initialize `sim_inferior_data_key'.
2193
e37fd15a
SW
21942010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2195
2196 * dwarf2read.c (new_symbol): Add symbol to variable list at end of
2197 function after symbol construction is complete.
2198 Do the same for template symbol addition to template_symbols list.
2199
45c58896
SW
22002010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2201
2202 * symtab.c (symbol_get_demangled_name): Remove assertion and
2203 return NULL when language_specific.cplus_specific is not initialized.
2204 * stabsread.c (define_symbol): Set the name before calling
2205 cp_scan_for_anonymous_namespaces.
2206
33e5013e
SW
22072010-08-09 Sami Wagiaalla <swagiaal@redhat.com>
2208
2209 * symtab.h: Renamed SYMBOL_INIT_LANGUAGE_SPECIFIC to
2210 SYMBOL_SET_LANGUAGE.
2211 (symbol_init_language_specific): Renamed to symbol_set_language.
2212 * symtab.c (symbol_init_language_specific): Removed redundant check
2213 for language_cplus.
2214 Renamed to symbol_set_language.
2215 * stabsread.c (define_symbol): Updated.
2216 (read_enum_type): Updated
2217 * psymtab.c (add_psymbol_to_bcache): Updated.
2218 * minsyms.c (install_minimal_symbols): Updated.
2219 * coffread.c (process_coff_symbol): SYMBOL_SET_LANGUAGE instead of
2220 SYMBOL_LANGUAGE to set the language.
2221 * minsyms.c (prim_record_minimal_symbol_full): Ditto.
2222 * mdebugread.c (new_symbol): Ditto.
2223 * cp-namespace.c (check_one_possible_namespace_symbol): Ditto.
2224 * dwarf2read.c (new_symbol_full): Ditto.
2225 * jv-lang.c (add_class_symbol): Ditto.
2226
5da1313b
JK
22272010-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2228
2229 * defs.h (make_cleanup_restore_uinteger, make_cleanup_restore_ui_file)
2230 (make_cleanup_restore_page_info)
2231 (set_batch_flag_and_make_cleanup_restore_page_info): New declarations.
2232 * gdbcmd.h (execute_command_to_string): New declaration.
2233 * python/python.c (struct restore_ui_file_closure, restore_ui_file)
2234 (make_cleanup_restore_ui_file): Move to utils.c
2235 (execute_gdb_command) <to_string>: Move ...
2236 * top.c (execute_command_to_string): ... here. Call
2237 set_batch_flag_and_make_cleanup_restore_page_info.
2238 * utils.c (make_cleanup_restore_integer): New source file blank line.
2239 (make_cleanup_restore_uinteger): New.
2240 (struct restore_ui_file_closure, do_restore_ui_file)
2241 (make_cleanup_restore_ui_file): Move here from python/python.c.
2242 (init_page_info) <batch_flag>
2243 (do_restore_page_info_cleanup, make_cleanup_restore_page_info)
2244 (set_batch_flag_and_make_cleanup_restore_page_info): New.
2245
c820c52a
PA
22462010-08-06 Maciej W. Rozycki <macro@codesourcery.com>
2247
2248 * thread.c (add_thread_silent): Use null_ptid instead of
2249 minus_one_ptid while getting rid of stale inferior_ptid.
2250
8da614df
CV
22512010-08-06 Corinna Vinschen <vinschen@redhat.com>
2252
2253 * dwarf2-frame.c (struct dwarf2_cie): Add ptr_size member.
2254 Throughout, call read_encoded_value with ptr_size rather than addr_size.
2255 (decode_frame_entry_1): Remove redundant setting of
2256 addr_size. Call gdbarch_dwarf2_addr_size rather than gdbarch_ptr_bit
2257 to determine addr_size in Dwarf versions < 4. Set ptr_size dependent
2258 on examined frame section. Add comment to explain why.
2259 * gdbarch.sh (dwarf2_addr_size): Define as variable. Add lengthy
2260 comment to explain usage.
2261 * gdbarch.c: Regenerate.
2262 * gdbarch.h: Regenerate.
2263
2264 * xstormy16-tdep.c (xstormy16_gdbarch_init): Set dwarf2_addr_size to 4.
2265
e4195b40
JK
22662010-08-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2267
2268 Code cleanup.
2269 * varobj.c (varobj_create): Move variables fi, old_fi and block to
2270 a more inner block.
2271
a3217aa0
PA
22722010-08-05 Pedro Alves <pedro@codesourcery.com>
2273
2274 * configure.tgt (alpha*-*-linux*, am33_2.0*-*-linux*, frv-*-*)
2275 (hppa*-*-linux*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2276 (microblaze*-linux-*, mips*-*-linux*, sh*-*-linux*)
2277 (sparc-*-linux*, sparc64-*-linux*, xtensa*-*-linux*): Add
2278 linux-tdep.o to gdb_target_obs.
2279
e2b4a699 22802010-08-05 Marc Khouzam <marc.khouzam@ericsson.com>
889bf7c5
PA
2281
2282 * mi/mi-main.c (mi_cmd_remove_inferior): Properly access first
e2b4a699 2283 argument.
889bf7c5 2284
50e8a0d5
HZ
22852010-08-05 Hui Zhu <teawater@gmail.com>
2286
2287 * mips-linux-tdep.c(regset.h): New include.
2288 (mips_supply_gregset_wrapper, mips_fill_gregset_wrapper,
2289 mips_supply_fpregset_wrapper, mips_fill_fpregset_wrapper,
2290 mips64_supply_gregset_wrapper, mips64_fill_gregset_wrapper,
2291 mips64_supply_fpregset_wrapper, mips64_fill_fpregset_wrapper,
2292 mips_linux_regset_from_core_section): New functions.
2293 (fetch_core_registers, regset_core_fns): Deleted.
2294 (mips_linux_init_abi): Add mips_linux_regset_from_core_section.
2295 Deleted regset_core_fns.
2296 * mips-tdep.c(mips_gdbarch_init): Initialize tdep->gregset,
2297 tdep->gregset64, tdep->fpregset and tdep->fpregset64.
2298 * mips-tdep.h(gdbarch_tdep): Add gregset, gregset64, fpregset
2299 and fpregset64.
2300
70728992
PA
23012010-08-04 Pedro Alves <pedro@codesourcery.com>
2302
2303 * s390-tdep.c: Include linux-tdep.h.
2304 (s390_gdbarch_init): Call linux_init_abi.
2305
a5ee0f0c
PA
23062010-08-04 Pedro Alves <pedro@codesourcery.com>
2307
2308 * corelow.c (core_pid_to_str): Default to using normal_pid_to_str
2309 instead of printing "Thread" here.
2310 * linux-tdep.c: Include inferior.h.
2311 (linux_core_pid_to_str): New.
2312 (linux_init_abi): New.
2313 * linux-tdep.h (linux_init_abi): Declare.
2314 * alpha-linux-tdep.c: Include linux-tdep.h.
2315 (alpha_linux_init_abi): Call linux_init_abi.
2316 * amd64-linux-tdep.c (amd64_linux_init_abi): Call linux_init_abi.
2317 * arm-linux-tdep.c (arm_linux_init_abi): Call linux_init_abi.
2318 * frv-linux-tdep.c: Include linux-tdep.h
2319 (frv_linux_init_abi): Call linux_init_abi.
2320 * hppa-linux-tdep.c: Include linux-tdep.h
2321 (hppa_linux_init_abi): Call linux_init_abi.
2322 * i386-linux-tdep.c (i386_linux_init_abi): Call linux_init_abi.
2323 * ia64-linux-tdep.c: Include linux-tdep.h.
2324 (ia64_linux_init_abi): Call linux_init_abi.
2325 * m32r-linux-tdep.c: Include linux-tdep.h.
2326 (m32r_linux_init_abi): Call linux_init_abi.
2327 * m68klinux-tdep.c: Include linux-tdep.h.
2328 (m68k_linux_init_abi): Call linux_init_abi.
2329 * microblaze-linux-tdep.c: Include linux-tdep.h.
2330 (microblaze_linux_init_abi): Call linux_init_abi.
2331 * mips-linux-tdep.c: Include linux-tdep.h.
2332 (mips_linux_init_abi): Call linux_init_abi.
2333 * mn10300-linux-tdep.c: Include linux-tdep.h.
2334 (am33_linux_init_osabi): Call linux_init_abi. Rename the
2335 'gdbinfo' parameter to 'info'.
2336 * ppc-linux-tdep.c: Include linux-tdep.h.
2337 (ppc_linux_init_abi): Call linux_init_abi.
2338 * sh-linux-tdep.c: Include linux-tdep.h.
2339 (sh_linux_init_abi): Call linux_init_abi.
2340 * sparc-linux-tdep.c: Include linux-tdep.h.
2341 (sparc32_linux_init_abi): Call linux_init_abi.
2342 * sparc64-linux-tdep.c: Include linux-tdep.h.
2343 (sparc64_linux_init_abi): Call linux_init_abi.
2344 * xtensa-linux-tdep.c: Include linux-tdep.h.
2345 (xtensa_linux_init_abi): Call linux_init_abi.
2346 * i386-cygwin-tdep.c (i386_windows_core_pid_to_str): New.
2347 (i386_cygwin_init_abi): Install it as gdbarch_core_pid_to_str
2348 callback.
2349
bc043ef3
DE
23502010-08-03 Doug Evans <dje@google.com>
2351
2352 * breakpoint.c (bpdisp_text): Constify bpdisps.
2353 * solib-svr4.c (solib_break_names): Constify.
2354 (bkpt_names, main_name_list): Constify.
2355 (match_main): Constify soname arg.
63cdd227
DE
2356 (bfd_lookup_symbol): Remove unnecessary forward decl.
2357 Constify symname arg.
bc043ef3
DE
2358 (enable_break): Constify bkpt_namep.
2359 * symtab.c (search_symbols): Constify types, types2, types3, types4.
2360 (symtab_symbol_info): Constify classnames.
2361
585d1eb8
PM
23622010-08-03 Phil Muldoon <pmuldoon@redhat.com>
2363
2364 * NEWS: Document Python value inferior function calls.
2365
2de00c64
DE
23662010-08-02 Doug Evans <dje@google.com>
2367
2368 * dwarf2read.c (dwarf_attr_name): Add DW_AT_GNU_odr_signature.
2369
02d868e8
PP
23702010-07-31 Paul Pluzhnikov <ppluzhnikov@google.com>
2371
2372 * linux-thread-db.c (libthread_db_debug): New variable.
2373 (thread_db_find_new_threads_silently): Control verbosity with it.
2374 (try_thread_db_load_1, try_thread_db_load): Likewise.
2375 (find_new_threads_once): Likewise.
2376 (_initialize_thread_db): Set/show it.
2377
a19cae16
JK
23782010-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2379
2380 * common/signals.c (signals): Move the content to signals.def.
2381 Include it. Remove the INDENT comments.
2382
c2bbed2a
TT
23832010-07-30 Tom Tromey <tromey@redhat.com>
2384
2385 * Makefile.in (install-only): Install gdb-add-index.
2386 * gdb-add-index.sh: New file.
2387
f32b2f09
CR
23882010-07-31 Renquan Cheng <crq@gcc.gnu.org>
2389
2390 * MAINTAINERS: Add myself for write after approval privileges.
2391
1276c759
JK
23922010-07-30 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 * symfile.c (addr_section_name): New function.
2395 (addrs_section_compar): Use it.
2396 (addr_info_make_relative): Use it. Move variable sect_name into a more
2397 inner block. Make ".dynbss" and ".sdynbss" checks more strict.
2398
420697bb
TT
23992010-07-30 Tom Tromey <tromey@redhat.com>
2400
2401 * configure: Rebuild.
2402 * configure.ac: Add missing case for Python 2.7.
2403
d0d99561
DD
24042010-07-29 DJ Delorie <dj@redhat.com>
2405
2406 * rx-tdep.c (rx_analyze_prologue): Don't require branches to have
2407 conditions.
2408
0b29bdde
PA
24092010-07-29 Pedro Alves <pedro@codesourcery.com>
2410
2411 * PROBLEMS: Remove mention of all problems.
2412
110ed339
PA
24132010-07-28 Pedro Alves <pedro@codesourcery.com>
2414
2415 PR build/11848
2416 * configure.ac: Check for wresize.
2417 * configure, config.in: Regenerate.
2418 * tui/tui-win.c (make_visible_with_new_height): Wrap wresize call
2419 with HAVE_WRESIZE.
2420
326fd672
TT
24212010-07-28 Tom Tromey <tromey@redhat.com>
2422
2423 PR python/11060:
2424 * python/py-type.c (typy_legacy_template_argument): New function,
2425 extracted from typy_template_argument.
2426 (typy_template_argument): Use TYPE_TEMPLATE_ARGUMENT. Return a
2427 value when needed.
2428
4ac8c4da
TT
24292010-07-28 Oleg Nesterov <oleg@redhat.com>
2430
2431 * remote.c (readchar): Call pop_target in case of SERIAL_ERROR.
2432
053315c2
TT
24332010-07-27 Tom Tromey <tromey@redhat.com>
2434
2435 * dwarf2read.c (dwarf2_const_value_data): Never sign extend.
2436
3ce3b1ba
PA
24372010-07-28 Daniel Jacobowitz <dan@codesourcery.com>
2438
2439 * dwarf2read.c (read_subroutine_type): Improve THIS detection,
2440 handling DW_AT_object_pointer, and workaround GCC PR 43053.
2441
2bb4f988
TT
24422010-07-28 Tom Tromey <tromey@redhat.com>
2443
2444 * Makefile.in (HFILES_NO_SRCDIR): Remove link-warning.h.
2445
74232302
JB
24462010-07-28 Joel Brobecker <brobecker@adacore.com>
2447
2448 * remote.c (remote_download_tracepoint): Add missing gettext markup.
2449 * tracepoint.c (parse_static_tracepoint_marker_definition): Likewise.
2450
385d04dc
JB
24512010-07-28 Joel Brobecker <brobecker@adacore.com>
2452
2453 * breakpoint.c (breakpoint_re_set_one): Move call to set_language
2454 down, just before the block that parse the breakpoint addr_string.
2455
34eaf542
TT
24562010-07-28 Tom Tromey <tromey@redhat.com>
2457
2458 PR c++/9946:
2459 * symfile.c (reread_symbols): Clear template_symbols.
2460 * symtab.h (struct symbol) <is_cplus_template_function>: New
2461 field.
2462 (SYMBOL_IS_CPLUS_TEMPLATE_FUNCTION): New macro.
2463 (struct template_symbol): New.
2464 * symtab.c (lookup_symbol_aux_local): Use
2465 cp_lookup_symbol_imports_or_template.
2466 * objfiles.h (struct objfile) <template_symbols>: New field.
2467 * objfiles.c (relocate_one_symbol): New function.
2468 (objfile_relocate1): Use it. Relocate isolated symbols.
2469 * gdbtypes.h (struct cplus_struct_type) <n_template_arguments,
2470 template_arguments>: New fields.
2471 (TYPE_N_TEMPLATE_ARGUMENTS): New macro.
2472 (TYPE_TEMPLATE_ARGUMENTS): Likewise.
2473 (TYPE_TEMPLATE_ARGUMENT): Likewise.
2474 (lookup_typename): Update.
2475 * gdbtypes.c (lookup_typename): Constify "block" argument.
2476 * dwarf2read.c: Include vec.h.
2477 (symbolp): New typedef.
2478 (read_func_scope): Read template arguments. Allocate a
2479 template_symbol when needed.
2480 (read_structure_type): Read template arguments.
2481 (new_symbol_full): New function, from new_symbol. Handle
2482 DW_TAG_template_type_param and DW_TAG_template_value_param.
2483 (new_symbol): Rewrite as wrapper.
2484 * cp-support.h (cp_lookup_symbol_imports_or_template): Declare.
2485 * cp-namespace.c: Include language.h.
2486 (search_symbol_list): New function.
2487 (cp_lookup_symbol_imports_or_template): Likewise.
2488
d27b3be4
PA
24892010-07-28 Balazs Kezes <rlblaster@gmail.com>
2490
2491 * tui/tui-win.c (make_visible_with_new_height): Resize and move
2492 the command window to the new size and position.
2493
0036e657
PA
24942010-07-28 Balazs Kezes <rlblaster@gmail.com>
2495
a782f43e 2496 * tui/tui-win.c (tui_resize_all): Update the locator's origin's
0036e657
PA
2497 coordinates.
2498
36900355
PA
24992010-07-28 Balazs Kezes <rlblaster@gmail.com>
2500
a782f43e 2501 * tui/tui-io.c (tui_handle_resize_during_io): Call tui_resize_all
36900355 2502 after a detecting a resize.
a782f43e 2503 * tui/tui-win.c (tui_resize_all): Remove tui_set_win_resized_to
36900355
PA
2504 call.
2505
db5e03ae
PA
25062010-07-28 Pedro Alves <pedro@codesourcery.com>
2507
2508 * configure.ac: Check for resize_term.
2509 * configure, config.in: Regenerate.
2510
b71fff68
JB
25112010-07-27 Joel Brobecker <brobecker@adacore.com>
2512
2513 * MAINTAINERS (Write After Approval): Reorder a couple of entries.
2514
9b1c24c8
PA
25152010-07-27 Daniel Jacobowitz <dan@codesourcery.com>
2516
2517 * dwarf2read.c (read_string): Rename to ...
2518 (read_direct_string): ... this.
2519 (skip_one_die, read_attribute_value, dwarf_decode_line_header)
2520 (dwarf_decode_lines, dwarf_decode_macros): Adjust.
2521
00390b84
JK
25222010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2523
2524 * linux-nat.c (linux_nat_lp_status_is_event): New function.
2525 (count_events_callback, select_event_lwp_callback)
2526 (cancel_breakpoints_callback, linux_nat_wait_1): Use it.
2527
26ab7092
JK
25282010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2529
2530 * ia64-linux-nat.c (ia64_linux_status_is_event): New function.
2531 (_initialize_ia64_linux_nat): Install it.
2532 * linux-nat.c (sigtrap_is_event, linux_nat_status_is_event)
2533 (linux_nat_set_status_is_event): New.
2534 (stop_wait_callback, count_events_callback, select_event_lwp_callback)
2535 cancel_breakpoints_callback, linux_nat_filter_event)
2536 (linux_nat_wait_1): Use linux_nat_status_is_event.
2537 * linux-nat.h (linux_nat_set_status_is_event): New prototype.
2538
283e6a52
TT
25392010-07-27 Tom Tromey <tromey@redhat.com>
2540
2541 * NEWS: Mention labels, .gdb_index.
2542
53a71c06
CR
25432010-07-28 CHENG Renquan <rqcheng@smu.edu.sg>
2544
2545 * cli/cli-cmds.c (disassemble_command): Add support of disassemble
3422f666 2546 "start,+length" form of arguments.
53a71c06
CR
2547 * NEWS: Add "Changed commands" (disassemble) section for "Changes
2548 since GDB 7.1"; and merge two separated paragraphs of disassemble
2549 description in "Changes in GDB 7.0".
2550
c63a1f86
JK
25512010-07-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2552
2553 * top.c (input_from_terminal_p): Return 0 on BATCH_FLAG.
2554 * utils.c (defaulted_query): Do not explicitly check for BATCH_FLAG.
2555 (fputs_maybe_filtered): Do not do filtering also on
2556 ! INPUT_FROM_TERMINAL_P.
2557
abebb8b0
JB
25582010-07-27 Joel Brobecker <brobecker@adacore.com>
2559
2560 * dwarf2read.c (dw2_find_pc_sect_symtab): Remove trailing newline
2561 in warning message.
2562
5374244e
PM
25632010-07-27 Phil Muldoon <pmuldoon@redhat.com>
2564
2565 * python/py-value.c (valpy_call): New Function.
2566
ac0b195c
KW
25672010-07-27 Ken Werner <ken.werner@de.ibm.com>
2568
889bf7c5 2569 * dwarf2read.c (dwarf2_read_index): Initialize the types_list and
ac0b195c
KW
2570 types_list_elements variables.
2571
09d8bd00
TT
25722010-07-26 Tom Tromey <tromey@redhat.com>
2573
2574 * dwarf2loc.c (locexpr_describe_location_piece): Also recognize
2575 TLS with DW_OP_const4u or DW_OP_const8u.
2576
9fe70b4f
TJB
25772010-07-26 Thiago Jung Bauermann <bauerman@br.ibm.com>
2578
2579 * ppc-linux-nat.c (store_vsx_register): Use PTRACE_GETVSXREGS to get
2580 VSX registers contents.
2581
caac4577
JG
25822010-07-26 Jerome Guitton <guitton@adacore.com>
2583
2584 * dwarf2read.c (add_partial_symbol): Do not add a global variable if
2585 its adress is null. Add comment to explain why.
2586 (new_symbol): Ditto.
2587
857d11d0
JK
25882010-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2589
2590 * linux-nat.c (linux_nat_do_thread_registers): Convert STOP_SIGNAL to
2591 the host signal first.
2592
1fd400ff
TT
25932010-07-23 Tom Tromey <tromey@redhat.com>
2594
2595 * dwarf2read.c (struct dwarf2_per_objfile) <n_type_comp_units,
2596 type_comp_units>: New fields.
2597 (dw2_get_cu): New function.
2598 (create_cus_from_index): Remove unused argument.
2599 (create_signatured_type_hash_from_index): New function.
2600 (create_addrmap_from_index): Update.
2601 (dwarf2_read_index): Handle version 2.
2602 (dw2_find_last_source_symtab, dw2_forget_cached_source_info)
2603 (dw2_lookup_symtab, dw2_do_expand_symtabs_matching)
2604 (dw2_print_stats, dw2_expand_all_symtabs)
2605 (dw2_expand_symtabs_with_filename, dw2_find_symbol_file)
2606 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Update.
2607 (dwarf2_initialize_objfile): Call create_debug_types_hash_table.
2608 (allocate_signatured_type_hash_table): New function.
2609 (add_signatured_type_cu_to_list): Likewise.
2610 (create_debug_types_hash_table): Use them. Set type_comp_units.
2611 (read_signatured_type): Ensure section data is available.
2612 (add_address_entry): Don't record empty ranges.
2613 (struct signatured_type_index_data): New.
2614 (write_one_signatured_type): New function.
2615 (write_psymtabs_to_index): Write type CUs.
2616 (save_gdb_index_command): Update comment.
2617 (process_type_comp_unit): Move inititalization of
2618 from_debug_types...
2619 (create_debug_types_hash_table): ... here.
2620
3a674486
JK
26212010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2622
2623 * gdb_gcore.sh (tmpfile): Remove the variable, its initialization,
2624 cleanup and generating of gdb script to it.
2625 (gdb): Use redirection from /dev/null. Use --nx. Turn off pagination
2626 and terminal size. Convert $tmpfile to a series of -ex-es.
2627
54ec275a
KS
26282010-07-23 Keith Seitz <keiths@redhat.com>
2629
2630 * symtab.c (basic_lookup_transparent_type): Call pre-expand
2631 hook for STATIC_BLOCK types, too.
2632
8fd447e6
KS
26332010-07-23 Keith Seitz <keiths@redhat.com>
2634
2635 * dwarf2read.c: Remove unused typedef dwarf2_cu_per_cu_data_ptr
2636 and vector definition.
2637
25b72dde
JK
26382010-07-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2639
2640 * linux-nat.c (cancel_breakpoint): Remove unused forward declaration.
2641
96d19272
JK
26422010-07-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2643
2644 * dwarf2read.c: Include completer.h.
2645 (save_gdb_index_command): Use matching usage command name.
2646 (_initialize_dwarf2_read): New variable c, initialize it by add_cmd.
2647 Set filename_completer for it.
2648
ca1f3406
TT
26492010-07-22 Tom Tromey <tromey@redhat.com>
2650
2651 * dwarf2read.c (create_debug_types_hash_table): Set objfile on
2652 type signature's per-CU data.
2653
ba25b921
PA
26542010-07-22 Pedro Alves <pedro@codesourcery.com>
2655
2656 * NEWS: Mention target reported shared libraries support by
2657 default.
2658
23bd0f7c
PA
26592010-07-21 Pedro Alves <pedro@codesourcery.com>
2660
2661 PR symtab/11827
2662
2663 Revert:
2664 2010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
2665 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
2666 and DW_TAG_volatile_type.
2667 (new_symbol): Likewise.
2668
883df6dd
SW
26692010-07-21 Sami Wagiaalla <swagiaal@redhat.com>
2670
2671 * eval.c (evaluate_subexp_standard): Disabled evaluation of C++
2672 function symbols before overload resolution.
2673
269b11a2
PA
26742010-07-21 Pedro Alves <pedro@codesourcery.com>
2675
2676 * breakpoint.c (bptype_string): New, abstracted out from
2677 print_one_breakpoint_location.
2678 (print_one_breakpoint_location): Adjust.
2679 (breakpoint_1): Adjust the type column width dynamically.
2680
569b05a5
JK
26812010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2682
2683 * symfile.c (find_separate_debug_file_by_debuglink): Remove
2684 a gdb_assert call, new comment.
2685
ad34eb2f
JK
26862010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2687
2688 * linux-nat.c (linux_handle_extended_wait): Handle case when
2689 event == PTRACE_EVENT_CLONE && stopping && WSTOPSIG (status) != SIGSTOP.
2690
33355866
JK
26912010-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2692
2693 Code cleanup.
2694 * linux-nat.c (linux_nat_wait_1): Reset STATUS after calling
2695 linux_nat_wait_1. Use always LP->STATUS afterwards.
2696
26590820
HZ
26972010-07-20 Hui Zhu <teawater@gmail.com>
2698
2699 * inf-ptrace.c (inf_ptrace_create_inferior): Initialize back_to.
2700 (inf_ptrace_attach): Ditto.
2701
c0edd9ed
JK
27022010-07-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2703
2704 Make core files the process_stratum.
2705 * corefile.c (core_target): New variable.
2706 (core_file_command): Remove variable t, use core_target.
2707 * corelow.c (core_ops): Make it static.
2708 (init_core_ops): Change to process_stratum. Initialize CORE_TARGET.
2709 * defs.h (make_cleanup_unpush_target): New prototype.
2710 * gdbarch.h: Regenerate.
2711 * gdbarch.sh (core_pid_to_str): Remove core_stratum from its comment.
2712 * gdbcore.h (core_target): New declaration.
2713 * inf-ptrace.c (inf_ptrace_create_inferior, inf_ptrace_attach): New
2714 variables ops_already_pushed and back_to. Use push_target,
2715 make_cleanup_unpush_target and discard_cleanups calls.
2716 * record.c (record_open): Replace core_stratum by a core_bfd check.
2717 * target.c (target_is_pushed): New function.
2718 (find_core_target): Remove.
2719 * target.h (enum strata) <core_stratum>: Remove.
2720 (target_is_pushed): New declaration.
2721 (find_core_target): Remove declaration.
2722 * tracepoint.c (init_tfile_ops) <to_stratum>: Remove comment.
2723 * utils.c (do_unpush_target, make_cleanup_unpush_target): New functions.
2724
f02253f1
HZ
27252010-07-19 Hui Zhu <teawater@gmail.com>
2726
2727 * breakpoint.c (single_step_breakpoints_inserted): New
2728 function.
2729 * breakpoint.h (single_step_breakpoints_inserted): Extern.
2730 * infrun.c (maybe_software_singlestep): Add check code.
2731 * record.c (record_resume): Add code for software single step.
2732 (record_wait): Ditto.
2733
78768c4a
JK
27342010-07-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2735
2736 * linux-nat.c (linux_handle_extended_wait): Move variable new_lp into
2737 a more inner block. Remove its unused declaration initializer.
2738
431e49aa
TJB
27392010-07-16 Thiago Jung Bauermann <bauerman@br.ibm.com>
2740
2741 * NEWS: Mention support for the new ptrace interface and hardware
2742 accelerated watchpoint conditions on powerpc-linux.
2743
bd91e7ae
OS
27442010-07-16 Ozkan Sezer <sezeroz@gmail.com>
2745
2746 * target.c (debug_to_insert_breakpoint): Instead of casting to unsigned
2747 long and %ld, use core_addr_to_string() and %s to print CORE_ADDR vars
2748 and host_address_to_string() and %s for pointers.
2749 (debug_to_remove_breakpoint): Likewise.
2750 (debug_to_region_ok_for_hw_watchpoint): Likewise.
2751 (debug_to_can_accel_watchpoint_condition): Likewise.
2752 (debug_to_stopped_data_address): Likewise.
2753 (debug_to_watchpoint_addr_within_range): Likewise.
2754 (debug_to_insert_hw_breakpoint): Likewise.
2755 (debug_to_remove_hw_breakpoint): Likewise.
2756 (debug_to_insert_watchpoint): Likewise.
2757 (debug_to_remove_watchpoint): Likewise.
2758
29df156d
SW
27592010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2760
2761 * symtab.h (symbol_set_demangled_name): Now takes an optional objfile*
2762 argument.
2763 (cplus_specific): New struct.
2764 * symtab.c (symbol_set_demangled_name): Updated.
2765 Use cplus_specific for cplus symbols.
2766 (symbol_get_demangled_name): Retrive the name from the cplus_specific
2767 struct for cplus symbols.
2768 (symbol_init_language_specific): Set cplus_specific for cplus symbols.
2769 (symbol_set_names): Pass objfile to symbol_set_demangled_name.
2770 * symtab.c (symbol_init_cplus_specific): New function.
2771
b250c185
SW
27722010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2773
2774 * symtab.h (symbol_set_demangled_name): New function.
2775 (symbol_get_demangled_name): New function.
2776 * symtab.c (symbol_set_demangled_name): New function.
2777 (symbol_get_demangled_name): New function.
2778 (symbol_init_language_specific): Use demangled_name setter and getter.
2779 (symbol_set_names): Ditto.
2780 (symbol_natural_name): Ditto.
2781 (symbol_demangled_name): Ditto.
2782 * dwarf2read.c (new_symbol): Ditto.
2783
afa16725
SW
27842010-07-16 Sami Wagiaalla <swagiaal@redhat.com>
2785
2786 * symtab.h: Renamed cplus_specific to mangled_lang.
2787 * symtab.c (symbol_init_language_specific): Updated.
2788 (symbol_set_names): Updated.
2789 (symbol_natural_name): Updated.
2790 (symbol_demangled_name): Updated.
2791 * ada-lang.c (ada_decode_symbol): Updated.
2792 * dwarf2read.c (new_symbol): Updated.
2793
3cbaedff
KW
27942010-07-14 Ken Werner <ken.werner@de.ibm.com>
2795
2796 * valops.c (value_assign): Do not call to value_coerce_to_target.
2797 (value_must_coerce_to_target): Return 0 in case of TYPE_VECTOR.
2798
c932f1be
KW
27992010-07-14 Ken Werner <ken.werner@de.ibm.com>
2800
2801 * MAINTAINERS: Add myself for write after approval privileges.
2802
91158a56
TT
28032010-07-13 Emmanuel Thomé <Emmanuel.Thome@gmail.com>
2804
2805 * c-valprint.c (c_val_print): Add embedded_offset to address in
2806 call to val_print_array_elements.
2807
b3b272e1
TT
28082010-07-13 Tom Tromey <tromey@redhat.com>
2809
2810 * dwarf2read.c (dwarf2_read_index): Correctly set 'total_size'.
2811
bb3fa9d0
TT
28122010-07-13 Tom Tromey <tromey@redhat.com>
2813
2814 * dwarf2read.c (dwarf2_per_cu_text_offset): Fix reference to
2815 objfile.
2816
dd786858
TT
28172010-07-13 Tom Tromey <tromey@redhat.com>
2818
2819 * symfile.c (set_initial_language): Update.
2820 (deduce_language_from_filename): Argument type now const.
2821 * symtab.h (find_main_filename): Update.
2822 (deduce_language_from_filename): Update.
2823 * symtab.c (find_main_filename): Make result const.
2824 * dwarf2read.c (dw2_find_symbol_file): Change return type.
2825 * psymtab.c (find_symbol_file_from_partial): Change return type.
2826 * symfile.h (struct quick_symbol_functions) <find_symbol_file>:
2827 Make result const.
2828
9291a0cd
TT
28292010-07-13 Tom Tromey <tromey@redhat.com>
2830
2831 * breakpoint.c (save_cmdlist): No longer static.
2832 * gdbcmd.h (save_cmdlist): Declare.
2833 * symfile.c (symbol_file_add_with_addrs_or_offsets): Set
2834 OBJF_READNOW on objfile if readnow_symbol_files.
2835 * elfread.c (elf_symfile_read): Use dwarf2_initialize_objfile.
2836 (elf_sym_fns_gdb_index): New global.
2837 * dwarf2read.c: Include exceptions.h.
2838 (offset_type): New.
2839 (struct mapped_index): New.
2840 (dwarf2_per_cu_data_ptr): New typedef.
2841 (struct dwarf2_per_objfile) <using_index, index_table, gdb_index>:
2842 New fields.
2843 (GDB_INDEX_SECTION): New define.
2844 (struct dwarf2_per_cu_quick_data): New.
2845 (struct dwarf2_per_cu_data) <objfile>: New field.
2846 <psymtab>: Removed.
2847 <v>: New field.
2848 (byte_swap): New function.
2849 (MAYBE_SWAP): New macro.
2850 (INDEX_SUFFIX): New macro.
2851 (dw2_do_instantiate_symtab): New function.
2852 (dw2_instantiate_symtab): Likewise.
2853 (create_cus_from_index): Likewise.
2854 (create_addrmap_from_index): Likewise.
2855 (mapped_index_string_hash): Likewise.
2856 (find_slot_in_mapped_hash): Likewise.
2857 (dwarf2_read_index): Likewise.
2858 (dw2_setup): Likewise.
2859 (dw2_require_line_header): Likewise.
2860 (dw2_require_full_path): Likewise.
2861 (dw2_find_last_source_symtab): Likewise.
2862 (dw2_forget_cached_source_info): Likewise.
2863 (dw2_lookup_symtab): Likewise.
2864 (dw2_lookup_symbol): Likewise.
2865 (dw2_do_expand_symtabs_matching): Likewise.
2866 (dw2_pre_expand_symtabs_matching): Likewise.
2867 (dw2_print_stats): Likewise.
2868 (dw2_dump): Likewise.
2869 (dw2_relocate): Likewise.
2870 (dw2_expand_symtabs_for_function): Likewise.
2871 (dw2_expand_all_symtabs): Likewise.
2872 (dw2_expand_symtabs_with_filename): Likewise.
2873 (dw2_find_symbol_file): Likewise.
2874 (dw2_map_ada_symtabs): Likewise.
2875 (dw2_expand_symtabs_matching): Likewise.
2876 (dw2_find_pc_sect_symtab): Likewise.
2877 (dw2_map_symbol_names): Likewise.
2878 (dw2_map_symbol_filenames): Likewise.
2879 (dw2_has_symbols): Likewise.
2880 (dwarf2_gdb_index_functions): New global.
2881 (dwarf2_initialize_objfile): New function.
2882 (process_psymtab_comp_unit): Update.
2883 (add_partial_subprogram): Likewise.
2884 (dwarf2_psymtab_to_symtab): Likewise.
2885 (psymtab_to_symtab_1): Use dw2_do_instantiate_symtab.
2886 (process_full_comp_unit): Update.
2887 (find_file_and_directory): New function.
2888 (read_file_scope): Use find_file_and_directory.
2889 (dwarf2_per_cu_objfile): Update.
2890 (dwarf2_per_cu_addr_size): Update.
2891 (dwarf2_per_cu_offset_size): Update.
2892 (dwarf2_free_objfile): Free the index, if needed.
2893 (dwarf2_per_objfile_free): Unmap the index, if needed.
2894 (struct strtab_entry): New.
2895 (hash_strtab_entry): New function.
2896 (eq_strtab_entry): Likewise.
2897 (create_strtab): Likewise.
2898 (add_string): Likewise.
2899 (struct symtab_index_entry): New.
2900 (struct mapped_symtab): New.
2901 (hash_symtab_entry): New function.
2902 (eq_symtab_entry): Likewise.
2903 (delete_symtab_entry): Likewise.
2904 (create_index_table): Likewise.
2905 (create_mapped_symtab): Likewise.
2906 (cleanup_mapped_symtab): Likewise.
2907 (find_slot): Likewise.
2908 (hash_expand): Likewise.
2909 (add_index_entry): Likewise.
2910 (add_indices_to_cpool): Likewise.
2911 (write_hash_table): Likewise.
2912 (add_address_entry): Likewise.
2913 (write_psymbols): Likewise.
2914 (write_obstack): Likewise.
2915 (unlink_if_set): Likewise.
2916 (write_psymtabs_to_index): Likewise.
2917 (save_gdb_index_command): Likewise.
2918 (_initialize_dwarf2_read): Install "save gdb-index"
2919 command.
2920 (create_all_comp_units): Initialize 'objfile' field of CU.
2921 (dwarf2_locate_sections): Check for .gdb_index.
2922 * psymtab.h (dwarf2_gdb_index_functions): Declare.
2923 * symfile.h (dwarf2_initialize_objfile): Declare.
2924
58b6ab13
TT
29252010-07-13 Tom Tromey <tromey@redhat.com>
2926
2927 * symtab.c (lookup_symbol_aux_symtabs): Call pre-expand hook.
2928 (basic_lookup_transparent_type): Likewise.
2929 * symfile.h (struct quick_symbol_functions)
2930 <pre_expand_symtabs_matching>: New field.
2931 * psymtab.c (pre_expand_symtabs_matching_psymtabs): New function.
2932 (psym_functions): Update.
2933
0f5238ed
TT
29342010-07-13 Tom Tromey <tromey@redhat.com>
2935
2936 PR breakpoints/8357:
2937 * symtab.h (domain_enum_tag) <LABEL_DOMAIN>: Update comment.
2938 * linespec.c (decode_line_1): Update comment. Call decode_label.
2939 (decode_label): New function.
2940 (symbol_found): Handle LOC_LABEL.
2941 * dwarf2read.c (new_symbol) <DW_TAG_label>: Set symbol's type and
2942 domain. Call add_symbol_to_list.
2943
9aa1f1e3
TT
29442010-07-13 Tom Tromey <tromey@redhat.com>
2945
2946 * dwarf2loc.h (dwarf2_per_cu_text_offset): Declare.
2947 * dwarf2loc.c (find_location_expression): Use
2948 dwarf2_per_cu_text_offset.
2949 (dwarf2_evaluate_loc_desc): Likewise.
2950 (dwarf2_loc_desc_needs_frame): Likewise.
2951 (compile_dwarf_to_ax): Likewise.
2952 (loclist_describe_location): Likewise.
2953 * dwarf2read.c (dwarf2_per_cu_text_offset): New function.
2954 (dwarf2_per_cu_objfile): Update comment.
2955
953ac07e
JK
29562010-07-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2957
2958 * dwarf2read.c (read_subrange_type): Call read_subrange_type.
2959 * p-lang.c (pascal_printstr): Likewise.
2960
f04e4012
TT
29612010-07-09 Tom Tromey <tromey@redhat.com>
2962
2963 * python/py-prettyprint.c (gdbpy_get_display_hint): Don't use
2964 'hint' if it is NULL.
2965
f4dfd9c0
HZ
29662010-07-09 Hui Zhu <teawater@gmail.com>
2967
2968 * source.c (print_source_lines_base): Add check for noprint.
2969
7e6e39e5
JB
29702010-07-08 Joel Brobecker <brobecker@adacore.com>
2971
2972 * python/python-config.py: Resync with Python 2.7 version of this
2973 script.
2974
76b8507d
JB
29752010-07-08 Joel Brobecker <brobecker@adacore.com>
2976
2977 * NEWS: Fix typo in section name (s/GDB 7.1/GDB 7.2).
2978
797054e6
JB
29792010-07-07 Joel Brobecker <brobecker@adacore.com>
2980
2981 * NEWS: Create a new section for the next release branch.
2982 Rename the section of the current branch, now that it has
2983 been cut.
2984
c80befee 29852010-07-07 Joel Brobecker <brobecker@adacore.com>
2986
2987 GDB 7.2 branch created (branch timestamp: 2010-07-07 17:00 UTC)
2988 * version.in: Bump version to 7.2.50.20100707-cvs.
2989
ac56253d
TT
29902010-07-07 Tom Tromey <tromey@redhat.com>
2991
2992 * dwarf2read.c (dwarf2_const_value) <DW_form_addr>: Create a
2993 LOC_COMPUTED symbol.
2994 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Set new field.
2995 (dwarf2_loc_desc_needs_frame): Likewise.
2996 (compile_dwarf_to_ax) <DW_OP_addr>: Use offset.
2997 * dwarf2expr.h (struct dwarf_expr_context) <offset>: New field.
2998 * dwarf2expr.c (execute_stack_op) <DW_OP_addr>: Use offset.
2999 * dwarf2-frame.c (execute_stack_op): Set 'offset' field. Add
3000 'offset' argument.
3001 (struct dwarf2_frame_cache) <text_offset>: New field.
3002 (dwarf2_frame_cache): Set new field.
3003 (dwarf2_frame_prev_register): Update.
3004 (dwarf2_frame_sniffer): Update.
3005 (dwarf2_frame_base_sniffer): Update.
3006 (dwarf2_frame_find_fde): Add 'out_offset' argument.
3007
0cf6dd15
TJB
30082010-07-07 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
3009 Thiago Jung Bauermann <bauerman@br.ibm.com>
3010
3011 Support for hw accelerated condition watchpoints in booke powerpc.
3012
3013 * breakpoint.c (fetch_watchpoint_value): Rename to fetch_subexp_value
3014 and move to eval.c. Change callers.
3015 (insert_bp_location): Pass watchpoint condition in
3016 target_insert_watchpoint.
3017 (remove_breakpoint_1) Pass watchpoint condition in
3018 target_remove_watchpoint.
3019 (watchpoint_locations_match): Call
3020 target_can_accel_watchpoint_condition.
3021 * eval.c: Include wrapper.h.
3022 (fetch_subexp_value): Moved from breakpoint.c.
3023 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint):
3024 Formatting fix.
3025 (can_use_watchpoint_cond_accel): New function.
3026 (calculate_dvc): Likewise.
3027 (num_memory_accesses): Likewise.
3028 (check_condition): Likewise.
3029 (ppc_linux_can_accel_watchpoint_condition): Likewise
3030 (ppc_linux_insert_watchpoint): Call can_use_watchpoint_cond_accel,
3031 check_condition and calculate_dvc.
3032 (ppc_linux_remove_watchpoint): Likewise.
3033 (_initialize_ppc_linux_nat): Set to_can_accel_watchpoint_condition to
3034 ppc_linux_can_accel_watchpoint_condition
3035 * target.c (debug_to_insert_watchpoint): Add argument for watchpoint
3036 condition.
3037 (debug_to_remove_watchpoint): Likewise.
3038 (debug_to_can_accel_watchpoint_condition): New function.
3039 (update_current_target): Set to_can_accel_watchpoint_condition.
3040 (setup_target_debug): Set to_can_accel_watchpoint_condition.
3041 * target.h: Add opaque declaration for struct expression.
3042 (struct target_ops) <to_insert_watchpoint>,
3043 <to_remove_watchpoint>: Add new arguments to pass the watchpoint
3044 <to_can_accel_watchpoint_condition>: New member.
3045 condition. Update all callers and implementations.
3046 (target_can_accel_watchpoint_condition): New macro.
3047 * value.c (free_value_chain): New function.
3048 * value.h (fetch_subexp_value): New prototype.
3049 (free_value_chain): Likewise.
3050
2f2241f1
UW
30512010-07-07 Ulrich Weigand <uweigand@de.ibm.com>
3052
3053 * linux-nat.c (linux_nat_do_thread_registers): Use section size
3054 from gdbarch_core_regset_sections also for .reg if present.
3055
3056 * amd64-linux-tdep.c (amd64_linux_regset_sections): Fix incorrect
3057 section size for .reg.
3058 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
3059 (ppc_linux_vmx_regset_sections): Likewise.
3060 (ppc_linux_fp_regset_sections): Likewise.
3061 (ppc64_linux_vsx_regset_sections): New variable.
3062 (ppc64_linux_vmx_regset_sections): Likewise.
3063 (ppc64_linux_fp_regset_sections): Likewise.
3064 (ppc_linux_init_abi): Install core_regset_section lists appropriate
3065 for current word size.
3066
1fd7cdc2
JB
30672010-07-06 Joel Brobecker <brobecker@adacore.com>
3068
3069 * server.c (myresume): Make static.
3070
11763c18
TT
30712010-07-06 Tom Tromey <tromey@redhat.com>
3072
3073 * configure, config.in: Rebuild.
3074 * configure.ac (HAVE_LIBPYTHON2_7): New define.
3075 * python/python-internal.h: Handle HAVE_LIBPYTHON2_7.
3076
a6cc4789
AS
30772010-07-06 Andreas Schwab <schwab@linux-m68k.org>
3078
3079 * breakpoint.c (_initialize_breakpoint): Add "cl" as alias for
3080 "clear".
3081
f9e9243a
UW
30822010-07-06 Ken Werner <ken.werner@de.ibm.com>
3083
3084 * gdbtypes.h (floatformats_ieee_half): Add declaration.
3085 * gdbtypes.c (floatformats_ieee_half): New variable.
3086 * doublest.c (floatformat_from_length): Set format to
3087 gdbarch_half_format if length matches.
3088 * gdbarch.sh (half_bit): New architecture method.
3089 (half_format): Likewise.
3090 * gdbarch.h: Regenerate.
3091 * gdbarch.c: Likewise.
3092
4e5799b6
JK
30932010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3094 Joel Brobecker <brobecker@adacore.com>
3095
3096 Fix re-run of PIE executable, PR shlibs/11776.
3097 * solib-svr4.c (svr4_relocate_main_executable) <symfile_objfile>: Remove
3098 the part of pre-set SYMFILE_OBJFILE->SECTION_OFFSETS.
3099
86e4bafc
JK
31002010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3101 Joel Brobecker <brobecker@adacore.com>
3102
3103 * auxv.c (memory_xfer_auxv): Update attach comment.
3104 * solib-svr4.c (svr4_special_symbol_handling): Remove the call to
3105 svr4_relocate_main_executable.
3106 (svr4_solib_create_inferior_hook): Make the call to
3107 svr4_relocate_main_executable unconditional.
3108
3cd07d20
JK
31092010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3110 Joel Brobecker <brobecker@adacore.com>
3111
3112 * auxv.c (ld_so_xfer_auxv): Do not error on failed read of data_address.
3113
0a1e94c7
JK
31142010-07-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3115 Joel Brobecker <brobecker@adacore.com>
3116
3117 Fix attaching to PIEs prelinked on the disk after the process was
3118 started.
3119 * solib-svr4.c (svr4_exec_displacement): New variable arch_size.
3120 Verify it against bfd_get_arch_size. Try to match arbitrary
3121 displacement for the phdrs comparison.
3122
5387647f
TT
31232010-07-02 Tom Tromey <tromey@redhat.com>
3124
3125 PR exp/11780:
3126 * libunwind-frame.c (libunwind_frame_prev_register): Don't set
3127 value as optimized-out.
3128
38b6c3b3
TJB
31292010-07-02 Ulrich Weigand <uweigand@de.ibm.com>
3130 Thiago Jung Bauermann <bauerman@br.ibm.com>
3131
3132 * breakpoint.c (can_use_hardware_watchpoint): Answer "what does this
3133 represent?" question in comment. Change comment to a proper sentence.
3134
a17ac5b0
TT
31352010-07-02 Ken Werner <ken.werner@de.ibm.com>
3136
3137 * c-valprint.c (c_val_print): Fix printing of character vectors.
3138
bddaafad
JK
31392010-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3140
3141 * spu-tdep.c (spu_catch_start): Adjust the caller of changed
3142 create_breakpoint prototype.
3143
d41c0fc8
PA
31442010-07-01 Pedro Alves <pedro@codesourcery.com>
3145
3146 * breakpoint.c (BREAK_ARGS_HELP, _initialize_breakpoint): Clarify
3147 usefulness suggestion of multiple breakpoints at same location.
3148
dc10affe
PA
31492010-07-01 Pedro Alves <pedro@codesourcery.com>
3150
3151 * breakpoint.c (BREAK_ARGS_HELP): Add missing `the'.
3152
cabe9ab6
PA
31532010-07-01 Pedro Alves <pedro@codesourcery.com>
3154
3155 * dwarf2loc.c (locexpr_tracepoint_var_ref)
3156 (loclist_tracepoint_var_ref): Handle optimized out values.
3157
cce7e648
PA
31582010-07-01 Pedro Alves <pedro@codesourcery.com>
3159
3160 * breakpoint.c (update_watchpoint, _initialize_breakpoint): Remove
3161 unnecessary space in string.
3162 * filesystem.c (_initialize_filesystem): Ditto.
3163 * frame.c (_initialize_frame): Ditto.
3164 * infcmd.c (step_once): Ditto.
3165 * infrun.c (_initialize_infrun): Ditto.
3166 * linux-nat.c (linux_child_follow_fork): Ditto.
3167 * maint.c (maintenance_deprecate): Ditto.
3168 * memattr.c (_initialize_mem): Ditto.
3169 * mips-tdep.c (_initialize_mips_tdep): Ditto.
3170 * monitor.c (monitor_open): Ditto.
3171 * procfs.c (procfs_xfer_memory): Ditto.
3172 * reverse.c (bookmarks_info): Ditto.
3173 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs): Ditto.
3174 * stack.c (_initialize_stack): Ditto.
3175 * tracepoint.c (_initialize_tracepoint): Ditto.
3176 * xtensa-tdep.c (xtensa_supply_gregset,
3177 xtensa_regset_from_core_section): Ditto.
3178
b65c7efe
TT
31792010-07-01 Tom Tromey <tromey@redhat.com>
3180
3181 * value.h (struct lval_funcs) <check_any_valid>: Rename from
3182 check_all_valid.
3183 * value.c (value_entirely_optimized_out): Invert result. Update
3184 for new function name.
3185
0fb4aa4b
PA
31862010-07-01 Pedro Alves <pedro@codesourcery.com>
3187
3188 Static tracepoints support.
3189
3190 * NEWS: Mention new support for static tracepoints.
3191 (New packets): Mention qTfSTM, qTsSTM, qTSTMat and
3192 qXfer:statictrace:read.
3193 (New features in the GDB remote stub, GDBserver): Mention static
3194 tracepoints support using an UST based backend.
3195 (New commands): Mention "info static-tracepoint-markers" and
3196 "strace".
3197 * breakpoint.c (is_marker_spec): New.
3198 (is_tracepoint): Handle static tracepoints.
3199 (validate_commands_for_breakpoint): Static tracepoints can't do
3200 while-stepping.
3201 (static_tracepoints_here): New.
3202 (bpstat_what): Handle static tracepoints.
3203 (print_one_breakpoint_location, allocate_bp_location, mention):
3204 Ditto.
3205 (create_breakpoint_sal): Ditto.
3206 (decode_static_tracepoint_spec): New.
3207 (create_breakpoint): Replace `hardwareflag', and `traceflag' with
3208 `type_wanted'. Adjust. Handle static tracepoint marker
3209 locations.
3210 (break_command_1): Adjust.
3211 (update_static_tracepoint): New.
3212 (update_breakpoint_locations): Handle static tracepoints.
3213 (breakpoint_re_set_one): Handle static tracepoint marker
3214 locations.
3215 (disable_command, enable_command): Handle static tracepoints.
3216 (trace_command, ftrace_command): Adjust.
3217 (strace_command): New.
3218 (create_tracepoint_from_upload): Adjust.
3219 (save_breakpoints): Handle static tracepoints.
3220 (_initialize_breakpoint): Install the "strace" command.
3221 * breakpoint.h (enum bptype): New bp_static_tracepoint type.
3222 (struct breakpoint): New fields static_trace_marker_id and
3223 static_trace_marker_id_idx.
3224 (breakpoints_here_p): Declare.
3225 (create_breakpoint): Adjust.
3226 (static_tracepoints_here): Declare.
3227 * remote.c (struct remote_state) <static_tracepoints>: New field.
3228 (PACKET_qXfer_statictrace_read, PACKET_StaticTracepoints): New.
3229 (remote_static_tracepoint_marker_at): New.
3230 (remote_static_tracepoint_markers_by_strid): New.
3231 (remote_static_tracepoint_feature): New.
3232 (remote_disconnected_tracing_feature): Handle "StaticTracepoints".
3233 (remote_xfer_partial): Handle TARGET_OBJECT_STATIC_TRACE_DATA.
3234 (remote_supports_static_tracepoints): New.
3235 (remote_download_tracepoint): Download static tracepoints.
3236 (init_remote_ops): Install remote_static_tracepoint_marker_at and
3237 remote_static_tracepoint_markers_by_strid.
3238 (_initialize_remote): Install set|show remote static-tracepoints,
3239 and set|show remote read-sdata-object commands.
3240 * target.c (update_current_target): Inherit and default
3241 to_static_tracepoint_marker_at, and
3242 to_static_tracepoint_markers_by_strid.
3243 * target.h (static_tracepoint_marker): Forward declare.
3244 (enum target_object): New object TARGET_OBJECT_STATIC_TRACE_DATA.
889bf7c5 3245 (static_tracepoint_marker_p): New typedef.
0fb4aa4b
PA
3246 (DEF_VEC_P(static_tracepoint_marker_p)): New VEC type.
3247 (struct target_ops): New fields to_static_tracepoint_marker_at and
3248 to_static_tracepoint_markers_by_strid.
3249 (target_static_tracepoint_marker_at)
3250 (target_static_tracepoint_markers_by_strid): New.
3251 * tracepoint.c: Include source.h.
3252 (validate_actionline): Handle $_sdata.
3253 (struct collection_list): New field strace_data.
3254 (add_static_trace_data): New.
3255 (clear_collection_list): Clear strace_data.
3256 (stringify_collection_list): Account for a possible static trace
3257 data collection.
3258 (encode_actions_1): Encode an $_sdata collection.
3259 (parse_tracepoint_definition): Handle static tracepoints.
3260 (parse_static_tracepoint_marker_definition): New.
3261 (release_static_tracepoint_marker): New.
3262 (print_one_static_tracepoint_marker): New.
3263 (info_static_tracepoint_markers_command): New.
3264 (sdata_make_value): New.
3265 (_initialize_tracepoint): Create the $_sdata convenience variable.
3266 Add the "info static-tracepoint-markers" command.
3267 Mention $_sdata in the "collect" command's help output.
3268 * tracepoint.h (struct static_tracepoint_marker): New.
3269 (parse_static_tracepoint_marker_definition)
3270 (release_static_tracepoint_marker): Declare.
3271 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3272 * python/py-breakpoint.c (bppy_new): Adjust.
3273
aac63f0f
JB
32742010-06-30 Joel Brobecker <brobecker@adacore.com>
3275
3276 * python/python-internal.h (_XOPEN_SOURCE): Undefine before
3277 including Python.h.
3278
e68994a7
DE
32792010-06-29 Doug Evans <dje@google.com>
3280
3863f96c
DE
3281 PR gdb/11702
3282 * dwarf2read.c (dwarf2_add_field): Only create a symbol if
3283 DW_AT_external is present.
3284
254e6b9e
DE
3285 PR gdb/11702
3286 * NEWS: Add entry.
3287 * dwarf2read.c (dwarf2_add_field): If DW_AT_const_value is present,
3288 create a symbol for the field and record the value.
3289 (new_symbol): Handle DW_TAG_member.
3290 * gdbtypes.c (field_is_static): Remove FIXME.
3291 * symtab.c (search_symbols): When searching for VARIABLES_DOMAIN,
3292 only ignore LOC_CONST symbols that are enums.
3293
6e70227d
DE
3294 * dwarf2read.c: Remove trailing whitespace.
3295
e68994a7
DE
3296 Delete FIELD_LOC_KIND_DWARF_BLOCK, unused.
3297 * gdbtypes.h (enum field_loc_kind): Delete FIELD_LOC_KIND_DWARF_BLOCK.
3298 (struct main_type, field loc): Delete dwarf_block.
3299 (FIELD_DWARF_BLOCK): Delete.
3300 (SET_FIELD_DWARF_BLOCK): Delete.
3301 (TYPE_FIELD_DWARF_BLOCK): Delete.
3302 * gdb-gdb.py (StructMainTypePrettyPrinter.struct_field_location_img):
3303 Update.
3304
a480d2f6
HZ
33052010-06-29 Hui Zhu <teawater@gmail.com>
3306
3307 * record.c (set_record_pic_cmdlist,
3308 show_record_pic_cmdlist): New variables.
3309 (set_record_pic_command,
3310 show_record_pic_command): New functions.
3311 (record_pic_function, record_pic_line, record_pic_enum,
3312 set_record_pic_type, record_pic_hide_nofunction,
3313 record_pic_hide_nosource, record_pic_hide_same): New variables.
3314 (record_pic_fputs): New function.
3315 (function_list, node_list, edge_list): New struct.
3316 (function_list, node_list, edge_list): New variables.
3317 (record_pic_cleanups, record_pic_node,
3318 record_pic_edge, cmd_record_pic): New functions.
3319 (_initialize_record): Add new commands for record pic.
3320
a0d7a4ff
JK
33212010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3322
3323 * dwarf2read.c (read_structure_type) <fi.typedef_field_list>: Call
3324 ALLOCATE_CPLUS_STRUCT_TYPE.
3325
595939de 33262010-06-28 Phil Muldoon <pmuldoon@redhat.com>
889bf7c5
PA
3327 Tom Tromey <tromey@redhat.com>
3328 Thiago Jung Bauermann <bauerman@br.ibm.com>
595939de
PM
3329
3330 * value.c (pack_unsigned_long): New function.
3331 (value_from_ulongest): New function.
3332 * value.h (value_from_ulongest): Declare.
3333 * python/python.c (_initialize_python): Call
3334 gdbpy_initialize_thread and gdbpy_initialize_inferior.
3335 * python/python-internal.h: Define thread_object.
3336 (gdbpy_inferiors, gdbpy_selected_thread)
3337 (frame_info_to_frame_object, create_thread_object)
3338 (find_thread_object, find_inferior_object)
3339 (gdbpy_initialize_thread, gdbpy_initialize_inferiors)
3340 (gdbpy_is_value_object, get_addr_from_python): Declare.
3341 * python/py-value.c (builtin_type_upylong): Define.
3342 (convert_value_from_python): Add logic for ulongest.
3343 (gdbpy_is_value_object): New function.
3344 * python/py-utils.c (get_addr_from_python): New function.
3345 * python/py-frame.c (frame_info_to_frame_object): Return a PyObject.
3346 (gdbpy_selected_frame): Use PyObject over frame_info.
3347 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-inferior and
3348 py-infthread.
3349 (SUBDIR_PYTHON_SRCS): Likewise.
3350 (py-inferior.o): New Rule.
3351 (py-infthread.o): New Rule.
3352 * python/py-inferior.c: New File.
3353 * python/py-infthread.c: New File.
3354
98751a41
JK
33552010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3356
3357 * c-typeprint.c (c_type_print_base): For no fields check include also
3358 TYPE_TYPEDEF_FIELD_COUNT. Print new typedefs section.
3359 * dwarf2read.c (struct typedef_field_list)
3360 (struct field_info) <typedef_field_list, typedef_field_list_count>: New.
3361 (dwarf2_add_typedef): New.
3362 (read_structure_type): Call dwarf2_add_typedef for DW_TAG_typedef.
3363 Copy also FI.TYPEDEF_FIELD_LIST.
3364 * gdbtypes.h (struct typedef_field)
3365 (struct cplus_struct_type) <typedef_field, typedef_field_count>
3366 (TYPE_TYPEDEF_FIELD_ARRAY, TYPE_TYPEDEF_FIELD, TYPE_TYPEDEF_FIELD_NAME)
3367 (TYPE_TYPEDEF_FIELD_TYPE, TYPE_TYPEDEF_FIELD_COUNT): New.
3368
41f62f39
JK
33692010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3370
3371 * cp-namespace.c (cp_lookup_nested_type): New variable
3372 concatenated_name. Turn the current return condition into a reverse
3373 one. Call also lookup_static_symbol_aux on the constructed qualified
3374 name.
3375 * symtab.c (lookup_symbol_aux): Move variable objfile and searching in
3376 other files into a called ...
3377 (lookup_static_symbol_aux): ... new function here.
3378 * symtab.h (lookup_static_symbol_aux): New prototype.
3379 * valops.c (value_maybe_namespace_elt): Call also
3380 lookup_static_symbol_aux if we failed otherwise.
3381
af53d231
JK
33822010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3383
3384 Fix PR c++/11703 and PR gdb/1448.
3385 * c-exp.y (yylex) <last_was_coloncolon && first_was_coloncolon>: Add
3386 FIRST_ITER check.
3387
9655fd1a
JK
33882010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3389
3390 Fix modification of cplus_struct_default.
3391 * dwarf2read.c (dwarf2_add_member_fn) <no DW_AT_vtable_elem_location>:
3392 Call ALLOCATE_CPLUS_STRUCT_TYPE.
3393 * gdbtypes.c (cplus_struct_default): New empty initializer, comment it.
3394
9279c692
JB
33952010-06-28 Joel Brobecker <brobecker@adacore.com>
3396
3397 * NEWS: Add entry announcing the python directory.
3398
d3f41bb1
TT
33992010-06-28 Tom Tromey <tromey@redhat.com>
3400
3401 * dwarf2read.c (read_structure_type): Allocate null cleanup later.
3402
23e7acfb
DE
34032010-06-28 Doug Evans <dje@google.com>
3404
3405 * breakpoint.c (breakpoint_sals_to_pc): Delete arg address, unused.
3406 All callers updated.
3407
6036c742
JK
34082010-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3409
3410 * cp-valprint.c (cp_print_value_fields) <recurse == 0>: Call
3411 obstack_begin after each obstack_free.
3412
9f18a3b3
DE
34132010-06-27 Doug Evans <dje@google.com>
3414
1596cb5d
DE
3415 * value.c (value_static_field): Use `switch' instead of `if'.
3416 Assert-fail if passed invalid TYPE_FIELD_LOC_KIND.
3417
9f18a3b3
DE
3418 * valops.c (search_struct_field): Fix typo in error message.
3419
43dabe42
UW
34202010-06-26 Ulrich Weigand <uweigand@de.ibm.com>
3421
3422 * dwarf2expr.c (execute_stack_op): Place preprocessor
3423 directives at the start of the source line.
3424
0f3bb72e
PH
34252010-06-25 Paul Hilfinger <hilfinger@adacore.com>
3426
6036c742
JK
3427 * defs.h (make_command_stats_cleanup): Declare.
3428 (set_display_time): Declare.
3429 (set_display_space): Declare.
3430 * event-top.c (command_handler): Use make_command_stats_cleanup.
3431 * main.c (display_time, display_space): Move definitions to utils.c.
3432 (captured_main): Use make_command_stats_cleanup to get start-up
3433 statistics.
3434 Use set_display_time and set_display_space for processing OPT_STATISTICS
3435 case.
3436 * maint.c (maintenance_time_display): Use set_display_time.
3437 (maintenance_space_display): Use set_display_space.
3438 * top.c (execute_command): Remove obsolete 'maint time' code.
3439 (command_loop): Use make_command_stats_cleanup.
3440 * utils.c (struct cmd_stats): Structure for storing initial time
3441 and space usage.
3442 (display_time, display_space): Move definitions here from utils.c.
3443 (set_display_time): New function.
3444 (set_display_space): New function.
3445 (make_command_stats_cleanup): New function.
3446 (report_command_stats): New auxiliary function for
3447 make_command_stats_cleanup.
0f3bb72e 3448
070c8028
UW
34492010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3450
3451 * solib-spu.c (append_ocl_sos): Fix xsnprintf statement for
3452 hosts where CORE_ADDR is long long.
3453
bc9f0842
TT
34542010-06-25 Tom Tromey <tromey@redhat.com>
3455
3456 PR python/10808:
3457 * python/python.c (execute_gdb_command): Add keywords. Accept
3458 "to_string" argument.
3459 (struct restore_ui_file_closure): New.
3460 (restore_ui_file): New function.
3461 (make_cleanup_restore_ui_file): Likewise.
3462 (GdbMethods) <execute>: Update.
3463
c0cc4c83
UW
34642010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3465
3466 * s390-tdep.c (s390_push_dummy_call): Error on stack overflow
3467 during inferior call stack frame setup.
3468
f1d8ee66
UW
34692010-06-25 Ken Werner <ken.werner@de.ibm.com>
3470
3471 * solib-spu.c: Include "exception.h".
3472 (ocl_program_data_key): New variable.
3473 (append_ocl_sos): New function.
3474 (ocl_enable_break): Likewise.
3475 (spu_current_sos): Call append_ocl_sos.
3476 (spu_solib_loaded): Call ocl_enable_break.
3477 (_initialize_spu_solib): Register ocl_program_data_key.
3478
19c0c0f8
UW
34792010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3480
3481 * cp-support.c (reset_directive_searched): New function.
3482 (make_symbol_overload_list_using): Prevent recursive calls.
3483
0f6a939d
PM
34842010-06-25 Phil Muldoon <pmuldoon@redhat.com>
3485
3486 * printcmd.c (print_variable_and_value): Print error message on
3487 caught exception.
3488
f2c7657e
UW
34892010-06-25 Ulrich Weigand <uweigand@de.ibm.com>
3490
3491 * dwarf2expr.h (struct dwarf_value_location): Use ULONGEST as type
3492 of stack values.
3493 (struct dwarf_expr_piece): Rename "expr" member to "mem". Add new
3494 "value" member.
3495 (dwarf_expr_push): Change input type to ULONGEST.
3496 (dwarf_expr_fetch): Change return type to ULONGEST.
3497 (dwarf_expr_fetch_address): Add prototype.
3498 (dwarf2_read_address): Remove prototype.
3499 * dwarf2expr.c (dwarf_expr_push): Use ULONGEST as type of stack values.
3500 Truncate stack values to ctx->addr_size bytes.
3501 (dwarf_expr_fetch): Change return value to ULONGEST.
3502 (dwarf_expr_fetch_address): New function.
3503 (add_piece): Use dwarf_expr_fetch_address instead of dwarf_expr_fetch
3504 when appropriate. Update for struct dwarf_expr_piece changes.
3505 (dwarf2_read_address): Remove.
3506 (unsigned_address_type): Remove.
3507 (signed_address_type): Remove.
3508 (execute_stack_op): Use dwarf_expr_fetch_address instead of
3509 dwarf_expr_fetch when appropriate. Use ULONGEST as type of stack
3510 values. Perform operations on ULONGEST instead of on GDB values,
3511 sign-extending from ctx->addr_size bytes as needed. Read DW_OP_addr
3512 values and DW_OP_deref results as unsigned integers.
3513 * dwarf2loc.c (read_pieced_value): Update for struct dwarf_expr_piece
3514 changes.
3515 (write_pieced_value): Likewise.
3516 (dwarf2_evaluate_loc_desc): Use dwarf_expr_fetch_address instead of
3517 dwarf_expr_fetch when appropriate.
3518 (compile_dwarf_to_ax): Read DW_OP_addr values as unsigned integers.
3519 * dwarf2-frame.c (execute_stack_op): Use dwarf_expr_fetch_address
3520 instead of dwarf_expr_fetch when appropriate.
3521
b1d61bc9
PM
35222010-06-25 Pierre Muller <muller@ics.u-strasbg.fr>
3523
3524 * c-typeprint.c (c_print_typedef): Append new type name for typedefs.
3525
b14285f6
JB
35262010-06-24 Joel Brobecker <brobecker@adacore.com>
3527
3528 * python/python.c (_initialize_python): Add new "constant"
3529 PYTHONDIR in gdb module. Insert this path at the head of
3530 sys.path. Set gdb.__path__ to gdb.PYTHONDIR + '/gdb' and
3531 exec its __init__.py script if it exists in that directory.
3532
fd60dc69
KB
35332010-06-24 Kevin Buettner <kevinb@redhat.com>
3534
3535 * rx-tdep.c (RX_ACC_REGNUM): Define.
3536 (RX_NUM_REGS): Redefine to 26.
3537 (rx_register_name): Add register "acc". Change order of several
3538 registers. Change name of "vct" register to "fintv" to match RX
3539 documentation.
3540 (rx_register_type): Add case for RX_ACC_REGNUM.
3541
18430289
TT
35422010-06-24 Tom Tromey <tromey@redhat.com>
3543
3544 * psymtab.c (lookup_partial_symbol): Mark definition as static.
3545
40618926
JK
35462010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3547 Tom Tromey <tromey@redhat.com>
3548
3549 Fix GDB startup on readonly filesystem.
3550 * charset.c (find_charset_names): Use PEX_USE_PIPES for pex_init.
3551
628fe4e4
JK
35522010-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3553 Pedro Alves <pedro@codesourcery.com>
3554
3555 Fix PR 9436.
3556 * breakpoint.c (handle_jit_event): New function.
3557 (bpstat_what): Remove enum class, kc, ss, sn, sgl, slr, clr, sr, shl,
3558 jit, err, table and bs_class. New variables shlib_event, jit_event,
3559 this_action and bptype. Change bs_class assignments to this_action
3560 assignments. new unhandled bptype internal error. Move here
3561 shlib_event and jit_event handling from handle_inferior_event.
3562 * breakpoint.h (enum bpstat_what_main_action): Extend the comment.
3563 Reorder items. Remove BPSTAT_WHAT_CHECK_SHLIBS and
3564 BPSTAT_WHAT_CHECK_JIT.
3565 * inferior.h (debug_infrun, stop_on_solib_events): New declarations.
3566 * infrun.c (debug_infrun, stop_on_solib_events): Remove static.
3567 (handle_inferior_event): Reinitialize frame and gdbarch after
3568 bpstat_what call. Move BPSTAT_WHAT_CHECK_SHLIBS and
3569 BPSTAT_WHAT_CHECK_JIT handling to bpstat_what. Reinitialize even
3570 gdbarch when frame gets reinitialized.
3571
f1421989
HZ
35722010-06-24 Hui Zhu <teawater@gmail.com>
3573
3574 * printcmd.c (ui_printf): New function.
3575 (printf_command): Call ui_printf.
3576 (_initialize_printcmd): New command "eval".
3577
d03285ec
UW
35782010-06-23 Ulrich Weigand <uweigand@de.ibm.com>
3579
3580 * infrun.c (handle_inferior_event): Handle presence of single-step
3581 breakpoints for TARGET_WAITKIND_FORKED and TARGET_WAITKIND_VFORKED.
3582 Cancel single-step breakpoints for TARGET_WAITKIND_EXITED,
3583 TARGET_WAITKIND_SIGNALED, and TARGET_WAITKIND_EXECD.
3584 * breakpoint.c (detach_single_step_breakpoints): New function.
3585 (detach_breakpoints): Call it.
3586 (cancel_single_step_breakpoints): New function.
3587 * breakpoint.h (cancel_single_step_breakpoints): Add prototype.
3588
3589 * spu-tdep.c (spu_memory_remove_breakpoint): New function.
3590 (spu_gdbarch_init): Install it.
3591
38f6b338
JK
35922010-06-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3593
3594 * configure.ac: Always set RDYNAMIC at least as `-rdynamic'.
3595 * configure: Regenerate.
3596
bb08c432
HZ
35972010-06-22 Hui Zhu <teawater@gmail.com>
3598
3599 * i386-tdep.c (i386_record_lea_modrm): Change warning to query.
3600 (i386_process_record): Ditto.
3601 * record.c (record_memory_query): New variable.
3602 (_initialize_record): New command "set record memory-query".
3603 * record.h (record_memory_query): New extern.
3604
b55078be
DE
36052010-06-21 Doug Evans <dje@google.com>
3606
3607 * i386-tdep.h (i386_displaced_step_copy_insn): Declare.
3608 * i386-tdep.c (i386_displaced_step_copy_insn): New function.
3609 (i386_syscall_p): Change type of lengthp to int.
3610 (i386_displaced_step_fixup): Handle kernels that run one past a
3611 syscall insn.
3612 * i386-linux-tdep.c (i386_linux_init_abi): Use
3613 i386_displaced_step_copy_insn instead of
3614 simple_displaced_step_copy_insn.
3615
75079b2b
TT
36162010-06-21 Tom Tromey <tromey@redhat.com>
3617
3618 * dwarf2read.c (read_base_type): Handle DW_ATE_UTF.
3619 (dwarf_type_encoding_name): Likewise.
3620
b00fdb78
TT
36212010-06-21 Tom Tromey <tromey@redhat.com>
3622
3623 * p-valprint.c (pascal_val_print): Use TYPE_ERROR_NAME.
3624 * p-typeprint.c (pascal_type_print_base): Use TYPE_ERROR_NAME.
3625 * m2-valprint.c (m2_val_print): Use TYPE_ERROR_NAME.
3626 * gdbtypes.h (TYPE_ERROR_NAME): New macro.
3627 * f-valprint.c (f_val_print): Use TYPE_ERROR_NAME.
3628 * f-typeprint.c (f_type_print_base): Use TYPE_ERROR_NAME.
3629 * dwarf2read.c (tag_type_to_type): Create a new error type on
3630 failure.
3631 * c-valprint.c (c_val_print): Use TYPE_ERROR_NAME.
3632 * c-typeprint.c (c_type_print_base): Use TYPE_ERROR_NAME.
3633
84951ab5
MS
36342010-06-21 Michael Snyder <msnyder@vmware.com>
3635
889bf7c5 3636 * breakpoint.c (_initialize_breakpoint): Use add_prefix_cmd,
84951ab5
MS
3637 not add_abbrev_prefix_cmd, for "enable breakpoints".
3638
d4a087c7
UW
36392010-06-21 Ulrich Weigand <uweigand@de.ibm.com>
3640
3641 * dwarf2loc.c (find_location_expression): Add relocation offset
3642 to base-address-selection entry base addresses. Read addresses
3643 (and offsets) as signed/unsigned integers, depending on the
3644 BFD's sign_extend_vma flag. Do not call dwarf2_read_address.
3645 (loclist_describe_location): Likewise.
3646 (disassemble_dwarf_expression): Read DW_OP_addr operand as
3647 unsigned integer. Do not call dwarf2_read_address.
3648 (locexpr_describe_location): Likewise for DW_OP_GNU_push_tls_address.
3649
13def385
UW
36502010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3651
3652 * spu-tdep.c (spu_frame_unwind_cache): Use LSLR register
3653 value instead of hard-coded SPU_LS_SIZE.
3654 (spu_software_single_step): Likewise.
3655 * spu-tdep.h (SPU_LS_SIZE): Remove.
3656
d2ed6730
UW
36572010-06-19 Ulrich Weigand <uweigand@de.ibm.com>
3658
3659 * spu-multiarch.c (spu_xfer_partial): Wrap around local store
3660 limit on local store memory accesses.
3661 * spu-linux-nat.c (spu_xfer_partial): Likewise.
3662 * spu-tdep.c (spu_lslr): Remove.
3663 (spu_pointer_to_address): Do not truncate addresses.
3664 (spu_integer_to_address): Likewise.
3665 (spu_overlay_new_objfile): Use SPU_OVERLAY_LMA.
3666 * spu-tdep.h: Add comments.
3667 (SPUADDR_SPU): Respect SPU_OVERLAY_LMA bit.
3668 (SPU_OVERLAY_LMA): Define.
3669
6aed2dbc
SS
36702010-06-18 Stan Shebs <stan@codesourcery.com>
3671
a61408f8
SS
3672 * osdata.c (get_osdata): Warn separately if target does not report
3673 type list.
3674 (info_osdata_command): Allow empty type, report error if target
3675 does not return available types of OS data.
3676 * linux-nat.c (linux_nat_xfer_osdata): Report list of OS data
3677 types if no annex supplied.
3678
6aed2dbc
SS
3679 * thread.c (thread_id_make_value): Make a value representing the
3680 current thread.
3681 (_initialize_thread): Create $_thread.
3682
ec61707d
JB
36832010-06-17 Joel Brobecker <brobecker@adacore.com>
3684
3685 * dwarf2read.c (psymtabs_addrmap_cleanup): Add empty line after
3686 last local variable declaration. No real code change.
3687
60606b2c
TT
36882010-06-17 Tom Tromey <tromey@redhat.com>
3689
3690 * dwarf2read.c (psymtabs_addrmap_cleanup): New function.
3691 (dwarf2_build_psymtabs_hard): Use it. Create addrmap on a
3692 temporary obstack.
3693
65d79d4b
SDJ
36942010-06-16 Sergio Durigan Junior <sergiodj@redhat.com>
3695 Jan Kratochvil <jan.kratochvil@redhat.com>
3696
3697 * breakpoint.c: Include parser-defs.h.
3698 (watchpoint_exp_is_const): New function.
3699 (watch_command_1): Call watchpoint_exp_is_const to check
3700 if the expression is constant.
3701
0407b3f1
AS
37022010-06-15 Andreas Schwab <schwab@linux-m68k.org>
3703
3704 * configure.ac: Check for RDYNAMIC also for cross builds.
3705 * configure: Regenerate.
3706
98d64339
PA
37072010-06-15 Pedro Alves <pedro@codesourcery.com>
3708
3709 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
3710 (SFILES): Remove solib-null.c, add solib-target.c.
3711 (COMMON_OBS): Remove solib-null.o, add solib-target.o.
3712 (ALLDEPFILES): Remove solib-target.c.
3713 * solib-target.c (_initialize_solib_target): Set
3714 current_target_so_ops to solib_target_so_ops if not already set.
3715 * solib-null.c: Delete.
3716
6a271cae
PA
37172010-06-14 Pedro Alves <pedro@codesourcery.com>
3718
3719 * NEWS: Mention GDBserver's JIT compilation of tracepoint
3720 bytecode.
3721
1e9beacb
UW
37222010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3723
3724 * cp-valprint.c (cp_print_static_field): Members of
3725 dont_print_stat_array_obstack are of type "struct type *".
3726 (_initialize_cp_valprint): Likewise.
3727
21a176fb
UW
37282010-06-14 Ulrich Weigand <uweigand@de.ibm.com>
3729
3730 * frame.c (frame_register_unwind): Do not access contents
3731 of "optimized out" unwound register value.
3732
25b524e8
JK
37332010-06-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3734
3735 * ada-lang.h (ada_print_type): Make varstring const.
3736 * ada-typeprint.c (print_func_type): Make name const.
3737 (ada_print_type): Make varstring const.
3738 * c-lang.h (c_print_type): Make varstring const.
3739 * c-typeprint.c (c_print_type): Likewise.
3740 * f-lang.h (f_print_type): Likewise.
3741 * f-typeprint.c (f_print_type): Likewise.
3742 * jv-lang.h (java_print_type): Likewise.
3743 * jv-typeprint.c (java_print_type): Likewise.
3744 * language.c (unk_lang_print_type): Likewise.
3745 * language.h (struct language_defn) <la_print_type>: Likewise.
3746 * m2-lang.h (m2_print_type): Likewise.
3747 * m2-typeprint.c (m2_print_type): Likewise.
3748 * p-lang.h (pascal_print_type): Likewise.
3749 * p-typeprint.c (pascal_print_type): Likewise.
3750
d914c394
SS
37512010-06-11 Stan Shebs <stan@codesourcery.com>
3752
3753 Add per-operation permission flags.
3754
3755 * target.h (struct target_ops): New method to_set_permissions.
3756 (target_set_permissions): New macro.
3757 (target_insert_breakpoint): Change macro to function.
3758 (target_remove_breakpoint): Ditto.
3759 (target_stop): Ditto.
3760 (may_write_registers): Declare.
3761 (may_write_memory): Declare.
3762 (may_insert_breakpoints): Declare.
3763 (may_insert_tracepoints): Declare.
3764 (may_insert_fast_tracepoints): Declare.
3765 (may_stop): Declare.
3766 * target.c (may_write_registers, may_write_registers_1): New globals.
3767 (may_write_memory, may_write_memory_1): New globals.
3768 (may_insert_breakpoints, may_insert_breakpoints_1): New globals.
3769 (may_insert_tracepoints, may_insert_tracepoints_1): New globals.
3770 (may_insert_fast_tracepoints, may_insert_fast_tracepoints_1): New
3771 globals.
3772 (may_stop, may_stop_1): New global.
3773 (target_xfer_partial): Test for write permission.
3774 (target_store_registers): Ditto.
3775 (target_insert_breakpoint): New function.
3776 (target_remove_breakpoint): New function.
3777 (target_stop): New function.
3778 (_initialize_targets): Add new set/show variables.
3779 (set_write_memory_permission): New function.
3780 (update_target_permissions): New function.
3781 (set_target_permissions): New function.
3782 (update_current_target): Default to_set_permissions.
3783 (_initialize_targets): Use new globals and setter function.
3784 * tracepoint.c (start_tracing): Test for permission.
3785 * inferior.h (update_observer_mode): Declare.
3786 * infrun.c (non_stop_1): Define earlier.
3787 (observer_mode, observer_mode_1): New globals.
3788 (set_observer_mode, show_observer_mode): New functions.
3789 (update_observer_mode): New function.
3790 (_initialize_infrun): Define "set observer" command.
3791 * remote.c (PACKET_QAllow): New optional packet.
3792 (remote_protocol_features): Add QAllow.
3793 (remote_set_permissions): New function.
3794 (remote_start_remote): Call it.
3795 (init_remote_ops): Add it to target vector.
3796 (_initialize_remote): Add config command for QAllow.
3797
aec5aa8b
TT
37982010-06-11 Tom Tromey <tromey@redhat.com>
3799
3800 * dwarf2read.c (dwarf2_add_member_fn): Handle correct form of
3801 DW_AT_vtable_elem_location even when GCC extension is seen.
3802
0e03807e
TT
38032010-06-11 Tom Tromey <tromey@redhat.com>
3804
3805 PR gdb/9977, PR exp/11636:
3806 * value.h (value_offset): Update.
3807 (struct lval_funcs) <check_validity>: New field.
3808 <copy_closure>: Make argument const.
3809 (value_computed_closure): Update.
3810 (value_contents_for_printing): Declare.
3811 (value_bits_valid): Likewise.
3812 (val_print): Likewise.
3813 (set_value_component_location): Update.
3814 (value_entirely_optimized_out): Declare.
3815 * value.c (value_offset): Argument now const.
3816 (require_not_optimized_out): New function.
3817 (value_contents_for_printing): New function.
3818 (value_contents_all): Call require_not_optimized_out.
3819 (value_contents): Likewise.
3820 (value_bits_valid): New function.
3821 (value_computed_closure): Argument now const.
3822 (set_value_component_location): Make 'whole' argument const.
3823 (value_entirely_optimized_out): New function.
3824 (value_bitsize): Argument now 'const'.
3825 (value_bitpos): Likewise.
3826 (value_type): Likewise.
3827 * valprint.h (val_print_array_elements): Update.
3828 * valprint.c (val_print): Add 'val' argument. Use
3829 valprint_check_validity.
3830 (valprint_check_validity): New function.
3831 (value_check_printable): Use value_entirely_optimized_out.
3832 (common_val_print): Update.
3833 (value_print): Likewise.
3834 (val_print_array_elements): Add 'val' argument.
3835 * valops.c (value_fetch_lazy): Use value_contents_for_printing,
3836 value_bits_valid. Reinit frame cache for lval_computed.
3837 * sh64-tdep.c (sh64_do_register): Update.
3838 * scm-valprint.c (scm_val_print): Add 'val' argument.
3839 * scm-lang.h (scm_val_print): Update.
3840 * python/python.h (apply_val_pretty_printer): Update.
3841 * python/py-prettyprint.c (apply_val_pretty_printer): Add 'val'
3842 argument. Call set_value_component_location.
3843 * printcmd.c (print_scalar_formatted): Update.
3844 * p-valprint.c (pascal_val_print): Add 'val' argument.
3845 (pascal_object_print_value_fields): Likewise.
3846 (pascal_object_print_value): Likewise.
3847 (pascal_object_print_static_field): Update.
3848 * p-lang.h (pascal_val_print): Update.
3849 (pascal_object_print_value_fields): Update.
3850 * mt-tdep.c (mt_registers_info): Update.
3851 * mi/mi-main.c (get_register): Update.
3852 (mi_cmd_data_evaluate_expression): Use common_val_print.
3853 * m2-valprint.c (m2_print_array_contents): Add 'val' argument.
3854 (m2_print_unbounded_array): Likewise.
3855 (m2_val_print): Likewise.
3856 * m2-lang.h (m2_val_print): Update.
3857 * language.h (struct language_defn) <la_val_print>: Add 'val'
3858 argument.
3859 (LA_VAL_PRINT): Likewise.
3860 * language.c (unk_lang_val_print): Add 'val' argument.
3861 * jv-valprint.c (java_print_value_fields): Add 'val' argument.
3862 (java_val_print): Likewise.
3863 * jv-lang.h (java_val_print): Add 'val' argument.
3864 * infcmd.c (default_print_registers_info): Update.
3865 * f-valprint.c (f77_print_array_1): Add 'val' argument.
3866 (f77_print_array): Likewise.
3867 (f_val_print): Likewise.
3868 * f-lang.h (f_val_print): Add 'val' argument.
3869 * dwarf2loc.c (read_pieced_value): Use value_bitsize and
3870 value_bitpos.
3871 <DWARF_VALUE_OPTIMIZED_OUT>: Don't print warning. Call
3872 set_value_optimized_out.
3873 (write_pieced_value): Use value_bitsize and value_bitpos.
3874 <default>: Don't exit loop.
3875 (check_pieced_value_validity): New function.
3876 (pieced_value_funcs): Reference check_pieced_value_validity,
3877 check_pieced_value_invalid.
3878 (copy_pieced_value_closure): Update.
3879 (check_pieced_value_bits): New function.
3880 (check_pieced_value_invalid): New function.
3881 * d-valprint.c (dynamic_array_type): Add 'val' argument.
3882 (d_val_print): Likewise.
3883 * d-lang.h (d_val_print): Update.
3884 * cp-valprint.c (cp_print_value_fields): Add 'val' argument.
3885 (cp_print_value_fields_rtti): Likewise.
3886 (cp_print_value): Likewise.
3887 (cp_print_static_field): Update.
3888 * c-valprint.c (c_val_print): Add 'val' argument.
3889 (c_value_print): Update.
3890 * c-lang.h (c_val_print): Update.
3891 (cp_print_value_fields): Likewise.
3892 (cp_print_value_fields_rtti): Likewise.
3893 * ada-valprint.c (struct ada_val_print_args): Remove.
3894 (val_print_packed_array_elements): Add 'val' argument.
3895 (ada_val_print): Likewise. Rewrite.
3896 (ada_val_print_stub): Remove.
3897 (ada_val_print_array): Add 'val' argument.
3898 (ada_val_print_1): Likewise.
3899 (print_variant_part): Likewise.
3900 (ada_value_print): Update.
3901 (print_record): Add 'val' argument.
3902 (print_field_values): Likewise.
3903 * ada-lang.h (ada_val_print): Update.
3904
3cf03773
TT
39052010-06-11 Tom Tromey <tromey@redhat.com>
3906
3907 * vec.h (VEC_cleanup): New macro.
3908 (DEF_VEC_ALLOC_FUNC_I): Update.
3909 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3910 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3911 * dwarf2loc.c (struct axs_var_loc): Remove.
3912 (unimplemented): New function.
3913 (translate_register): Likewise.
3914 (access_memory): Likewise.
3915 (compile_dwarf_to_ax): Likewise.
3916 (dwarf2_tracepoint_var_loc): Remove.
3917 (dwarf2_tracepoint_var_access): Likewise.
3918 (dwarf2_tracepoint_var_ref): Likewise.
3919 (locexpr_tracepoint_var_ref): Use compile_dwarf_to_ax.
3920 (loclist_tracepoint_var_ref): Likewise.
3921 * dwarf2expr.h (dwarf_expr_require_composition): Declare.
3922 * dwarf2expr.c (dwarf_expr_require_composition): Rename from
3923 require_composition. No longer static.
3924 (execute_stack_op): Update.
3925 * ax-gdb.h (trace_kludge): Declare.
3926
2bdf28a0
JK
39272010-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3928
3929 * breakpoint.c (breakpoint_restore_shadows): New OWNER comment.
3930 (should_be_inserted): Return zero also on NULL OWNER.
3931 (breakpoint_program_space_exit): New OWNER comment.
3932 (insert_breakpoint_locations): Extend comment for OWNER.
3933 (remove_breakpoint_1, remove_breakpoint): Assert on OWNER.
3934 (breakpoint_init_inferior, breakpoint_here_p, breakpoint_thread_match):
3935 New OWNER comment.
3936 (print_it_typical): Return PRINT_UNKNOWN on NULL OWNER.
3937 (watchpoint_check): New assert on BREAKPOINT_AT and OWNER.
3938 (bpstat_check_location): New assert on OWNER.
3939 (bpstat_check_watchpoint, bpstat_check_breakpoint_conditions): Move BL
3940 and B initializations to the code block. New assert on them.
3941 (print_one_breakpoint_location): New OWNER comment.
3942 (watchpoint_locations_match): Assert on OWNER.
3943 (breakpoint_locations_match): Move HW_POINT1 and HW_POINT2
3944 initializations to the code block. New assert on OWNER.
3945 (set_breakpoint_location_function): New assert on OWNER.
3946 (disable_breakpoints_in_shlibs, disable_breakpoints_in_unloaded_shlib)
3947 (bp_location_compare, update_global_location_list)
3948 (update_global_location_list): New OWNER comment.
3949
5b9a19af
UW
39502010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3951
3952 * Makefile.in (HFILES_NO_SRCDIR): Remove config/i386/nm-linux.h
3953
669211f5
UW
39542010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3955
3956 * config/nm-linux.h (struct target_ops): Remove forward declaration.
3957 (lin_thread_get_thread_signals): Remove prototype.
3958 (GET_THREAD_SIGNALS): Remove.
3959 * linux-nat.h (lin_thread_get_thread_signals): Add prototype.
3960 * linux-thread-db.c (check_thread_signals): Directly call
3961 lin_thread_get_thread_signals; do not check GET_THREAD_SIGNALS.
3962
b7a8b4ef
UW
39632010-06-09 Ulrich Weigand <uweigand@de.ibm.com>
3964
3965 * gregset.h (GDB_FPXREGSET_T): Remove.
3966 (gdb_fpxregset_t): Likewise.
3967 (supply_fpxregset): Remove prototype.
3968 (fill_fpxregset): Likewise.
3969 * i386-linux-nat.c (supply_fpxregset): Remove.
3970 (fill_fpxregset): Likewise.
3971 (fetch_fpxregs): Inline supply_fpxregset call.
3972 (store_fpxregs): Inline fill_fpxregset call.
3973
3974 * config/i386/linux.mh: Set NAT_FILE to config/nm-linux.h.
3975 * config/i386/nm-linux.h: Remove file.
3976
82892036
MS
39772010-06-09 Michael Snyder <msnyder@vmware.com>
3978
3979 * target.c (update_current_target): Fix spelling error in comment.
3980 (target_mourn_inferior): Fix spelling error in error message.
3981
5ddb52fa
PH
39822010-06-08 Paul Hilfinger <hilfingr@adacore.com>
3983
3984 * dictionary.h (dict_iter_name_first, dict_iter_name_next): Refer to
3985 SYMBOL_SEARCH_NAME, not SYMBOL_BEST_NAME, in comments.
3986
0f2caa1b
MS
39872010-06-08 Michael Snyder <msnyder@vmware.com>
3988
3989 * remote.c (remote_close): Set inferior_ptid to null_ptid.
3990
3bebe2f2
JK
39912010-06-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3992
3993 * configure.ac <"${have_libpython}" != no>: New workaround of
3994 python#4434.
3995 * configure: Regenerate.
3996
eaaffdf4
HZ
39972010-06-08 Hui Zhu <teawater@gmail.com>
3998
3999 * record.c (record_wait): Move signal out of replay code.
4000
5c631832
JK
40012010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4002
4003 Fix PR 10640.
4004 * dwarf2-frame.c (no_dwarf_call): New function.
4005 (execute_stack_op): Set CTX->DWARF_CALL.
4006 * dwarf2expr.c (execute_stack_op) <DW_OP_call2, DW_OP_call4>: New.
4007 * dwarf2expr.h (struct dwarf_expr_context) <dwarf_call>: New.
4008 (struct dwarf_expr_context) <get_subr>: Remove the #if0-ed field.
4009 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call): New functions.
4010 (dwarf2_evaluate_loc_desc): Initialize CTX->DWARF_CALL.
4011 (needs_frame_dwarf_call): New function.
4012 (dwarf2_loc_desc_needs_frame): Initialize CTX->DWARF_CALL.
4013 * dwarf2read.c (follow_die_offset): Based on former follow_die_ref.
4014 Update the comment. Move variables die, offset and error call to ...
4015 (follow_die_ref): ... a new function.
4016 (dwarf2_fetch_die_location_block): New function.
4017 * dwarf2loc.h (dwarf2_fetch_die_location_block): New prototype.
4018
17ea53c3
JK
40192010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4020
4021 * dwarf2loc.c (struct dwarf_expr_baton) Replace objfile by per_cu.
4022 (dwarf_expr_tls_address): Use per_cu instead of objfile.
4023 (dwarf2_evaluate_loc_desc): Drop initialization of BATON.OBJFILE.
4024 Initialize new BATON.PER_CU. Adjust CTX->GDBARCH initialization for
4025 this change.
4026 (struct needs_frame_baton): New field per_cu.
4027 (dwarf2_loc_desc_needs_frame): Initialize new BATON.PER_CU.
4028 * dwarf2read.c (struct dwarf2_per_cu_data) <cu>: Extend the comment.
4029
245040d7
SW
40302010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4031
4032 * cp-support.c (make_symbol_overload_list_namespace): Only search
4033 static and global blocks.
4034 (make_symbol_overload_list_block): New function.
4035 (make_symbol_overload_list): Separate namespace search from block
4036 search.
4037 (make_symbol_overload_list_qualified): Use
4038 make_symbol_overload_list_block.
4039
4c3376c8
SW
40402010-06-07 Sami Wagiaalla <swagiaal@redhat.com>
4041
4042 * value.h: Created oload_search_type enum.
4043 (find_overload_match): Use oload_search_type enum.
4044 * valops.c (find_overload_match): Support combined member and
4045 non-member search.
4046 * eval.c (evaluate_subexp_standard): Calls to
4047 find_overload_match now use oload_search_type enum.
4048 (oload_method_static): Verify index is a proper value.
4049 * valarith.c (value_user_defined_cpp_op): Search for and handle
4050 both member and non-member operators.
4051 (value_user_defined_cpp_op): New function.
4052 (value_user_defined_op): New function.
4053 (value_x_unop): Use value_user_defined_op.
4054 (value_x_binop): Ditto.
4055 * cp-support.c (make_symbol_overload_list_using): Added block
4056 iteration.
4057 Add check for namespace aliases and imported declarations.
4058
ee55da67
JK
40592010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4060
4061 * breakpoint.h (owner): Extend the comment.
4062
1a2ab13a
JK
40632010-06-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4064
4065 Clear stale specific bp_location from former whole breakpoint.
4066 * breakpoint.c (delete_breakpoint): Move the stale referencing clear
4067 code ...
4068 (free_bp_location): ... here. Rename there the called function to
4069 bpstat_remove_bp_location_callback.
4070 (bpstat_remove_breakpoint_callback): Rename to ...
4071 (bpstat_remove_bp_location_callback): ... here, change DATA resolution
4072 to struct bp_location. Change the called function to
4073 bpstat_remove_bp_location. Create new declaration for the function.
4074 (bpstat_remove_breakpoint): Rename to ...
4075 (bpstat_remove_bp_location): ..., change the parameter to loc, adjust
4076 code for the new parameter type.
4077
16d6b4b7
NS
40782010-06-07 Nathan Sidwell <nathan@codesourcery.com>
4079
4080 * README: Make version-agnostic.
4081
7e314c57
JK
40822010-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4083
4084 Fix duplicate types for single DIE.
4085 * dwarf2read.c (read_structure_type): Move set_descriptive_type after
4086 set_die_type.
4087 (read_array_type): Remove type initialization. Recheck get_die_type
4088 after initial die_type. Move set_die_type before set_descriptive_type.
4089 (read_set_type): New variable domain_type. Recheck get_die_type after
4090 initial die_type. Move attr initialization later.
4091 (read_tag_pointer_type, read_tag_reference_type): New variable
4092 target_type. Recheck get_die_type after initial die_type.
4093 (read_tag_ptr_to_member_type): Recheck get_die_type after initial
4094 die_type and die_containing_type.
4095 (read_tag_const_type, read_tag_volatile_type, read_subroutine_type):
4096 Recheck get_die_type after initial die_type.
4097 (read_subrange_type): Recheck get_die_type after initial die_type.
4098 Move set_die_type before set_descriptive_type.
4099 (set_die_type): Extend the function comment. Call complaint if DIE has
4100 some type already set.
4101
2f296114
VP
41022010-06-05 Vladimir Prus <vladimir@codesourcery.com>
4103
4104 * mi/mi-main.c (mi_cmd_list_thread_groups): Adjust
4105 for current naming of thread groups (iN, not N).
4106
554794dc
SDJ
41072010-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
4108
4109 * ada-lang.c (ada_operator_length): Constify `struct expression'.
4110 * parse.c (operator_length): Likewise.
4111 (operator_length_standard): Likewise.
4112 * parser-defs.h (operator_length): Likewise.
4113 (operator_length_standard): Likewise.
4114 (struct exp_descriptor <operator_length>): Likewise.
4115
967cf477
DE
41162010-06-04 Doug Evans <dje@google.com>
4117
bddaacb9 4118 Add support for enabling/disabling individual pretty-printers.
967cf477
DE
4119 * python/py-prettyprint.c (search_pp_list): Skip disabled printers.
4120 * python/python-internal.h (gdbpy_enabled_cst): Declare.
4121 * python/python.c (gdbpy_enabled_cst): Define.
4122 (_initialize_python): Initialize gdbpy_enabled_cst.
4123 * NEWS: Add entry.
4124
2dec564e
JK
41252010-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4126
4127 * breakpoint.c (update_global_location_list): Fix comment typo.
4128
44b5680a
HZ
41292010-06-04 Hui Zhu <teawater@gmail.com>
4130
4131 * dwarf2loc.c (disassemble_dwarf_expression): Change ul to l.
4132
e7a30f46
DE
41332010-06-03 Doug Evans <dje@google.com>
4134
4135 * configure.ac: Don't fail if python is unusable when
4136 configured with --with-python=auto.
4137 * configure: Regenerate.
4138
84b4420f
SW
41392010-06-03 Sami Wagiaalla <swagiaal@redhat.com>
4140
889bf7c5 4141 * dwarf2read.c (new_symbol): Remove redundant naming of symbol.
84b4420f 4142
df178451
PM
41432010-06-03 Pierre Muller <muller@ics.u-strasbg.fr>
4144
4145 * valprint.h (get_array_bounds): Change low and high parameter types
4146 to LONGEST *.
0407b3f1 4147 * valprint.c (get_array_bounds): Use get_discrete_bounds call to
df178451
PM
4148 compute bounds.
4149 (val_print_array_elements): Adapt to change above.
4150 * ada-valprint.c (print_optional_low_bound): Adapt to change above.
4151 * p-valprint.c (pascal_val_print): Likewise.
4152
fd5700c7
JK
41532010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4154
4155 * symfile.c (init_filename_language_table): New extensions .for, .FOR,
4156 .ftn, .FTN, .fpp, .FPP, .f90, .F90, .f95, .F95, .f03, .F03, .f08 and
4157 .F08.
4158
f55ee35c
JK
41592010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4160
4161 Support DW_TAG_module as separate namespaces.
4162 * dwarf2read.c (typename_concat): New parameter physname.
4163 (read_module_type): New function and declaration.
4164 (scan_partial_symbols): Scan also DW_TAG_module children.
4165 (partial_die_parent_scope): Accept scope even from DW_TAG_module. Pass
4166 to typename_concat backward compatible physname value 0.
4167 (partial_die_full_name, read_namespace_type): Pass to typename_concat
4168 backward compatible physname value 0.
4169 (add_partial_module, read_module): Remove FIXME comment.
4170 (process_die) <DW_TAG_module>: Set PROCESSING_HAS_NAMESPACE_INFO.
4171 (die_needs_namespace) <DW_TAG_variable>: Allow returning true even for
4172 DIEs under DW_TAG_module.
4173 (dwarf2_compute_name): Move the ada block for DW_AT_linkage_name and
4174 DW_AT_MIPS_linkage_name first, extend it for language_fortran
4175 && physname and return there instead of just setting NAME. Extend
4176 the main block for language_fortran. Pass physname parameter to the
4177 typename_concat call.
4178 (read_import_statement, read_func_scope, get_scope_pc_bounds)
4179 (load_partial_dies, determine_prefix): Support also DW_TAG_module.
4180 (new_symbol): Fill in cplus_specific.demangled_name if it is still
4181 missing from SYMBOL_SET_NAMES in the language_fortran case.
4182 (new_symbol) <DW_TAG_variable>: Force LOC_UNRESOLVED for gfortran module
4183 variables.
4184 (read_type_die) <DW_TAG_module>: New.
4185 (MAX_SEP_LEN): Increase to 7.
4186 (typename_concat): New parameter physname. New variable lead. Support
4187 also language_fortran.
4188 * f-exp.y (yylex): Consider : also as a symbol name character class.
4189 * f-lang.c: Include cp-support.h.
4190 (f_word_break_characters, f_make_symbol_completion_list): New functions.
4191 (f_language_defn): Use cp_lookup_symbol_nonlocal,
4192 f_word_break_characters and f_make_symbol_completion_list.
4193 * f-typeprint.c (f_type_print_base) <TYPE_CODE_MODULE>: New.
4194 * gdbtypes.h (enum type_code) <TYPE_CODE_MODULE>: New.
4195 * symtab.c (symbol_init_language_specific): Support language_fortran.
4196 (symbol_find_demangled_name): New comment on language_fortran.
4197 (symbol_natural_name, symbol_demangled_name): Use demangled_name even
4198 for language_fortran.
4199 (lookup_symbol_aux_local): Check imports also for language_fortran.
4200 (default_make_symbol_completion_list): Rename to ...
4201 (default_make_symbol_completion_list_break_on): ... this name. New
4202 parameter break_on, use it.
4203 (default_make_symbol_completion_list): New stub.
4204 * symtab.h (default_make_symbol_completion_list_break_on): New
4205 prototype.
4206
cb91c06a
JB
42072010-06-02 Joel Brobecker <brobecker@adacore.com>
4208
4209 * remote.c (remote_get_noisy_reply): Remove trailing "\n" in call
4210 to error.
4211
5c315b68
JK
42122010-06-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4213
4214 * dwarf2read.c (typename_concat): Add const to the variable sep.
4215
9eae7c52
TT
42162010-06-02 Tom Tromey <tromey@redhat.com>
4217
4218 * dwarf2loc.h (dwarf2_per_cu_data): Declare.
4219 * dwarf2read.c (dwarf_stack_op_name): No longer static. Return
4220 type is const. Add 'def' argument. Add missing operators, remove
4221 unhandled ones.
4222 (decode_locdesc): Update.
4223 (dwarf2_always_disassemble): New global.
4224 (show_dwarf2_always_disassemble): New function.
4225 (_initialize_dwarf2_read): Add always-disassemble.
4226 (dwarf2_per_cu_offset_size): New function.
4227 * dwarf2loc.c (dwarf2_always_disassemble): Declare.
4228 (piece_end_p): New function.
4229 (locexpr_describe_location_piece): Replace 'size' argument with
4230 'end'. Use piece_end_p. Rewrite recognition of TLS. Recognize
4231 some constants. Remove errors.
4232 (disassemble_dwarf_expression): New function.
4233 (locexpr_describe_location_1): Use disassemble_dwarf_expression.
4234 Add 'offset_size' argument.
4235 (loclist_describe_location): Change output formatting.
4236 * dwarf2expr.h (dwarf_stack_op_name): Declare.
4237
7d3fe98e
SW
42382010-06-02 Sami Wagiaalla <swagiaal@redhat.com>
4239
4240 * cp-support.c (make_symbol_overload_list_adl_namespace): Handle
4241 anonymous type case.
4242
e77813c8
PM
42432010-06-02 Pierre Muller <muller@ics.u-strasbg.fr>
4244
4245 * dwarf2read.c (read_subrange_type): Handle missing base type
4246 according to Dwarf-2 specifications.
4247
7cf3118a
SDJ
42482010-06-01 Sergio Durigan Junior <sergiodj@redhat.com>
4249
4250 * expprint.c (print_subexp_standard): Remove exp_opcodes BINOP_INCL,
4251 BINOP_EXCL.
4252 (op_name_standard): Remove exp_opcodes BINOP_INCL, BINOP_EXCL,
4253 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH.
4254 (dump_subexp_body_standard): Remove exp_opcodes BINOP_INCL,
4255 BINOP_EXCL, UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD,
4256 UNOP_CHMAX, UNOP_CHMIN.
4257 * expression.h (enum exp_opcode) <BINOP_INCL, BINOP_EXCL,
4258 UNOP_LOWER, UNOP_UPPER, UNOP_LENGTH, UNOP_CARD, UNOP_CHMAX,
4259 UNOP_CHMIN>: Remove opcodes.
4260
ae4d0c03
PM
42612010-06-01 Pierre Muller <muller@ics.u-strasbg.fr>
4262
4263 * dwarf2read.c (read_func_scope): Do not complain for
4264 external function if bounds are not found.
4265
fa593d66
PA
42662010-06-01 Pedro Alves <pedro@codesourcery.com>
4267
4268 * NEWS: Mention gdbserver fast tracepoints support.
4269
cd44747c
PM
42702010-05-31 Pierre Muller <muller@ics.u-strasbg.fr>
4271
4272 * windows-nat.c (GetConsoleFontSize, GetCurrentConsoleFont):
4273 New macros.
4274 (windows_set_console_info): New function.
4275 (windows_create_inferior): Call windows_set_console_info
4276 if NEW_CONSOLE is true.
4277 (bad_GetCurrentConsoleFont, bad_GetConsoleFontSize): New functions.
4278 (_initialize_loadable): Initialize GetConsoleFontSize and
4279 GetCurrentConsoleFont.
4280
f6528abd
JK
42812010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4282
4283 * Makefile.in (RDYNAMIC): New.
4284 (SFILES): Add proc-service.list.
4285 * config/alpha/alpha-linux.mh (NAT_CDEPS): New.
4286 (LOADLIBES): Replace -rdynamic by $(RDYNAMIC).
4287 * config/arm/linux.mh: Likewise.
4288 * config/i386/linux.mh: Likewise.
4289 * config/i386/linux64.mh: Likewise.
4290 * config/ia64/linux.mh: Likewise.
4291 * config/m32r/linux.mh: Likewise.
4292 * config/m68k/linux.mh: Likewise.
4293 * config/mips/linux.mh: Likewise.
4294 * config/pa/linux.mh: Likewise.
4295 * config/powerpc/linux.mh: Likewise.
4296 * config/powerpc/ppc64-linux.mh: Likewise.
4297 * config/s390/s390.mh: Likewise.
4298 * config/sparc/linux.mh: Likewise.
4299 * config/sparc/linux64.mh: Likewise.
4300 * config/xtensa/linux.mh: Likewise.
4301 * configure.ac: New RDYNAMIC on native host and GCC.
4302 (solaris*): Replace -Wl,-export-dynamic by $RDYNAMIC.
4303 * configure: Regenerate.
4304 * proc-service.list: New.
4305
ca2a87a0
JK
43062010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4307
4308 * linux-nat.c (linux_nat_core_of_thread_1): Fix crash on invalid
4309 CONTENT.
4310
1e225492
JK
43112010-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4312
4313 * linux-nat.c (linux_nat_wait_1): Do not call
4314 linux_nat_core_of_thread_1 on TARGET_WAITKIND_EXITED or
4315 TARGET_WAITKIND_SIGNALLED.
4316
e802dbe0
JB
43172010-05-27 Joel Brobecker <brobecker@adacore.com>
4318
4319 * ada-lang.c (ada_inferior_data): New struct.
4320 (ada_inferior_data): New static global.
4321 (ada_inferior_data_cleanup, get_ada_inferior_data, ada_inferior_exit)
4322 (ada_get_tsd_type): New functions.
4323 (ada_tag_name_2): Use ada_get_tsd_type instead of ada_find_any_type
4324 to look the tsd type up.
4325 (_initialize_ada_language): Attach ada_inferior_exit to inferior_exit
4326 event. Set ada_inferior_data.
4327
176a6961
PA
43282010-05-27 Pedro Alves <pedro@codesourcery.com>
4329
4330 * remote.c (unpack_varlen_hex): Remove forward declaration.
4331 (remote_console_output): Make static, and add forward declaration.
4332 * remote.h: Drop FIXME comment.
4333 (unpack_varlen_hex): Declare.
4334 (remote_console_output, remote_cisco_objfile_relocate)
4335 (deprecated_target_resume_hook, deprecated_target_wait_loop_hook):
4336 Delete declarations.
4337 * tracepoint.c: Include "remote.h".
4338 (unpack_varlen_hex): Delete declaration.
4339
88bfdde4
TT
43402010-05-27 Tom Tromey <tromey@redhat.com>
4341
4342 * dwarf2loc.c (struct piece_closure) <refc>: New field.
4343 (allocate_piece_closure): Initialize refc.
4344 (copy_pieced_value_closure): Use refc.
4345 (free_pieced_value_closure): Likewise.
4346
8c6363cf
TT
43472010-05-27 Tom Tromey <tromey@redhat.com>
4348
4349 * arm-tdep.c (push_stack_item): 'contents' now const.
4350 (arm_push_dummy_call): Make 'val' const. Use value_contents, not
4351 value_contents_writeable. Introduce new temporary.
4352
7ecb917e
TT
43532010-05-27 Tom Tromey <tromey@redhat.com>
4354
4355 * findcmd.c (parse_find_args): Use value_contents, not
4356 value_contents_raw.
4357
f42a0a33
TT
43582010-05-27 Tom Tromey <tromey@redhat.com>
4359
4360 * alpha-tdep.c (alpha_push_dummy_call): Make alpha_arg.contents
4361 const. Use value_contents, not value_contents_writeable.
4362
12b795ad
JB
43632010-05-27 Joel Brobecker <brobecker@adacore.com>
4364
4365 * ada-lang.c (ensure_lval): Replace call to value_contents_raw
4366 by call to value_contents.
4367
5a2e11c7
OS
43682010-05-27 Ozkan Sezer <sezeroz@gmail.com>
4369
4370 * MAINTAINERS: Add myself for write after approval privileges.
4371
ec685c5e
DE
43722010-05-26 Doug Evans <dje@google.com>
4373
0c4a4063
DE
4374 Allow python to find its files if moved from original location.
4375 * acinclude.m4 (GDB_AC_DEFINE_RELOCATABLE): New function.
4376 (GDB_AC_WITH_DIR): Call it.
4377 * configure.ac: Define WITH_PYTHON_PATH if we can find the
4378 python installation directory.
4379 * config.in: Regenerate.
4380 * configure: Regenerate.
4381 * defs.h (python_libdir): Declare.
4382 * main.c (python_libdir): Define.
4383 (captured_main): Initialize python_libdir.
4384 * python/python.c (_initialize_python): #ifdef WITH_PYTHON_PATH,
4385 call Py_SetProgramName to make sure python can find its libraries
4386 and modules.
4387
ec685c5e
DE
4388 * configure.ac: Try to use python's distutils to fetch compilation
4389 parameters.
4390 * configure: Regenerate.
4391 * python/python-config.py: New file.
4392
363a6e9f
OS
43932010-05-26 Ozkan Sezer <sezeroz@gmail.com>
4394
4395 * ser-tcp.c (net_open): Check error return from socket() call by its
4396 equality to -1 not by it being negative.
4397 (net_close): Likewise.
4398
dde08ee1
PA
43992010-05-26 Pedro Alves <pedro@codesourcery.com>
4400
4401 * NEWS: Mention the `qRelocInsn' feature.
4402 * gdbarch.sh (relocate_instruction): New.
4403 * amd64-tdep.c (rip_relative_offset): New.
4404 (append_insns): New.
4405 (amd64_relocate_instruction): New.
4406 (amd64_init_abi): Install it.
4407 * i386-tdep.c (append_insns): New.
4408 (i386_relocate_instruction): New.
4409 (i386_gdbarch_init): Install it.
4410 * remote.c (remote_get_noisy_reply): Handle qRelocInsn requests.
4411 * gdbarch.h, gdbarch.c: Regenerate.
4412
947bb88f
TT
44132010-05-26 Tom Tromey <tromey@redhat.com>
4414
4415 * dwarf2loc.h (struct dwarf2_locexpr_baton) <data>: Now const.
4416 (struct dwarf2_loclist_baton) <data>: Likewise.
4417 * dwarf2loc.c (find_location_expression): Constify return type.
4418 (dwarf2_evaluate_loc_desc): Make 'data' argument const.
4419 (dwarf2_loc_desc_needs_frame): Likewise.
4420 (loclist_read_variable): Constify.
4421 (loclist_describe_location): Likewise.
4422 (loclist_tracepoint_var_ref): Likewise.
4423
0d45f56e
TT
44242010-05-25 Tom Tromey <tromey@redhat.com>
4425
4426 * dwarf2loc.c (dwarf_expr_frame_base): Constify.
4427 (dwarf_expr_frame_base_1): Likewise.
4428 (read_pieced_value): Update.
4429 (needs_frame_frame_base): Constify.
4430 (dwarf2_tracepoint_var_loc): Likewise.
4431 (dwarf2_tracepoint_var_access): Likewise.
4432 (locexpr_describe_location_piece): Likewise.
4433 (locexpr_describe_location_1): Likewise.
4434 * dwarf2expr.h (struct dwarf_expr_context) <get_frame_base>:
4435 Constify.
4436 (data): Now const.
4437 (struct dwarf_expr_piece) <v.literal.data>: Likewise.
4438 (dwarf_expr_eval, read_uleb128, read_sleb128)
4439 (dwarf2_read_address): Update.
4440 * dwarf2expr.c (dwarf_expr_eval): Constify.
4441 (read_uleb128): Likewise.
4442 (read_sleb128): Likewise.
4443 (dwarf2_read_address): Likewise.
4444 (require_composition): Likewise.
4445 (execute_stack_op): Likewise.
4446 * dwarf2-frame.h (struct dwarf2_frame_state_reg) <loc.exp>: Now a
4447 "const gdb_byte *".
4448 * dwarf2-frame.c (struct dwarf2_frame_state_reg_info) <cfa_exp>:
4449 Now const.
4450 (no_get_frame_base): Constify.
4451 (execute_stack_op): Likewise.
4452 (execute_cfa_program): Likewise.
4453 (read_encoded_value): Likewise.
4454
07ca107c
DE
44552010-05-25 Doug Evans <dje@google.com>
4456
e34838f0
DE
4457 * ser-pipe.c (pipe_open): Ignore SIGINTs in child.
4458
01f69b38
DE
4459 * event-loop.h (GDB_READABLE, GDB_WRITABLE, GDB_EXCEPTION): Move to ...
4460 * event-loop.c: ... here.
4461 * tui/tui-io.c (tui_readline_output): Rename parameter `code' to
4462 `error' for clarity.
4463 (tui_getc): Pass correct value for `error' parameter to
4464 tui_readline_output.
4465
07ca107c
DE
4466 Add python gdb.GdbError and gdb.string_to_argv.
4467 * NEWS: Document them.
4468 * python/py-cmd.c (cmdpy_function): Don't print a traceback if
4469 the exception is gdb.GdbError. Print a second traceback if there's
4470 an error computing the error message.
4471 (gdbpy_string_to_argv): New function.
4472 * python/py-utils.c (gdbpy_obj_to_string): New function.
4473 (gdbpy_exception_to_string): New function.
4474 * python/python-internal.h (gdbpy_string_to_argv): Declare.
4475 (gdbpy_obj_to_string, gdbpy_exception_to_string): Declare.
4476 (gdbpy_gdberror_exc): Declare.
4477 * python/python.c (gdbpy_gdberror_exc): New global.
4478 (_initialize_python): Initialize gdbpy_gdberror_exc and create
4479 gdb.GdbError.
4480 (GdbMethods): Add string_to_argv.
4481
5572ce1f
PM
44822010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4483
4484 * windows-nat.c (display_selector): Call GetLastError to give better
4485 failure explanation.
4486
acd5838a
PA
44872010-05-24 Pedro Alves <pedro@codesourcery.com>
4488
4489 * config.in: Regenerate.
4490
b26a4dcb
JK
44912010-05-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4492
4493 Code cleanup.
4494 * target.c (push_target): Return only void. Remove the return value
4495 comment.
4496 * target.h (push_target): Return only void.
4497
f434ba03
PA
44982010-05-23 Pedro Alves <pedro@codesourcery.com>
4499
4500 Update gnulib from latest git.
4501 (250b80067c1e1d8faa0c42fb572f721975b929c5)
4502
4503 * gnulib/memcmp.c: Removed.
4504 * gnulib/memchr.valgrind: New.
4505 * gnulib/stddef.in.h: New.
4506 * gnulib/Makefile.am: Updated.
4507 * gnulib/memchr.c: Updated.
4508 * gnulib/memmem.c: Updated.
4509 * gnulib/stdint.in.h: Updated.
4510 * gnulib/str-two-way.h: Updated.
4511 * gnulib/string.in.h: Updated.
4512 * gnulib/wchar.in.h: Updated.
4513
4514 * gnulib/extra/link-warning.h: Removed.
4515 * gnulib/extra/c++defs.h: New.
4516 * gnulib/extra/warn-on-use.h: New.
4517 * gnulib/extra/arg-nonnull.h: Updated.
4518
4519 * gnulib/m4/extensions.m4: Updated.
4520 * gnulib/m4/gnulib-cache.m4: Updated.
4521 * gnulib/m4/gnulib-common.m4: Updated.
4522 * gnulib/m4/gnulib-comp.m4: Updated.
4523 * gnulib/m4/gnulib-tool.m4: Updated.
4524 * gnulib/m4/include_next.m4: Updated.
4525 * gnulib/m4/longlong.m4: Updated.
4526 * gnulib/m4/memchr.m4: Updated.
4527 * gnulib/m4/memmem.m4: Updated.
4528 * gnulib/m4/stdint.m4: Updated.
4529 * gnulib/m4/string_h.m4: Updated.
4530 * gnulib/m4/memcmp.m4: Removed.
4531 * gnulib/m4/onceonly_2_57.m4: Removed.
4532 * gnulib/m4/00gnulib.m4: New.
4533 * gnulib/m4/mmap-anon.m4: New.
4534 * gnulib/m4/multiarch.m4: New.
4535 * gnulib/m4/onceonly.m4: New.
4536 * gnulib/m4/stddef_h.m4: New.
4537 * gnulib/m4/warn-on-use.m4: New.
4538 * gnulib/m4/wchar.m4: Removed.
4539 * gnulib/m4/wchar_h.m4: New.
4540 * gnulib/m4/wchar_t.m4: New.
4541 * gnulib/m4/wint_t.m4: New.
4542
4543 * aclocal.m4: Regenerate.
4544 * config.in: Likewise.
4545 * configure: Likewise.
4546 * gnulib/Makefile.in: Likewise.
4547
d3b1e874
TT
45482010-05-21 Tom Tromey <tromey@redhat.com>
4549
4550 * dwarf2loc.c (extract_bits_primitive): New function.
4551 (extract_bits): Likewise.
4552 (insert_bits): Likewise.
4553 (copy_bitwise): Likewise.
4554 (read_pieced_value): Do all operations in bits.
4555 (write_pieced_value): Likewise.
4556 * dwarf2expr.h (struct dwarf_expr_piece) <offset>: New field.
4557 * dwarf2expr.c (add_piece): New arguments bit_piece, offset.
4558 Always use xrealloc to resize piece array.
4559 (execute_stack_op) <DW_OP_reg0>: Handle DW_OP_bit_piece.
4560 <DW_OP_piece>: Update.
4561 <DW_OP_bit_piece>: New case.
4562
cb826367
TT
45632010-05-21 Tom Tromey <tromey@redhat.com>
4564
4565 * dwarf2loc.c (read_pieced_value): Exit loop when result is full.
4566 <DWARF_VALUE_OPTIMIZED_OUT>: New case.
4567 * dwarf2expr.h (enum dwarf_value_location)
4568 <DWARF_VALUE_OPTIMIZED_OUT>: New constant.
4569 * dwarf2expr.c (dwarf_expr_stack_empty_p): New function.
4570 (add_piece): Handle empty piece.
4571 (execute_stack_op) <DW_OP_piece>: Handle
4572 DWARF_VALUE_OPTIMIZED_OUT.
4573
74de6778
TT
45742010-05-21 Tom Tromey <tromey@redhat.com>
4575
4576 * eval.c (evaluate_subexp_standard) <BINOP_SUBSCRIPT>: Call
4577 evaluate_subexp, not evaluate_subexp_with_coercion.
4578
f346a30d
PM
45792010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4580
4581 * dwarf2read.c (new_symbol): Handle DW_AT_variable_parameter
4582 attribute.
4583
afd74c5f
TT
45842010-05-21 Tom Tromey <tromey@redhat.com>
4585
4586 * dwarf2loc.c (read_pieced_value): Work properly when 'v' has an
4587 offset.
4588 (write_pieced_value): Likewise.
4589
90e7c2c5
PM
45902010-05-21 Pierre Muller <muller@ics.u-strasbg.fr>
4591
4592 * dwarf2read.c (process_die): Also allow DW_TAG_const_type
4593 and DW_TAG_volatile_type.
4594 (new_symbol): Likewise.
4595
8148cf8d
PM
45962010-05-20 Pierre Muller <muller@ics.u-strasbg.fr>
4597
4598 * p-valprint.c (pascal_val_print): Call get_array_bounds
4599 to obtain the number of elements in an array.
4600
3a1d4620
DE
46012010-05-19 Doug Evans <dje@google.com>
4602
0bf0f8c4
DE
4603 * python.c (gdbpy_print_stack): Ensure output ends with a newline.
4604
3a1d4620
DE
4605 * python.c (source_python_script): Add comment.
4606 (source_python_script_for_objfile): Remove unnecessary call to
4607 gdbpy_print_stack.
4608
dc21167c
JK
46092010-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4610 Sergio Durigan Junior <sergiodj@redhat.com>
4611
4612 Code cleanup.
4613 * parse.c (exp_iterate): Use operator_length wrapper function.
4614
5b4ee69b
MS
46152010-05-18 Michael Snyder <msnyder@vmware.com>
4616
4617 * ada-lang.c: White space.
4618 * ada-typeprint.c: White space.
4619 * ada-valprint.c: White space.
4620 * addrmap.c: White space.
4621 * auxv.c: White space.
4622 * ax-gdb.c: White space.
4623
e17c9e56
HZ
46242010-05-18 Hui Zhu <teawater@gmail.com>
4625
4626 * linux-fork.c (inferior_call_waitpid_cleanup): Add check
4627 for oldfp.
4628 (inferior_call_waitpid): Move make_cleanup out of check.
4629 Check the return of waitpid.
4630 (delete_checkpoint_command): Add pptid to save fi->parent_ptid.
4631
a109c7c1
MS
46322010-05-17 Michael Snyder <msnyder@vmware.com>
4633
1c5313c5
MS
4634 * tui/tui.c: White space.
4635 * tui/tui-data.c: White space.
4636 * tui/tui-disasm.c: White space.
4637 * tui/tui-file.c: White space.
4638 * tui/tui-interp.c: White space.
4639 * tui/tui-main.c: White space.
4640 * tui/tui-out.c: White space.
4641 * tui/tui-regs.c: White space.
4642 * tui/tui-source.c: White space.
4643 * tui/tui-stack.c: White space.
4644 * tui/tui-win.c: White space.
4645 * tui/tui-winsource.c: White space.
4646
f4a14ae6
MS
4647 * procfs.c: White space.
4648
d59b6f6c
MS
4649 * python/py-auto-load.c: White space.
4650 * python/py-block.c: White space.
4651 * python/py-breakpoint.c: White space.
4652 * python/py-cmd.c: White space.
4653 * python/py-function.c: White space.
4654 * python/py-lazy-string.c: White space.
4655 * python/py-objfile.c: White space.
4656 * python/py-param.c: White space.
4657 * python/py-prettyprint.c: White space.
4658 * python/py-progspace.c: White space.
4659 * python/py-symtab.c: White space.
4660 * python/python.c: White space.
4661 * python/py-type.c: White space.
4662 * python/py-utils.c: White space.
4663 * python/py-value.c: White space.
4664
102040f0
MS
4665 * mi/mi-cmd-break.c: White space.
4666 * mi/mi-cmd-env.c: White space.
4667 * mi/mi-cmds.c: White space.
4668 * mi/mi-cmd-stack.c: White space.
4669 * mi/mi-cmd-var.c: White space.
4670 * mi/mi-console.c: White space.
4671 * mi/mi-getopt.c: White space.
4672 * mi/mi-interp.c: White space.
4673 * mi/mi-main.c: White space.
4674 * mi/mi-out.c: White space.
4675 * mi/mi-parse.c: White space.
4676
cdb27c12
MS
4677 * cli/cli-cmds.c: White space.
4678 * cli/cli-decode.c: White space.
4679 * cli/cli-dump.c: White space.
4680 * cli/cli-interp.c: White space.
4681 * cli/cli-logging.c: White space.
4682 * cli/cli-script.c: White space.
4683 * cli/cli-setshow.c: White space.
4684
a109c7c1
MS
4685 * valarith.c: White space.
4686 * valops.c: White space.
4687 * valprint.c: White space.
4688 * value.c: White space.
4689 * varobj.c: White space.
4690 * xcoffread.c: White space.
4691 * xml-support.c: White space.
4692 * xml-tdesc.c: White space.
4693
3872d37d
AS
46942010-05-17 Andreas Schwab <schwab@redhat.com>
4695
4696 PR gdb/11092
4697 * c-lang.c (c_printstr): Compute real length of NUL terminated
4698 string at first.
4699
0cce5bd9
JB
47002010-05-17 Joel Brobecker <brobecker@adacore.com>
4701
4702 * parse.c (parse_exp_in_context): When block is not NULL, use
4703 its associated language to parse the expression instead of
4704 the current_language.
4705
5f19d646
JB
47062010-05-17 Joel Brobecker <brobecker@adacore.com>
4707
4708 * jv-lang.c (java_lookup_class): Remove commented out code.
4709 (type_from_class): Likewise.
4710 (java_op_print_tab): Remove commented-out elements.
4711
28c85d6c
JB
47122010-05-17 Joel Brobecker <brobecker@adacore.com>
4713
4714 * ada-lang.c (to_fixed_range_type): The the raw index type as
4715 argument instead of the raw type name. Remove orig_type parameter.
4716 Update calls throughout.
4717 (ada_fixup_array_indexes_type): New function.
4718 (ada_array_bound_from_type): Add call to ada_fixup_array_indexes_type.
4719 * ada-lang.h (ada_fixup_array_indexes_type): Add declaration.
4720 * ada-typeprint.c (print_range_type): Renames print_range_type_named.
4721 Remove name parameter.
4722 (print_array_type): Add call to ada_fixup_array_indexes_type.
4723 Update calls to print_range_type.
4724 (ada_print_type): Update calls to print_range_type.
4725
d09039dd
PM
47262010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4727
4728 * dwarf2read.c (read_set_type): Set type length if
4729 DW_AT_byte_size attribute is present.
4730
7a081a30
PM
47312010-05-17 Pierre Muller <muller@ics.u-strasbg.fr>
4732
4733 * p-valprint.c (pascal_val_print): Handle set type if range limits
4734 are undefined but size is known.
4735
77382aee
PA
47362010-05-17 Pedro Alves <pedro@codesourcery.com>
4737
4738 * procfs.c: Reformat.
4739
433759f7
MS
47402010-05-16 Michael Snyder <msnyder@vmware.com>
4741
5d502164
MS
4742 * target.c: White space.
4743 * target-descriptions.c: White space.
4744 * target-memory.c: White space.
4745 * thread.c: White space.
4746 * top.c: White space.
4747 * tracepoint.c: White space.
4748 * trad-frame.c: White space.
4749 * tramp-frame.c: White space.
4750 * ui-file.c: White space.
4751 * ui-out.c: White space.
4752 * user-regs.c: White space.
4753 * utils.c: White space.
4754
433759f7
MS
4755 * scm-exp.c: White space.
4756 * scm-lang.c: White space.
4757 * scm-valprint.c: White space.
4758 * sentinel-frame.c: White space.
4759 * ser-base.c: White space.
4760 * ser-go32.c: White space.
4761 * serial.c: White space.
4762 * ser-mingw.c: White space.
4763 * ser-pipe.c: White space.
4764 * ser-tcp.c: White space.
4765 * ser-unix.c: White space.
4766 * solib.c: White space.
4767 * solib-darwin.c: White space.
4768 * solib-frv.c: White space.
4769 * solib-irix.c: White space.
4770 * solib-osf.c: White space.
4771 * solib-pa64.c: White space.
4772 * solib-som.c: White space.
4773 * solib-spu.c: White space.
4774 * solib-svr4.c: White space.
4775 * solib-target.c: White space.
4776 * source.c: White space.
4777 * stabsread.c: White space.
4778 * stack.c: White space.
4779 * std-regs.c: White space.
4780 * symfile.c: White space.
4781 * symmisc.c: White space.
4782 * symtab.c: White space.
4783
dd304d53
MS
47842010-05-16 Michael Snyder <msnyder@vmware.com>
4785
4786 * source.c (_initialize_source): Add "rev" as an abbreviation
4787 for the "reverse-search" command.
4788
a744cf53
MS
47892010-05-16 Michael Snyder <msnyder@vmware.com>
4790
123f5f96
MS
4791 * record.c: White space.
4792 * regcache.c: White space.
4793 * reggroups.c: White space.
4794 * remote-fileio.c: White space.
4795 * remote-m32r-sdi.c: White space.
4796 * remote-mips.c: White space.
4797 * remote-sim.c: White space.
a744cf53
MS
4798 * remote.c: White space.
4799 (process_g_packet): Remove orphan braces.
4800
b8d56208
MS
48012010-05-15 Michael Snyder <msnyder@vmware.com>
4802
ad3bbd48
MS
4803 * parse.c: White space.
4804 * p-lang.c: White space.
4805 * posix-hdep.c: White space.
4806 * printcmd.c: White space.
4807 * progspace.c: White space.
4808 * prologue-value.c: White space.
4809 * psymtab.c: White space.
4810 * p-typeprint.c: White space.
4811 * p-valprint.c: White space.
4812
5cc80db3
MS
4813 * objc-lang.c: White space.
4814 * objfiles.c: White space.
4815 * observer.c: White space.
4816 * osabi.c: White space.
4817 * osdata.c: White space.
4818
b8d56208
MS
4819 * m2-lang.c: White space.
4820 * m2-valprint.c: White space.
4821 * macrocmd.c: White space.
4822 * macroexp.c: White space.
4823 * macroscope.c: White space.
4824 * macrotab.c: White space.
4825 * main.c: White space.
4826 * maint.c: White space.
4827 * mdebugread.c: White space.
4828 * memattr.c: White space.
4829 * minsyms.c: White space.
4830 * monitor.c: White space.
4831
9a619af0
MS
48322010-05-14 Michael Snyder <msnyder@vmware.com>
4833
e0881a8e
MS
4834 * jv-lang.c: White space.
4835 * jv-typeprint.c: White space.
4836 * jv-valprint.c: White space.
4837 * language.c: White space.
4838 * libunwind-frame.c: White space.
4839 * linespec.c: White space.
4840 * linux-nat.c: White space.
4841 * linux-record.c: White space.
4842 * linux-thread-db.c: White space.
4843
abbb1732
MS
4844 * infcall.c: White space.
4845 * inf-child.c: White space.
4846 * infcmd.c: White space.
4847 * inferior.c: White space.
4848 * inf-loop.c: White space.
4849 * inflow.c: White space.
4850 * inline-frame.c: White space.
4851 * interps.c: White space.
4852
d8734c88
MS
4853 * gcore.c: White space.
4854 * gdb.c: White space.
4855 * gdbtypes.c: White space.
4856 * gnu-nat.c: White space.
4857 * gnu-v2-abi.c: White space.
4858 * gnu-v3-abi.c: White space.
4859
bb9bcb69
MS
4860 * findcmd.c: White space.
4861 * findvar.c: White space.
4862 * fork-child.c: White space.
4863 * frame-base.c: White space.
4864 * frame.c: White space.
4865 * frame-unwind.c: White space.
4866 * f-valprint.c: White space.
4867
d7f9d729
MS
4868 * elfread.c: White space.
4869 * environ.c: White space.
4870 * eval.c: White space.
4871 * event-loop.c: White space.
4872 * event-top.c: White space.
4873 * exceptions.c: White space.
4874 * exec.c: White space.
4875 * expprint.c: White space.
4876
9a619af0
MS
4877 * dbxread.c: White space.
4878 * dcache.c: White space.
4879 * disasm.c: White space.
4880 * doublest.c: White space.
4881 * dsrec.c: White space.
4882 * dummy-frame.c: White space.
4883 * dwarf2expr.c: White space.
4884 * dwarf2-frame.c: White space.
4885 * dwarf2loc.c: White space.
4886 * dwarf2read.c: White space.
4887
88d4aea7
PM
48882010-05-14 Phil Muldoon <pmuldoon@redhat.com>
4889
889bf7c5 4890 PR python/11482
88d4aea7
PM
4891
4892 * python/py-value.c (valpy_hash): New function.
4893 (value_object_type): Register valpy_hash.
4894
7a298875 48952010-05-14 Hui Zhu <teawater@gmail.com>
0407b3f1 4896 Michael Snyder <msnyder@vmware.com>
7a298875
HZ
4897
4898 * linux-fork.c (gdbthread.h): New include.
4899 (fork_info): Add parent_ptid.
4900 (inferior_call_waitpid_cleanup, inferior_call_waitpid): New
4901 functions.
4902 (delete_checkpoint_command): Call inferior_call_waitpid.
4903 (checkpoint_command): Set parent_ptid.
4904
c14feecc
MS
49052010-05-13 Michael Snyder <msnyder@vmware.com>
4906
6595d32b
MS
4907 * dictionary.c: Re-indent to GNU coding standard.
4908
c5504eaf
MS
4909 * charset.c: White space.
4910 * c-lang.c: White space.
4911 * cli-out.c: White space.
4912 * coffread.c: White space.
4913 * complaints.c: White space.
4914 * completer.c: White space.
4915 * corefile.c: White space.
4916 * corelow.c: White space.
4917 * cp-abi.c: White space.
4918 * cp-namespace.c: White space.
4919 * cp-support.c: White space.
4920 * cp-valprint.c: White space.
4921 * c-typeprint.c: White space.
4922 * c-valprint.c: White space.
cc59ec59
MS
4923 * blockframe.c: White space.
4924 * breakpoint.c: White space.
4925 * buildsym.c: White space.
4926 * blockframe.c: White space.
b6de9da4 4927 * bcache.c: White space.
05c547f6
MS
4928 * gdbarch.sh: White space, add blank lines.
4929 * arch-utils.c: Ditto.
4930 * gdbarch.c: Regenerate.
1c4d3f96 4931 * frame.c: White space, add blank lines.
f89b749f
MS
4932 * stack.c: White space, add blank lines.
4933 (initialize_stack): Remove long-dead code.
c14feecc 4934
a2d33775
JK
49352010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4936
4937 Code cleanup.
4938 * dwarf2loc.c (dwarf2_evaluate_loc_desc): Change the parameter to type.
4939 (locexpr_read_variable, loclist_read_variable): Update the callers.
4940
33ac96f0
JK
49412010-05-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4942
4943 Code cleanup.
4944 * dwarf2read.c (die_type, die_descriptive_type): Remove variable type.
4945 Remove check of NULL returned by tag_type_to_type.
4946 (die_containing_type): Remove variable type. Remove type_die variable
4947 initialization. Remove check of NULL returned by tag_type_to_type.
4948
f5a010c0
PM
49492010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4950
4951 PR exp/11530.
4952 * gdbtypes.c (lookup_struct_elt_type): Also lookup
4953 names of unnamed structures or unions.
4954
bf701c2c
PM
49552010-05-11 Pierre Muller <muller@ics.u-strasbg.fr>
4956
4957 * procfs.c (proc_watchpoint_address): New function.
0407b3f1 4958 (procfs_stopped_by_watchpoint): Remove useless check after
bf701c2c
PM
4959 find_procinfo_or_die call.
4960 (procfs_stopped_data_address): New function.
4961 (procfs_use_watchpoints): Register new watchpoint related function.
4962
d02691ef
TT
49632010-05-11 Tom Tromey <tromey@redhat.com>
4964
4965 * eval.c (evaluate_subexp_standard): Revert inadvertent change.
4966
e0627e85
MS
49672010-05-10 Michael Snyder <msnyder@vmware.com>
4968
4969 * utils.c: White space cleanup.
4970
cc73bb8c
TT
49712010-05-10 Tom Tromey <tromey@redhat.com>
4972
4973 * eval.c (ptrmath_type_p): Add 'lang' argument.
4974 (evaluate_subexp_standard): Update.
4975 (evaluate_subexp_with_coercion): Update.
4976 * language.h (CAST_IS_CONVERSION): Add 'LANG' argument.
4977
c02866a0
MS
49782010-05-10 Michael Snyder <msnyder@vmware.com>
4979
4980 * utils.c (do_fclose_cleanup) Restore local variable.
4981
06280d23
DE
49822010-05-09 Doug Evans <dje@google.com>
4983
4984 * record.c (init_record_core_ops): Rename record_core to record-core.
4985
fa07e785
JB
49862010-05-08 Joel Brobecker <brobecker@adacore.com>
4987
4988 Implement task switching on pa-hpux.
4989 * inf-ttrace.c (inf_ttrace_get_ada_task_ptid): New function.
4990 (inf_ttrace_target): Set t->to_get_ada_task_ptid.
4991
4c680d1d
PM
49922010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4993
4994 * valops.c (find_overload_match): Add missing i18n markup.
4995
28e176a6
PM
49962010-05-08 Pierre Muller <muller@ics.u-strasbg.fr>
4997
4998 * p-exp.y (exp : SIZEOF '(' exp ')'): New rule.
4999
48cb83fd
JK
50002010-05-08 Jan Kratochvil <jan.kratochvil@redhat.com>
5001
5002 * dwarf2read.c (typename_concat): Use (char *) NULL terminated stdarg
5003 list for the obconcat call.
5004 * mdebugread.c (parse_symbol): Likewise.
5005 * stabsread.c (define_symbol, read_member_functions, read_cpp_abbrev):
5006 Likewise.
5007 * symfile.c (obconcat): Replace the s1, s2 and s3 parameters by `...'.
5008 New variable ap. Remove variables len and val.
5009 * symfile.h (obconcat): Likewise for the prototype.
5010
f92adf3c
MS
50112010-05-07 Michael Snyder <msnyder@vmware.com>
5012
5013 * python/python.c (execute_gdb_command): Remove unused variables.
5014 * python/py-block.c (gdbpy_block_for_pc): Remove unused variable.
0407b3f1 5015 * python/py-breakpoint.c (gdbpy_breakpoint_created):
f92adf3c
MS
5016 Remove unused variable.
5017 * python/py-cmd.c (cmdpy_function): Remove unused variable.
5018 (cmdpy_completer): Remove unused variable.
5019 * python/py-frame.c (frapy_find_sal): Remove unused variable.
5020 * python/py-function.c (fnpy_call): Remove unused variable.
5021 * python/py-objfile.c (objfile_to_objfile_object):
5022 Remove unused variable.
5023 * python/py-param.c (parmpy_init): Remove unused variable.
0407b3f1 5024 * python/py-prettyprint.c (apply_varobj_pretty_printer):
f92adf3c
MS
5025 Remove unused variable.
5026 (gdbpy_default_visualizer): Remove unused variable.
5027 * python/py-progspace.c (pspace_to_pspace_object):
5028 Remove unused variable.
0407b3f1 5029 * python/py-symtab.c (symtab_and_line_to_sal_object):
f92adf3c 5030 Remove unused variable.
0407b3f1 5031 * python/py-type.c (typy_template_argument):
f92adf3c
MS
5032 Remove unused variable.
5033 * python/py-value.c (valpy_string): Remove unused variable.
5034 (convert_value_from_python): Remove unused variables.
5035
d160942f
MS
50362010-05-07 Michael Snyder <msnyder@vmware.com>
5037
5038 * valops.c (value_cast_pointers): Restore unused variable 'type1',
5039 and use it to compute variable 't1'.
5040
587542ab
JB
50412010-05-07 Joel Brobecker <brobecker@adacore.com>
5042
5043 * ada-lang.c (assign_aggregate): Remove unused variable.
5044
7322dca9
SW
50452010-05-07 Sami Wagiaalla <swagiaal@redhat.com>
5046
5047 PR C++/7943:
5048 * valops.c (find_overload_match): Handle fsym == NULL case.
5049 Add int no_adl argument.
5050 (find_oload_champ_namespace_loop): Call make_symbol_overload_list_adl
5051 when appropriate.
5052 Add int no_adl argument.
5053 (find_oload_champ_namespace): Add int no_adl argument.
5054 * parse.c (operator_length_standard): Return length for OP_ADL_FUNC
5055 expression.
5056 * expprint.c (op_name_standard): Added string for OP_ADL_FUNC case.
5057 * eval.c (evaluate_subexp_standard): Added OP_ADL_FUNC case.
5058 Evaluate arguments and use them to perform ADL lookup.
5059 Pass no_adl argument to find_overload_match.
5060 Disable adl lookup when evaluating a fully qualified OP_FUNCALL.
5061 * cp-support.h: Added prototype for
5062 make_symbol_overload_list_namespace.
5063 * cp-support.c (make_symbol_overload_list_namespace): New function.
5064 (make_symbol_overload_list_adl_namespace): New function.
5065 (make_symbol_overload_list_adl): New function.
5066 (make_symbol_overload_list_using): Moved code to add function to
5067 overload set to make_symbol_overload_list_namespace.
5068 * c-exp.y: create UNKNOWN_CPP_NAME token.
5069 Add parse rule for ADL functions.
5070 (classify_name): Recognize an UNKNOWN_CPP_NAME.
5071
3f1f6884
JK
50722010-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5073
5074 * fbsd-nat.c (fbsd_make_corefile_notes): Add cast to NULL used as
5075 sentinel.
5076
3caf13b4
JB
50772010-05-07 Joel Brobecker <brobecker@adacore.com>
5078
5079 Implement task switching on solaris targets.
5080 * sol-thread.c (thread_db_find_thread_from_tid)
5081 (sol_get_ada_task_ptid): New functions.
5082 (init_sol_thread_ops): Set sol_thread_ops.to_get_ada_task_ptid.
5083
94b0dee1
PA
50842010-05-07 Pedro Alves <pedro@codesourcery.com>
5085
5086 * remote.c (remote_query_supported_append): Use reconcat.
5087 (remote_query_supported): Install a cleanup. Use reconcat.
5088
1408c251
PA
50892010-05-07 Pedro Alves <pedro@codesourcery.com>
5090
5091 * gdbarch.sh (qsupported): Delete.
5092 * gdbarch.h, gdbarch.c: Regenerate.
5093 * remote.c (remote_query_supported): Remove use of
5094 gdbarch_qsupported.
5095
f8e50cfe
SDJ
50962010-05-06 Sergio Durigan Junior <sergiodj@redhat.com>
5097
5098 * xml-syscall.c (syscall_start_syscalls_info): Remove unused
5099 function.
5100
8ea13695
MS
51012010-05-06 Michael Snyder <msnyder@vmware.com>
5102
c6913b7d
MS
5103 * xml-support.c (xinclude_start_include): Delete unused variable.
5104 (xml_process_xincludes): Delete unused variable.
5105 * xml-syscall.c (syscall_parse_xml): Delete unused variable.
5106 * target-descriptions.c (tdesc_gdb_type): Delete unused variable.
5107 (tdesc_find_arch_register): Delete unused variable.
5108 (tdesc_use_registers): Delete unused variable.
5109 * xml-tdesc.c (tdesc_start_target): Delete unused variable.
5110 * inferior.c (print_inferior): Delete unused variable.
5111 * record.c (record_open_1): Delete unused variable.
5112 (record_restore): Delete unused variable.
5113 (cmd_record_save): Delete unused variable.
5114 * gcore.c (derive_heap_segment): Delete unused variable.
5115 (objfile_find_memory_regions): Use unused variable.
5116 * jit.c (jit_inferior_init): Delete unused variable.
5117 * progspace.c (clone_program_space): Delete unused variable.
5118 (pspace_empty_p): Delete unused variable.
0407b3f1
AS
5119
5120 * frame-unwind.c (frame_unwind_find_by_frame):
1c5465ac
MS
5121 Delete unused variable.
5122 * gnu-v2-abi.c (gnuv2_value_rtti_type): Delete unused variable.
5123 * cp-support.c (mangled_name_to_comp): Delete unused variable.
5124 (method_name_from_physname): Delete unused variable.
5125 (cp_func_name): Delete unused variable.
5126 (cp_validate_operator): Delete unused variable.
0407b3f1 5127 * cp-namespace.c (cp_scan_for_anonymous_namespaces):
1c5465ac 5128 Delete unused variable.
0407b3f1 5129 * trad-frame.c (trad_frame_get_prev_register):
1c5465ac
MS
5130 Delete unused variable.
5131 * tramp-frame.c (tramp_frame_cache): Delete unused variable.
5132
1be757cf
MS
5133 * serial.c (serial_for_fd): Delete unused variable.
5134 * mdebugread.c (psymtab_to_symtab_1): Delete unused variable.
5135 * top.c (execute_command): Delete unused variable.
5136 (init_main): Delete unused variable.
5137 * utils.c (do_fclose_cleanup): Delete unused variable.
5138 (do_all_inferior_continuations): Delete unused variable.
5139 (initialize_utils): Delete unused variable.
5140 (internal_problem_mode): Delete unused global.
5141 * frame.c (get_prev_frame): Delete unused global.
5142 (get_frame_locals_address): Delete unused global.
5143 (get_frame_args_address): Delete unused global.
5144
9216103f
MS
5145 * p-typeprint.c (pascal_type_print_base): Delete unused variable.
5146 (pascal_type_print_varspec_prefix): Delete unused variable.
5147 * f-typeprint.c (f_type_print_base): Delete unused variable.
5148 (f_type_print_varspec_suffix): Delete unused variable.
5149 * m2-typeprint.c (m2_print_type): Delete unused variable.
5150 (m2_long_set): Delete unused variable.
5151 * ada-valprint.c (ada_val_print_1): Delete unused variable.
5152 * d-valprint.c (dynamic_array_type): Delete unused variable.
0407b3f1 5153 * f-valprint.c (f77_get_dynamic_length_of_aggregate):
9216103f
MS
5154 Delete unused variable.
5155 (f77_create_arrayprint_offset_tbl): Delete unused variable.
5156 * m2-valprint.c (m2_val_print): Delete unused variable.
5157
34fa1d9d
MS
5158 * ui-out.c (ui_out_field_int): Delete unused variable.
5159 (ui_out_field_fmt_int): Delete unused variable.
5160 * varobj.c (varobj_list_children): Delete unused variable.
5161 (varobj_set_value): Delete unused variable.
5162 (install_new_value_visualizer): Delete unused variable.
5163 (varobj_set_visualizer): Delete unused variable.
5164 (varobj_update): Delete unused variable.
5165 (varobj_editable_p): Delete unused variable.
5166 (c_value_of_root): Delete unused variable.
5167 (cplus_describe_child): Delete unused variable.
5168
b5385fc0
MS
5169 * ada-lang.c (add_defn_to_vec): Delete unused variable.
5170 (decode_constrained_packed_array_type): Delete unused variable.
5171 (add_defn_to_vec): Delete unused variable.
5172 (symbol_completion_match): Delete unused variable.
5173 (value_tag_from_contents_and_address): Delete unused variable.
5174 (ada_evaluate_subexp): Delete unused variable.
5175 * c-lang.c (classify_type): Delete unused variable.
5176 * f-lang.c (f_printstr): Delete unused variable.
5177 * objc-lang.c (objc_printstr): Delete unused variable.
5178 * ada-tasks.c (get_known_tasks_addr): Delete unused variable.
5179 * jv-lang.c (type_from_class): ifdef unused variable.
5180 (java_class_name_from_physname): Delete unused variable.
5181 * m2-lang.c (m2_printstr): Delete unused variable.
5182
4fc06681
MS
5183 * objfiles.c (objfile_relocate): Delete unused variable.
5184 * maint.c (_initialize_maint_cmds): Delete unused variable.
5185 * demangle.c (_initialize_demangler): Delete unused variable.
5186 * corefile.c (reopen_exec_file): Delete unused variable.
5187 * dwarf2expr.c (dwarf2_read_address): Delete unused variable.
5188 * dwarf2-frame.c (decode_frame_entry): Delete unused variable.
5189
6b4398f7
MS
5190 * osabi.c (_initialize_gdb_osabi): Delete unused variable.
5191 * memattr.c (mem_delete): Delete unused variable.
5192 (invalidate_target_mem_regions): Delete unused variable.
5193 * mem-break.c (default_memory_insert_breakpoint):
5194 Delete unused variable.
5195 * target.c (target_get_osdata): Delete unused variable.
5196 * parse.c (length_of_subexp): Delete unused variable.
5197 (prefixify_subexp): Delete unused variable.
5198 (exp_iterate): Delete unused variable.
5199 * reverse.c (delete_bookmark_command): Delete unused variable.
5200
308d96ed
MS
5201 * macrocmd.c (_initialize_macrocmd): Delete unused variable.
5202 * macroexp.c (gather_arguments): Delete unused variable.
5203 (substitute_args): Delete unused variable.
5204 * completer.c (gdb_completer_loc_break_characters): Unused, delete.
5205 * gdbarch.sh (gdbarch_printable_names): Delete unused variable.
5206 (_initialize_gdbarch): Delete unused variable.
5207 * gdbarch.c, gdbarch.h: Regenerate.
0407b3f1 5208 * arch-utils.c (initialize_current_architecture):
308d96ed
MS
5209 Delete unused variable.
5210 (_initialize_gdbarch_utils): Delete unused variable.
5211 * gdbtypes.c (make_cv_type): Delete unused variable.
5212 (make_type_with_address_space): Delete unused variable.
5213
167e4384
MS
5214 * linespec.c (decode_compound): Delete unused variable.
5215 * dictionary.c (iterator_next_hashed): Delete unused variable.
5216 * infcall.c (call_function_by_hand): Delete unused variable.
5217 * infcmd.c (step_1): Delete unused variable.
5218 (registers_info): Delete unused variable.
5219 (attach_command): Delete unused variable.
5220 * infrun.c (follow_exec): Delete unused variable.
5221 (handle_step_into_function_backwards): Delete unused variable.
5222 (_initialize_infrun): Delete unused variable.
5223 * stack.c (parse_frame_specification_1): Delete unused variable.
5224 (frame_info): Delete unused variable.
5225 (backtrace_command_1): Delete unused variable.
5226 (catch_info): Delete unused variable.
5227
8f78b329
MS
5228 * eval.c (evaluate_subexp_standard): Delete unused variable.
5229 * valops.c (value_cast_pointers): Delete unused variable.
5230 (value_dynamic_cast): Delete unused variable.
5231 (value_array): Delete unused variable.
5232 (find_overload_match): Delete unused variable.
5233 * valarith.c (value_subscript): Delete unused variable.
5234 (value_binop): Delete unused variable.
5235 * valprint.c (_initialize_valprint): Delete unused variable.
5236 * printcmd.c (print_command_1): Delete unused variable.
5237 (address_info): Delete unused variable.
5238 (printf_command): Delete unused variable.
5239
8ea13695
MS
5240 * auxv.c (target_auxv_search): Delete unused variable.
5241 * blockframe.c (get_frame_block): Delete unused variable.
5242 * regcache.c (regcache_cpy): Delete unused variable.
5243 (regcache_cpy_no_passthrough): Delete unused variable.
5244 * charset.c (wchar_iterate): Delete unused variable.
5245 (find_charset_names): Delete unused variable.
5246 (_initialize_charset): Delete unused variable.
0407b3f1 5247 * disasm.c (do_mixed_source_and_assembly):
8ea13695 5248 Delete unused variable.
0407b3f1 5249 * source.c (set_default_source_symtab_and_line):
8ea13695
MS
5250 Delete unused variable.
5251 (set_substitute_path_command): Delete unused variable.
5252 * value.c (preserve_values): Delete unused variable.
5253 (value_from_double): Delete unused variable.
5254
afe38095
MS
52552010-05-05 Michael Snyder <msnyder@vmware.com>
5256
952a6d41
MS
5257 * psymtab.c (lookup_partial_symbol): Delete unused variable.
5258 (find_last_source_symtab_from_partial): Delete unused variable.
5259 * symfile.c (place_section): Delete unused variable.
5260 (default_symfile_offsets): Delete unused variable.
5261 (get_debug_link_info): Delete unused variable.
5262 (find_separate_debug_file_by_debuglink): Delete unused variable.
5263 (add_symbol_file_command): Delete unused variable.
5264 (symfile_find_segment_sections): Delete unused variable.
5265 * symmisc.c (free_symtab): Delete unused variable.
5266 (dump_symtab_1): Delete unused variable.
5267 * symtab.c (lookup_symbil_aux_quick): Delete unused variable.
5268 (find_pc_sect_symtab): Delete unused variable.
5269 (skip_prologue_using_lineinfo): Delete unused variable.
5270 (sources_info): Delete unused variable.
5271 (completion_list_add_name): Delete unused variable.
5272 (expand_line_sal): Delete unused variable.
5273
0407b3f1 5274 * breakpoint.c (validate_commands_for_breakpoint):
afe38095
MS
5275 Delete unused variables.
5276 (insert_catchpoint): Delete unused variable.
5277 (update_watchpoint): Delete unused variable.
5278 (insert_bp_location): Delete unused variable.
5279 (insert_breakpoint_locations): Delete unused variable.
5280 (remove_breakpoint_1): Delete unused variable.
5281 (software_breakpoint_inserted_here_p): Delete unused variable.
5282 (watchpoints_triggered): Delete unused variable.
5283 (bpstat_check_watchpoint): Delete unused variable.
5284 (bpstat_stop_status): Delete unused variable.
5285 (print_one_breakpoint_location): Delete unused variable.
5286 (allocate_bp_location): Delete unused variable.
5287 (create_breakpoint): Delete unused variable.
5288 (watch_command_1): Delete unused variable.
5289 (catch_exception_command_1): Delete unused variable.
5290 (catch_ada_exception_command): Delete unused variable.
5291 (delete_breakpoint): Delete unused variable.
5292 (breakpoint_re_set_one): Delete unused variable.
5293 (do_enable_breakpoint): Delete unused variable.
5294
eda5a4d7
PA
52952010-05-06 Pedro Alves <pedro@codesourcery.com>
5296
5297 * amd64-tdep.c: Include disasm.h.
5298 (amd64_insn_length_fprintf, amd64_insn_length_init_dis)
5299 (amd64_insn_length): Moved to disasm.c and renamed.
5300 (fixup_riprel): Adjust.
5301 * disasm.c (do_ui_file_delete): New.
5302 (gdb_insn_length): New.
5303 (gdb_buffered_insn_length_fprintf)
5304 (gdb_buffered_insn_length_init_dis)
5305 (gdb_buffered_insn_length): New, moved from amd64-tdep.c, and
5306 renamed.
5307 * disasm.h (gdb_insn_length): Declare.
5308 (gdb_buffered_insn_length): Declare.
5309
02357a4a
PA
53102010-05-06 Pedro Alves <pedro@codesourcery.com>
5311
5312 * remote.c (clear_threads_parsing_context): New.
5313 (remote_threads_info): Delete unused null_cleanup. Install a
5314 cleanup to clear the threads_parsing_context in case parsing
5315 throws.
5316
8c5630cb
MS
53172010-05-05 Michael Snyder <msnyder@vmware.com>
5318
5319 * c-exp.y (parse_string_or_char): Delete unused variable.
5320 (c_lex): Delete unused variable.
5321 * cp-name-parser.y (cpname_lex): Delete unused variable.
5322 * ada-exp.y (find_primitive_type): Delete unused variable.
5323 (write_var_or_type): Delete unused variable.
5324 * jv-exp.y (java_parse): Delete unused variable.
5325 (push_expression_name): Delete unused variable.
5326 * p-exp.y (pascal_lex): Delete unused variable.
5327
46c162d4
PA
53282010-05-05 Pedro Alves <pedro@codesourcery.com>
5329
5330 * remote.c (remote_threads_info): Really revert previous previous
5331 change.
5332
0043e6a5
MS
53332010-05-05 Michael Snyder <msnyder@vmware.com>
5334
fa238c03
MS
5335 * elfread.c (elf_symtab_read): Delete unused variable.
5336 (find_separate_debug_file_by_buildid): Delete unused variables.
5337 (elf_symfile_read): Delete unused variable.
5338
5339 * coffread.c (coff_symfile_read): Delete unused variables.
5340
5341 * coff-pe-read.c (add_pe_exported_sym): Delete unused variable.
5342 (read_pe_exported_syms): Delete unused variable.
5343
5344 * stabsread.c (define_symbol): Delete unused variable.
5345
5346 * dwarf2read.c (read_type_comp_unit_head): Delete unused variable.
5347 (process_psymtab_comp_unit): Delete unused variable.
5348 (dwarf2_build_psymtabs_hard): Delete unused variable.
5349 (load_partial_comp_unit): Delete unused variable.
5350 (create_all_comp_units): Delete unused variable.
5351 (scan_partial_symbols): Delete unused variable.
5352 (add_partial_symbol): Delete unused variable.
5353 (add_partial_namespace): Delete unused variable.
5354 (add_partial_enumeration): Delete unused variable.
5355 (load_full_comp_unit): Delete unused variable.
5356 (process_full_comp_unit): Delete unused variable.
5357 (read_file_scope): Delete unused variable.
5358 (read_type_unit_scope): Delete unused variable.
5359 (process_structure_scope): Delete unused variable.
5360 (process_enumeration_scope): Delete unused variable.
5361 (read_tag_ptr_to_member_type): Delete unused variable.
5362 (read_typedef): Delete unused variable.
5363 (read_partial_die): Delete unused variable.
5364 (decode_locdesc): Delete unused variable.
5365 (zeroed_partial_die): Delete unused global variable.
5366
0407b3f1 5367 * tui/tui-interp.c (_initialize_tui_interp):
0043e6a5 5368 Delete unused variable.
0407b3f1 5369 * tui/tui-regs.c tui_display_registers_from):
0043e6a5
MS
5370 Delete unused variable.
5371 (tui_check_register_values): Delete unused variable.
5372 (tui_register_format): Delete unused variable.
5373 * tui/tui-win.c (_initialize_tui_win): Delete unused variable.
0407b3f1 5374 * tui/tui-windata.c (tui_display_data_from_line):
0043e6a5
MS
5375 Delete unused variables.
5376 (tui_vertical_data_scroll): Delete unused variables.
5377
75721c66
MS
53782010-05-05 Michael Snyder <msnyder@vmware.com>
5379
c31a71f4
MS
5380 * remote.c (remote_threads_info): Revert questionable part of
5381 the previous change.
5382
53832010-05-05 Michael Snyder <msnyder@vmware.com>
5384
5385 * mi/mi-out.c (mi_table_begin): Delete unused variable.
5386 * mi/mi-cmd-var.c (print_varobj): Delete unused variable.
5387 (mi_cmd_var_list_children): Delete unused variable.
5388 (varobj_update_one): Delete unused variable.
5389 * mi/mi-cmd-break.c (mi_cmd_break_insert): Delete unused variables.
0407b3f1 5390 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals):
c31a71f4
MS
5391 Delete unused variable.
5392 (mi_cmd_stack_list_variables): Delete unused variable.
5393 (list_args_or_locals): Delete unused variable.
0407b3f1 5394 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file):
c31a71f4
MS
5395 Delete unused variables.
5396 (mi_cmd_file_list_exec_source_files): Delete unused variable.
0407b3f1 5397 * mi/mi-cmd-target.c (mi_cmd_target_file_delete):
c31a71f4
MS
5398 Delete unused variable.
5399 * mi/mi-interp.c (mi_interpreter_exec): Delete unused variable.
5400 (mi_cmd_interpreter_exec): Delete unused variable.
5401 (mi_on_normal_stop): Delete unused variable.
5402 * mi/mi-main.c (run_one_inferior): Delete unused variable.
5403 (print_one_inferior): Delete unused variables.
5404 (mi_execute_command): Delete unused variable.
5405 (mi_cmd_execute): Delete unused variable.
5406 (timestamp): Delete unused variable.
5407
5408 * cli/cli-dump.c (dump_memory_to_file): Delete unused variable.
d36fc00b 5409 (restore_binary_file): Delete unused variable.
c31a71f4
MS
5410 * cli/cli-decode.c (deprecated_cmd_warning): Delete unused variables.
5411 * cli/cli-script.c (define_command): Delete unused variables.
d36fc00b
MS
5412 (recurse_read_control_structure): Delete unused variable.
5413 (script_from_file): Delete unused variable.
c31a71f4 5414 * cli/cli-cmds.c (complete_command): Delete unused variable.
d36fc00b
MS
5415 (disassemble_command): Delete unused variable.
5416
5417 * ax-gdb.c (gen_struct_elt_for_reference): Delete unused variables.
0407b3f1 5418 * tracepoint.c (delete_trace_variable_command):
d36fc00b
MS
5419 Delete unused variables.
5420 (encode_actions_1): Delete unused variables.
5421 (start_tracing): Delete unused variable.
5422 (trace_status_mi): Delete unused variable.
5423 (tfind_1): Delete unused variable.
5424 (trace_find_pc_command): Delete unused variable.
5425 (trace_find_line_command): Delete unused variables.
5426 (trace_find_range_command): Delete unused variables.
5427 (trace_find_outside_command): Delete unused variables.
5428 (parse_tracepoint_definition): Delete unused variables.
5429 (tfile_fetch_registers): Delete unused variable.
5430
9128a503
MS
5431 * dcache.c (dcache_init): Delete unused variable.
5432 (dcache_info): Delete unused variable.
5433
aa369b55 5434 * remote.c (remote_threads_info): Delete unused variable.
9128a503 5435 (process_stop_reply) :Delete unused variable.
aa369b55
MS
5436 (remote_get_trace_status): Delete unused variables.
5437
9e9547e4
MS
5438 * linux-thread-db.c (add_thread_db_info): Delete unused variable.
5439 (thread_from_lwp): Delete unused variable.
5440 (enable_thread_event_reporting): Delete unused variable.
5441 (check_for_thread_db): Delete unused variables.
5442 (thread_db_find_new_threads_2): Delete unused variable.
0407b3f1 5443
9e9547e4
MS
5444 * linux-fork.c (info_checkpoints_command): Delete unused variables.
5445 (checkpoint_command): Delete unused variable.
5446 (linux_fork_context): Delete unused variables.
5447
fa238c03 5448 * linux-nat.c (linux_parent_pid): Delete unused global variable.
75083f7e
MS
5449 (linux_tracefork_child): Delete unused variable.
5450 (linux_child_follow_fork): Delete unused variable.
5451 (linux_nat_detach): Delete unused variable.
5452 (linux_handle_extended_wait): Delete unused variable.
5453 (linux_nat_has_pending_sigint): Delete unused variable.
5454 (linux_nat_find_memory_regions): Delete unused variable.
5455 (linux_nat_make_corefile_notes): Delete unused variables.
5456 (linux_nat_info_proc_cmd): Delete unused variable.
5457 (linux_proc_pending_signals): Delete unused variable.
5458 (linux_nat_stop_lwp): Delete unused variables.
5459 (_initialize_linux_nat): Delete unused variable.
5460
fa238c03 5461 * ser-pipe.c (pipe_ops): Delete unused global variable.
2d148b94 5462
0407b3f1 5463 * linux-record.c (record_linux_system_call):
e0f069a3
MS
5464 Delete unused variables.
5465
789d24f0
MS
5466 * corelow.c (core_xfer_partial): Delete unused variables.
5467
1cd337a5 5468 * solib-svr4.c (find_program_interpreter): Delete unused variable.
0407b3f1 5469 (svr4_solib_create_inferior_hook): Add ifdef around
1cd337a5
MS
5470 conditionally-used variable declarations.
5471
b00e3f56
MS
5472 * solib.c (solib_find): Delete unused variable.
5473 (free_so_symbols): Delete unused variable.
5474 (info_sharedlibrary_command): Delete unused variable.
5475 (reload_shared_libraries_1): Delete unused variable.
5476 (_initialize_solib): Delete unused variable.
5477
90f62196
MS
5478 * i386-tdep.c (i386_supply_xstateregset) Delete unused variable.
5479 (i386_collect_xstateregset): Delete unused variable.
5480 * i387-tdep.c (i387_print_float_info): Delete unused variable.
5481
75721c66
MS
5482 * features/i386/i386-mmx.c (initialize_tdesc_i386_mmx):
5483 Delete unused variable 'type'.
5484
af33db37
JB
54852010-05-05 Joel Brobecker <brobecker@adacore.com>
5486
90f62196 5487 * gdbtypes.h (MAX_OF_TYPE, MIN_OF_TYPE): Delete macros. *
63db82b2
JB
5488 ada-lang.c: Remove comment mentioning these macros.
5489 * m2-exp.y: Delete commented out code.
af33db37 5490
0497f5b0
JB
54912010-05-05 Joel Brobecker <brobecker@adacore.com>
5492
5493 * sparc-tdep.c (sparc_structure_or_union_p): Return non-zero
5494 for array types.
5495 * sparc64-tdep.c (sparc64_structure_or_union_p): Likewise.
5496
6e39997a
PM
54972010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5498
5499 ARI fix: Remove ATTRIBUTE_UNUSED throughout.
0407b3f1 5500 * arm-linux-tdep.c (arm_linux_cleanup_svc): Remove
6e39997a
PM
5501 ATTRIBUTE_UNUSED.
5502 (cleanup_kernel_helper_return): Likewise.
5503 * arm-tdep.c (copy_unmodified): Likewise.
5504 (copy_preload): Likewise.
5505 (copy_copro_load_store): Likewise.
5506 (cleanup_branch): Likewise.
5507 (copy_b_bl_blx): Likewise.
5508 (copy_bx_blx_reg): Likewise.
5509 (copy_alu_imm): Likewise.
5510 (copy_alu_reg): Likewise.
5511 (copy_alu_shifted_reg): Likewise.
5512 (cleanup_load): Likewise.
5513 (cleanup_store): Likewise.
5514 (cleanup_block_load_pc): Likewise.
5515 (cleanup_svc): Likewise.
5516 (copy_undef): Likewise.
5517 (copy_unpred): Likewise.
5518 * remote.c (register_remote_support_xml): Likewise.
5519
1412f70b
HZ
55202010-05-05 Hui Zhu <teawater@gmail.com>
5521
5522 * gdbarch.h (gdbarch_has_dos_based_file_system): Update comment.
5523
c4f7c687
MK
55242010-05-04 Mark Kettenis <kettenis@gnu.org>
5525
5526 * remote.c (register_remote_support_xml)
5527 (remote_query_supported_append, remote_query_supported): Add cast
5528 to NULL used as sentinel.
5529 * tracepoint.c (tvariables_info_1): Likewise.
5530 * utils.c (add_internal_problem_command): Likewise.
5531
63b4f126
MGD
55322010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5533
5534 * dwarf2loc.c (read_pieced_value, write_pieced_value,
5535 dwarf2_evaluate_loc_desc): Handle not being able to access DWARF
5536 registers gracefully.
5537
2f1bdd26
MGD
55382010-05-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5539
0407b3f1 5540 * exec.c (print_section_info): Display entry point without arch
2f1bdd26
MGD
5541 specific parts.
5542
e1c34c5d
PM
55432010-05-04 Pierre Muller <muller@ics.u-strasbg.fr>
5544
5545 PR exp/11349.
5546 * printcmd.c (x_command): Only dereference once implicitly for
5547 TYPE_CODE_REF.
5548
ae462839
DE
55492010-05-03 Doug Evans <dje@google.com>
5550
5551 * event-loop.c (gdb_timer): Delete unused global.
5552 (create_timer): Update.
5553
1ac77ea1
JK
55542010-05-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5555
5556 * cp-namespace.c (cp_lookup_symbol_imports): Support ALIAS for the
5557 CURRENT->DECLARATION case.
5558 * cp-support.h (struct using_direct): Provide extended comment.
5559
7c54a108
MK
55602010-05-03 Mark Kettenis <kettenis@gnu.org>
5561
5562 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Renamed from
5563 HPPABSD_SIZEOF_GREGS.
5564 (HPPAOBSD_SIZEOF_FPREGS): New define.
5565 (hppaobsd_supply_gregset): Renamed from hppabsd_supply_gregset.
5566 (hppaobsd_supply_fpregset): New function.
5567 (hppaobsd_gregset): Renamed from hppabsd_gregset.
5568 (hppaobsd_fpregset): New variable.
5569 (hppaobsd_regset_from_core_section): Handle floating-point registers.
5570 (_initialize_hppabsd_tdep): Remove spurious blank line.
5571
278582cb
PM
55722010-05-03 Pierre Muller <muller@ics.u-strasbg.fr>
5573
5574 PR pascal/11349.
5575 * p-valprint.c (pascal_value_print): Always dereference a value with
5576 type code TYPE_CODE_REF.
0407b3f1 5577
f0223081
PA
55782010-05-03 Pedro Alves <pedro@codesourcery.com>
5579
5580 * remote.c (remote_notice_signals): New.
5581 (remote_start_remote): In non-stop mode, update the remote end on
5582 which signals it can silently pass.
5583 (init_remote_ops): Install remote_notice_signals.
5584
c25c4a8b
JK
55852010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5586
5587 * cli/cli-cmds.h (error_no_arg): Remove. Move the comment ...
5588 * command.h (error_no_arg): ... here. Remove NORETURN, change
5589 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5590 * defs.h (NORETURN, ATTR_NORETURN): Remove.
5591 (perror_with_name, verror, error, error_stream, vfatal, fatal)
5592 (internal_verror, internal_error, nomem): Remove NORETURN, change
5593 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5594 * exceptions.c (throw_exception, deprecated_throw_reason, throw_verror)
5595 (throw_vfatal, throw_error): Remove NORETURN.
5596 (throw_it): Remove NORETURN, change ATTR_NORETURN to ATTRIBUTE_NORETURN.
5597 * exceptions.h (throw_exception, throw_verror, throw_vfatal)
5598 (throw_error, deprecated_throw_reason): Remove NORETURN, change
5599 ATTR_NORETURN to ATTRIBUTE_NORETURN.
5600 * linespec.c (cplusplus_error): Remove NORETURN, change ATTR_NORETURN
5601 to ATTRIBUTE_NORETURN for prototype, for the definition only remove
5602 NORETURN.
5603 * remote-mips.c (mips_error): Change NORETURN to ATTRIBUTE_NORETURN.
5604 * remote-sim.c (gdb_os_error): Change ATTR_NORETURN to
5605 ATTRIBUTE_NORETURN.
5606 * target.c (tcomplain): Likewise.
5607 * target.h (noprocess): Remove NORETURN, change ATTR_NORETURN to
5608 ATTRIBUTE_NORETURN.
5609 * utils.c (verror, error, vfatal, fatal, error_stream, internal_verror)
5610 (internal_error, perror_with_name, nomem): Remove NORETURN.
5611 * xml-support.h (gdb_xml_error): Change ATTR_NORETURN to
5612 ATTRIBUTE_NORETURN.
5613
a0b31db1
JK
56142010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5615
5616 * ada-lang.c (lim_warning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5617 * amd64-tdep.c (amd64_insn_length_fprintf): Likewise.
5618 * cli-out.c (cli_field_fmt): New ATTRIBUTE_PRINTF.
5619 (cli_message, out_field_fmt): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5620 * complaints.c (find_complaint): New ATTRIBUTE_PRINTF.
5621 (vcomplaint): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5622 * complaints.h (complaint, internal_complaint): Likewise.
5623 * defs.h: Change ATTR_FORMAT to ATTRIBUTE_PRINTF in the top comment.
5624 (ATTR_FORMAT): Remove.
5625 (query, nquery, yquery, vprintf_filtered, vfprintf_filtered)
5626 (fprintf_filtered, fprintfi_filtered, printf_filtered, printfi_filtered)
5627 (vprintf_unfiltered, vfprintf_unfiltered, fprintf_unfiltered)
5628 (printf_unfiltered, xasprintf, xvasprintf, xstrprintf, xstrvprintf)
5629 (xsnprintf, verror, error, vfatal, fatal, internal_verror)
5630 (internal_error, internal_vwarning, internal_warning, warning)
5631 (vwarning): Change ATTR_FORMAT to ATTRIBUTE_PRINTF.
5632 * disasm.c (fprintf_disasm): Likewise.
5633 * exceptions.c (throw_it): Likewise.
5634 * exceptions.h (exception_fprintf, throw_verror, throw_vfatal)
5635 (throw_error): Likewise.
5636 * language.h (type_error, range_error): Likewise.
5637 * linespec.c (cplusplus_error): Likewise.
5638 * mi/mi-interp.c (mi_interp_query_hook): Likewise.
5639 * mi/mi-out.c (mi_field_fmt, mi_message): Likewise.
5640 * monitor.c (monitor_debug): Likewise.
5641 * parser-defs.h (parser_fprintf): Likewise.
5642 * serial.h (serial_printf): Likewise.
5643 * tui/tui-hooks.c (tui_query_hook): Likewise.
5644 * ui-out.c (default_field_fmt, default_message, uo_field_fmt)
5645 (uo_message): Likewise.
5646 * ui-out.h (ui_out_field_fmt, ui_out_message): Likewise.
5647 * utils.c (vfprintf_maybe_filtered, internal_vproblem, defaulted_query):
5648 Likewise.
5649 * xml-support.h (gdb_xml_debug, gdb_xml_error): Likewise.
5650
02a45ac0
PA
56512010-05-02 Pedro Alves <pedro@codesourcery.com>
5652
5653 * cli-out.c (cli_table_begin, cli_table_body, cli_table_end)
5654 (cli_table_header, cli_begin, cli_end, cli_field_int)
5655 (cli_field_skip, cli_field_string, cli_field_fmt, cli_spaces)
5656 (cli_text, cli_message, cli_wrap_hint, cli_flush, cli_redirect):
5657 Delete forward declarations.
5658 (cli_ui_out_impl): Move below the callbacks.
5659 (_initialize_cli_out): Delete.
5660
1915ef4f
PA
56612010-05-02 Pedro Alves <pedro@codesourcery.com>
5662
5663 * README: Use consistent `GDB' and `GDBserver' spellings.
5664
0dfb946f
JK
56652010-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5666
5667 * cli/cli-dump.h (parse_and_eval_with_error): Remove the declaration.
5668
4d533103
PA
56692010-05-01 Pedro Alves <pedro@codesourcery.com>
5670
5671 * infrun.c (prepare_for_detach): In non-stop, context switch to
5672 the thread that got the event before handling the event.
5673
705b5767
TT
56742010-04-30 Tom Tromey <tromey@redhat.com>
5675
5676 * symtab.c (symbol_set_names): Fix typo.
5677
3c0ee1a4
PM
56782010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5679
5680 * python/py-param.c (parm_constants): Avoid ARI warning
5681 by adding ARI comment.
5682 (parmpy_init): Likewise.
5683
ea1fae46
PM
56842010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5685
5686 * windows-tdep.c (windows_get_tlb_type): Remember last GDBARCH
5687 and created type for re-use.
5688
c24d0242
PM
56892010-04-30 Pierre Muller <muller@ics.u-strasbg.fr>
5690
5691 * NEWS: Mention gdbserver support for x86_64 Windows 64-bit.
5692
a26d8d11
DE
56932010-04-29 Doug Evans <dje@google.com>
5694
5695 * ser-base.h (reschedule): Delete prototype.
5696 * ser-base.c (reschedule): Make static.
5697
f8624c62
MGD
56982010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5699
5700 * arm-linux-tdep.c (ARM_LINUX_JB_PC): Remove.
5701 (ARM_LINUX_JB_PC_FPA): Add, offset of PC in longjmp buffer for FPA.
0407b3f1 5702 (ARM_LINUX_JB_PC_EABI): Add, offset of PC in longjmp buffer for
f8624c62 5703 EABI.
0407b3f1 5704 (arm_linux_init_abi): Set up JB_PC field dependent on FP model in
f8624c62
MGD
5705 use.
5706
e66408ed
PA
57072010-04-29 Pedro Alves <pedro@codesourcery.com>
5708
5709 PR gdb/11557
5710
5711 * regcache.c (registers_changed): Rename to ...
5712 (registers_changed_ptid): ... this, and only delete register cache
5713 entries matching the ptid filter argument.
5714 (registers_changed): Reimplement on top of registers_changed_ptid.
5715 * regcache.h (registers_changed_ptid): Declare.
5716 * target.c (target_resume): Flush register caches.
5717
d7b32ed3 57182010-04-29 Phil Muldoon <pmuldoon@redhat.com>
0407b3f1
AS
5719 Tom Tromey <tromey@redhat.com>
5720 Thiago Jung Bauermann <bauerman@br.ibm.com>
5721
5722 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-parameter.
5723 (SUBDIR_PYTHON_SRCS): Likewise.
5724 (py-parameter.o): New rule.
5725 * python/py-parameter.c: New file.
5726 * python/python-internal.h (gdbpy_initialize_parameter)
5727 (gdbpy_parameter, gdbpy_parameter_value)
5728 (gdbpy_parse_command_name): Declare.
5729 * python/py-cmd.c (parse_command_name): Rename to
5730 gdbpy_parse_command_name.
5731 (gdbpy_parse_command_name): Accept a starting list parameter and
5732 use over cmdlist.
5733 (cmdpy_init): Use gdbpy_parse_command_name.
5734 * python/python.c (parameter_to_python): Rename to
5735 gdbpy_parameter_to_python. Accept enum var_types and value.
5736 (gdbpy_parameter): Use gdbpy_parameter_value.
5737 (_initialize_python): Call gdbpy_initialize_parameters.
d7b32ed3 5738
ce72ce41
MGD
57392010-04-29 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5740
5741 * MAINTAINERS: Add myself for write after approval privileges.
5742
6aecb9c2
JB
57432010-04-29 Mihail Zenkov <mihail.zenkov@gmail.com>
5744
5745 D language support.
5746 * Makefile.in (SFILES): Add d-lang.c d-valprint.c.
5747 (COMMON_OBS): Add d-lang.o d-valprint.o.
5748 (HFILES_NO_SRCDIR): Add d-lang.h.
5749 * NEWS: Mention D language support.
5750 * c-lang.c (c_emit_char, exp_descriptor_c): Make public.
5751 * c-lang.h (c_emit_char, exp_descriptor_c): Add declaration.
5752 * d-lang.c: New file.
5753 * d-lang.h: New file.
5754 * d-valprint.c: New file.
5755 * defs.h (enum language): Add language_d.
5756 * dwarf2read.c (set_cu_language): Add DW_LANG_D.
5757 * language.c (binop_result_type, integral_type, character_type)
5758 (string_type, boolean_type, structured_type): Add language_d.
5759 * symfile.c (init_filename_language_table): Add language_d.
5760 * symtab.c: Include d-lang.h.
5761 (symbol_init_language_specific, symbol_find_demangled_name)
5762 (symbol_natural_name, lookup_symbol_in_language)
5763 (symbol_demangled_name, symbol_matches_domain): Add language_d.
5764
6f992fbf
JB
57652010-04-27 Joel Brobecker <brobecker@adacore.com>
5766
5767 * solib-svr4.c (solib_svr4_r_map): Expand function description.
5768
dde59185
JB
57692010-04-27 Joel Brobecker <brobecker@adacore.com>
5770
5771 * symfile.c (init_filename_language_table): Register .dg files
5772 with language_ada.
5773
d09ce91e
JB
57742010-04-27 Joel Brobecker <brobecker@adacore.com>
5775
5776 * gdbtypes.h (struct main_type): Expand comment about target_type
5777 field.
5778
67f1675e
JB
57792010-04-27 Pedro Alves <pedro@codesourcery.com>
5780 Tristan Gingold <gingold@adacore.com>
02aeec7b
JB
5781
5782 * symfile.c (reread_symbols): Also search for file in libraries.
5783 Update comment.
5784
dfd0fe27
JB
57852010-04-27 Joel Brobecker <brobecker@adacore.com>
5786
5787 * configure.tgt: Treat x86-lynxos targets as x86 bareboard targets
5788 in terms of configuration.
5789
0133421a
JK
57902010-04-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5791
5792 * objfiles.c: Include solist.h.
5793 (free_all_objfiles): New variable so. Check stale solist objfiles.
5794 * symfile.c (symbol_file_clear): Swap the order of free_all_objfiles
5795 and no_shared_libraries.
5796
e78f4312
JB
57972010-04-27 Joel Brobecker <brobecker@adacore.com>
5798
5799 ARI warning fix.
5800 * python/py-auto-load.c (source_section_scripts): Remove trailing
5801 new-line in i18n string.
5802
9214d371
DE
58032010-04-26 Doug Evans <dje@google.com>
5804
5805 * serial.c (serial_write): Handle serial_debug_p akin to serial_read.
5806
3f172e24
TT
58072010-04-26 Tom Tromey <tromey@redhat.com>
5808
5809 * cli/cli-decode.c (complete_on_cmdlist): Make two passes over the
5810 command list.
5811
e790e06e
PM
58122010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5813
5814 Removal of config/i386/nm-i386sol2.h native configuration file.
5815 * config/i386/nm-i386sol2.h: Remove file.
5816 * config/i386/i386sol2.mh: Remove NAT_FILE definition.
5817 * config/i386/sol2-64.mh: Idem.
88562582
PM
5818 * config/djgpp/fnchange.lst: Remove reference to that file.
5819 * Makefile.in (HFILES_NO_SRCDIR): Idem.
e790e06e 5820
b7da9e9f
PM
58212010-04-26 Pierre Muller <muller@ics.u-strasbg.fr>
5822
5823 PR breakpoints/11531.
5824 * config/i386/nm-i386sol2.h (CANNOT_STEP_HW_WATCHPOINTS): Remove
5825 macro definition and related comment.
5826 * infrun.c (CANNOT_STEP_HW_WATCHPOINTS): Remove macro.
5827 (resume): Remove code and comment related to this macro.
5828
72f6eb52
JK
58292010-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5830
5831 * cp-namespace.c (cp_lookup_symbol_in_namespace): Fix alloca size.
5832 Fix whitespace.
5833
ab38a727
PA
58342010-04-24 Pedro Alves <pedro@codesourcery.com>
5835
5836 * defs.h: Adjust comment.
5837 * filesystem.h, filesystem.c: New files.
5838 * Makefile.in (SFILES): Add filesystem.c.
5839 (COMMON_OBS): Add filesystem.o.
5840 * solib.c (solib_find): Handle DOS-based filesystems. Handle
5841 different target and host path flavours.
5842 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
5843 has_dos_based_file_system on the gdbarch.
5844 * arm-wince-tdep.c (arm_wince_init_abi): Ditto.
5845 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Ditto.
5846 * i386-tdep.c (i386_go32_init_abi): Ditto.
5847 * gdbarch.sh (has_dos_based_file_system): New.
5848 * gdbarch.h, gdbarch.c: Regenerate.
5849 * NEWS: Mention improved support for remote targets with DOS-based
5850 filesystems. Mention new `set/show target-file-system-kind'
5851 commands.
5852
35c9c7ba
SS
58532010-04-23 Stan Shebs <stan@codesourcery.com>
5854
5855 * ax.h (struct agent_expr): Merge in agent_reqs fields, add some
5856 comments.
5857 (struct agent_reqs): Remove.
5858 (ax_reg_mask): Declare.
5859 * ax-general.c (new_agent_expr): Add gdbarch argument, set new fields.
5860 (free_agent_expr): Free reg_mask.
5861 (ax_print): Add scope and register mask info.
5862 (ax_reqs): Remove agent_reqs argument, use agent expression
5863 fields, and move part of register mask computation to...
5864 (ax_reg_mask): New function.
5865 * ax-gdb.c (gen_trace_static_fields): Call it.
5866 (gen_traced_pop): Ditto.
5867 (is_nontrivial_conversion): Add dummy gdbarch to new_agent_expr.
5868 (gen_trace_for_var): Pass gdbarch to new_agent_expr.
5869 (gen_trace_for_expr): Ditto, and clear optimized_out flag.
5870 (gen_eval_for_expr): Ditto, and require an rvalue.
5871 (agent_command): Call ax_reqs.
5872 (agent_eval_command): Ditto.
5873 * tracepoint.c (report_agent_reqs_errors): Use agent expression fields.
5874 (validate_action_line): Ditto.
5875 (collect_symbol): Ditto.
5876 (encode_actions_1): Ditto.
5877
492928e4
JK
58782010-04-23 Daniel Jacobowitz <dan@codesourcery.com>
5879 Paul Pluzhnikov <ppluzhnikov@google.com>
5880 Jan Kratochvil <jan.kratochvil@redhat.com>
5881
5882 Fix deadlock on looped list of loaded shared objects.
5883 * solib-svr4.c (LM_PREV): New function.
5884 (IGNORE_FIRST_LINK_MAP_ENTRY): Use it.
5885 (svr4_current_sos): Check for correct l_prev. New variables prev_lm
5886 and next_lm. Clear prev_lm for solib_svr4_r_ldsomap.
5887 * config/djgpp/fnchange.lst: Add translation for solib-corrupted.exp.
5888
66d09542
DE
58892010-04-23 Doug Evans <dje@google.com>
5890
88a1906b
DE
5891 * configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
5892 python.
5893 * configure: Regenerate.
5894 * main.c: #include "python/python.h".
5895 (captured_main): Defer loading auto-loaded scripts until after
5896 local_gdbinit has been sourced.
5897 * python/py-auto-load.c (gdbpy_global_auto_load): New global.
5898 (load_auto_scripts_for_objfile): New function.
5899 (auto_load_new_objfile): Call it.
5900 * python/python.h (gdbpy_global_auto_load): Declare.
5901 (load_auto_scripts_for_objfile): Declare.
5902
66d09542
DE
5903 Add support for auto-loading scripts from .debug_gdb_scripts section.
5904 * NEWS: Add entry for .debug_gdb_scripts.
5905 * Makefile.in SUBDIR_PYTHON_OBS): Add py-auto-load.o.
5906 (SUBDIR_PYTHON_SRCS): Add py-auto-load.c.
5907 (py-auto-load.o): New rule.
5908 * cli/cli-cmds.c (find_and_open_script): Make externally visible.
5909 * cli/cli-cmds.h (find_and_open_script): Update prototype.
5910 * python/py-auto-load.c: New file.
5911 * python/python-internal.h: #include <stdio.h>.
5912 (set_python_list, show_python_list): Declare.
5913 (gdbpy_initialize_auto_load): Declare.
5914 (source_python_script_for_objfile): Declare.
5915 * python/python.c: Remove #include of observer.h.
5916 (gdbpy_auto_load): Moved to py-auto-load.c.
5917 (GDBPY_AUTO_FILENAME): Ditto.
5918 (gdbpy_new_objfile): Delete.
5919 (source_python_script_for_objfile): New function.
5920 (set_python_list, show_python_list): Make externally visible.
5921 (_initialize_python): Move "auto-load" command to py-auto-load.c
5922 and observer_attach_new_objfile to py-auto-load.c.
5923
3a48e6ff 59242010-04-23 Jerome Guitton <guitton@adacore.com>
0407b3f1 5925
3a48e6ff
JG
5926 * alpha-tdep.c (INSN_OPCODE, MEM_RA, MEM_RB, MEM_DISP, BR_RA)
5927 (OPR_FUNCTION, OPR_HAS_IMMEDIATE, OPR_RA, OPR_RC, OPR_LIT): New macros.
5928 (lda_opcode, stq_opcode, bne_opcode, subq_opcode, subq_function):
5929 New constants.
5930 (alpha_heuristic_analyze_probing_loop): New function.
5931 (alpha_heuristic_frame_unwind_cache): In the prologue analysis, detect
5932 and handle cases when a stack probe loop is generated.
5933 * alpha-mdebug-tdep.c (alpha_mdebug_frameless): New function.
5934 (alpha_mdebug_max_frame_size_exceeded): New function.
5935 (alpha_mdebug_after_prologue): Use alpha_mdebug_frameless.
5936 (alpha_mdebug_frame_sniffer, alpha_mdebug_frame_base_sniffer):
5937 Return 0 when the maximum debuggable frame size has been exceeded.
5938
e4166a49
JB
59392010-04-23 Joel Brobecker <brobecker@adacore.com>
5940
5941 Fix ARI warning.
5942 * ppc-linux-nat.c (booke_cmp_hw_point): Do not mark inline.
5943
8bd10a10
CM
59442010-04-20 Chris Moller <cmoller@redhat.com>
5945
5946 PR 10179
5947
5948 * symtab.c (rbreak_command): Added code to include a filename
5949 specification in the rbreak argument.
5950 * NEWS: Added a brief description of filename-qualified rbreak.
5951
c0201579
JK
59522010-04-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5953
5954 Fix crashes on dangling display expressions.
5955 * ada-lang.c (ada_operator_check): New function.
5956 (ada_exp_descriptor): Fill-in the field operator_check.
5957 * c-lang.c (exp_descriptor_c): Fill-in the field operator_check.
5958 * jv-lang.c (exp_descriptor_java): Likewise.
5959 * m2-lang.c (exp_descriptor_modula2): Likewise.
5960 * scm-lang.c (exp_descriptor_scm): Likewise.
5961 * parse.c (exp_descriptor_standard): Likewise.
5962 (operator_check_standard): New function.
5963 (exp_iterate, exp_uses_objfile_iter, exp_uses_objfile): New functions.
5964 * parser-defs.h (struct exp_descriptor): New field operator_check.
5965 (operator_check_standard, exp_uses_objfile): New declarations.
5966 * printcmd.c: Remove the inclusion of solib.h.
5967 (display_uses_solib_p): Remove the function.
5968 (clear_dangling_display_expressions): Call lookup_objfile_from_block
5969 and exp_uses_objfile instead of display_uses_solib_p.
5970 * solist.h (struct so_list) <objfile>: New comment.
5971 * symtab.c (lookup_objfile_from_block): Remove the static qualifier.
5972 * symtab.h (lookup_objfile_from_block): New declaration.
5973 (struct general_symbol_info) <obj_section>: Extend the comment.
5974
6ffbb7ab
TJB
59752010-04-22 Sergio Durigan Junior <sergiodj@linux.vnet.ibm.com>
5976 Thiago Jung Bauermann <bauerman@br.ibm.com>
5977
5978 * ppc-linux-nat.c (PTRACE_GET_DEBUGREG): Update comment.
5979 (PPC_PTRACE_GETWDBGINFO, PPC_PTRACE_SETHWDEBUG, PPC_PTRACE_DELHWDEBUG,
5980 ppc_debug_info, PPC_DEBUG_FEATURE_INSN_BP_RANGE,
5981 PPC_DEBUG_FEATURE_INSN_BP_MASK, PPC_DEBUG_FEATURE_DATA_BP_RANGE,
5982 PPC_DEBUG_FEATURE_DATA_BP_MASK, ppc_hw_breakpoint,
5983 PPC_BREAKPOINT_TRIGGER_EXECUTE, PPC_BREAKPOINT_TRIGGER READ,
5984 PPC_BREAKPOINT_TRIGGER_WRITE, PPC_BREAKPOINT_TRIGGER_RW,
5985 PPC_BREAKPOINT_MODE_EXACT PPC_BREAKPOINT_MODE_RANGE_INCLUSIVE,
5986 PPC_BREAKPOINT_MODE_RANGE_EXCLUSIVE, PPC_BREAKPOINT_MODE_MASK,
5987 PPC_BREAKPOINT_CONDITION_NONE, PPC_BREAKPOINT_CONDITION_AND,
5988 PPC_BREAKPOINT_CONDITION_EXACT, PPC_BREAKPOINT_CONDITION_OR,
5989 PPC_BREAKPOINT_CONDITION_AND_OR, PPC_BREAKPOINT_CONDITION_BE_ALL,
5990 PPC_BREAKPOINT_CONDITION_BE_SHIFT, PPC_BREAKPOINT_CONDITION_BE):
5991 Define, in case <ptrace.h> doesn't provide it.
5992 (booke_debug_info): New variable.
5993 (max_slots_number): Ditto.
5994 (hw_break_tuple): New struct.
5995 (thread_points): Ditto.
5996 (ppc_threads): New variable.
5997 (PPC_DEBUG_CURRENT_VERSION): New define.
5998 (have_ptrace_new_debug_booke): New function.
5999 (ppc_linux_check_watch_resources): Renamed to ...
6000 (ppc_linux_can_use_hw_breakpoint): ... this. Handle BookE processors.
6001 (ppc_linux_region_ok_for_hw_watchpoint): Handle BookE processors.
6002 (booke_cmp_hw_point): New function.
6003 (booke_find_thread_points_by_tid): Ditto.
6004 (booke_insert_point): Ditto.
6005 (booke_remove_point): Ditto.
6006 (ppc_linux_insert_hw_breakpoint): Ditto.
6007 (ppc_linux_remove_hw_breakpoint): Ditto.
6008 (get_trigger_type): Ditto.
6009 (ppc_linux_insert_watchpoint): Handle BookE processors.
6010 (ppc_linux_remove_watchpoint): Ditto.
6011 (ppc_linux_new_thread): Ditto.
6012 (ppc_linux_thread_exit): New function..
6013 (ppc_linux_stopped_data_address): Handle BookE processors.
6014 (ppc_linux_watchpoint_addr_within_range): Ditto.
6015 (_initialize_ppc_linux_nat): Initialize to_insert_hw_breakpoint and
6016 to_remove_hw_breakpoint fields of the target operations struct.
6017 Add observe for the thread_exit event.
6018
be0d2954
L
60192010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6020
6021 * i386-linux-nat.c (regmap): Removed.
6022 (fetch_register): Replace regmap with
6023 i386_linux_gregset_reg_offset.
6024 (store_register): Likewise.
6025 (supply_gregset): Likewise.
6026 (fill_gregset): Likewise.
6027
6028 * i386-linux-tdep.c (i386_linux_gregset_reg_offset): Make it
6029 global.
6030
6031 * i386-linux-tdep.h (i386_linux_gregset_reg_offset): New.
6032
f56dcb88
CM
60332010-04-22 Chris Moller <cmoller@redhat.com>
6034
6035 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
758afad7
L
6036 method of popping recursion-detection stack with a method based on
6037 obstack_object_size(). (Similar to the PR9167 patch below, but for
f56dcb88
CM
6038 the static array obstack rather than the static member obstack.)
6039
6cd6a2ae
L
60402010-04-22 H.J. Lu <hongjiu.lu@intel.com>
6041
6042 * amd64-linux-nat.c (amd64_linux_gregset64_reg_offset): Removed.
6043 (_initialize_amd64_linux_nat): Replace
6044 amd64_linux_gregset64_reg_offset with
6045 amd64_linux_gregset_reg_offset.
6046
6047 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Make it
6048 global.
6049
6050 * amd64-tdep.h (amd64_linux_gregset_reg_offset): New.
6051
621791b8
PM
60522010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6053
6054 PR stabs/11479.
6055 * stabsread.c (set_length_in_type_chain): New function.
6056 (read_struct_type): Call set_length_in_type_chain function.
6057 (read_enum_type): Idem.
6058
105c2d85
SS
60592010-04-21 Stan Shebs <stan@codesourcery.com>
6060 Nathan Sidwell <nathan@codesourcery.com>
6061
6062 * tracepoint.c (trace_save): Open in binary mode.
6063
9a22f0d0
PM
60642010-04-22 Pierre Muller <muller@ics.u-strasbg.fr>
6065
6066 * gdbtypes.h (builtin_type): Add builtin_char16 and builtin_char32
6067 fields.
0407b3f1 6068 * gdbtypes.c (gdbtypes_post_init): Set builtin_char16 and
9a22f0d0
PM
6069 builtin_char32 fields.
6070 * printcmd.c (decode_format): Set char size to '\0'
6071 for strings unless explicit size is given.
6072 (print_formatted): Correct calculation of NEXT_ADDRESS
6073 for 16 or 32 bit strings.
6074 (do_examine): Do not force byte size for strings.
6075 Use builtin_char16 and builtin_char32 types to display
0407b3f1 6076 16 or 32 bit-wide strings.
9a22f0d0
PM
6077 (x_command): Set LAST_SIZE to 'b' for string type.
6078
f335d1b3
L
60792010-04-21 H.J. Lu <hongjiu.lu@intel.com>
6080
6081 PR corefiles/11523
6082 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6083 XCR0 first.
6084
6085 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Return 0 if
6086 there is no .reg-xstate section.
6087 (i386_linux_core_read_description): Check XCR0 first.
6088
a9789a6b
MF
60892010-04-21 Mike Frysinger <vapier@gentoo.org>
6090
6091 * gdb/sparc-tdep.c (sparc32_store_return_value): Add gdb_assert ()
6092 for len <= 8.
6093
0b66f317
CM
60942010-04-21 Chris Moller <cmoller@redhat.com>
6095
6096 PR 9167
6097 * cp-valprint.c (cp_print_value_fields): Replaced obstack_base()
32d7376d
L
6098 method of popping recursion-detection stack with a method based on
6099 obstack_object_size().
0b66f317 6100
6e354e5e
PM
61012010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6102
6103 PR pascal/11492.
6104 * p-valprint.c (pascal_val_print): Fix default printing of integer
6105 arrays.
6106
57174f31
PM
61072010-04-21 Pierre Muller <muller@ics.u-strasbg.fr>
6108
6109 Fix compilation warning on gcc-4.1.2.
6110 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Initialize
6111 local variable`pc' to zero.
6112
6fbc7cd8
JB
61132010-04-20 Joel Brobecker <brobecker@adacore.com>
6114
6115 Implement thread support with core files on alpha-tru64.
6116 * dec-thread.c (dec_thread_find_new_threads): New function,
6117 extracted from resync_thread_list.
6118 (resync_thread_list): Add OPS parameter. Replace extracted-out
6119 code by call to dec_thread_find_new_threads.
6120 (dec_thread_wait): Update call to resync_thread_list.
6121 (init_dec_thread_ops): Set dec_thread_ops.to_find_new_threads.
6122
438c98a1
JB
61232010-04-20 Joel Brobecker <brobecker@adacore.com>
6124
6125 * ada-lang.c (value_pointer): New function.
6126 (make_array_descriptor): Call value_pointer to convert addresses to
6127 pointers.
6128
2971b56b
JB
61292010-04-20 Joel Brobecker <brobecker@adacore.com>
6130
6131 * rs6000-aix-tdep.c: #include exceptions.h.
6132 (rs6000_convert_from_func_ptr_addr): If an exception is thrown
6133 while reading the memory at ADDR, then ADDR cannot be a function
6134 descriptor.
6135
be942545
JB
61362010-04-20 Joel Brobecker <brobecker@adacore.com>
6137
6138 * ada-typeprint.c (ada_print_typedef): New function.
6139 * ada-lang.h (ada_print_typedef): Add declaration.
6140 * ada-lang.c (ada_language_defn): set la_print_typdef field
6141 to ada_print_typedef.
6142
1ca8fce0
JB
61432010-04-20 Joel Brobecker <brobecker@adacore.com>
6144
6145 * procfs.c (procfs_address_to_host_pointer): Only define when used.
6146
e9ef4f39
JB
61472010-04-20 Joel Brobecker <brobecker@adacore.com>
6148
6149 * procfs.c (iterate_over_mappings_cb_ftype): New typedef.
6150 (iterate_over_mappings): Adjust function profile. Add declaration.
6151 (insert_dbx_link_bpt_in_region, info_mappings_callback):
6152 Adjust accordingly.
6153
e294797a
JB
61542010-04-20 Joel Brobecker <brobecker@adacore.com>
6155
6156 * procfs.c (solib_mappings_callback): Move function up to avoid
6157 a compiler warning.
6158
a223f1e7
JB
61592010-04-20 Joel Brobecker <brobecker@adacore.com>
6160
6161 * procfs.c (find_signalled_thread, find_stop_signal): Move
6162 these functions down to define them only when used.
6163
0c3acc09
JB
61642010-04-20 Joel Brobecker <brobecker@adacore.com>
6165
6166 * valprint.c (common_val_print): Fix the value before extracting
6167 its contents.
6168 * ada-lang.c (ada_to_fixed_value): Make this function extern.
6169 * ada-lang.h (ada_to_fixed_value): New function declaration.
6170 * ada-valprint.c (ada_value_print): Use ada_to_fixed_value
6171 to avoid code duplication and fix a bug in the handling of
6172 fixed types contents.
6173
31ef98ae
TT
61742010-04-20 Tom Tromey <tromey@redhat.com>
6175
6176 * dwarf2read.c (dwarf2_compute_name): Handle DW_AT_linkage_name.
6177 (read_partial_die): Likewise.
6178 (dwarf_attr_name): Likewise.
6179
ec31cde5 61802010-04-20 Chris Moller <cmoller@redhat.com>
0407b3f1 6181
ec31cde5
CM
6182 PR 10867
6183
6184 * cp-valprint.c (global): Adding new static array recursion
6185 detection obstack.
6186 (cp_print_value_fields, cp_print_static_field): Added new static
6187 array recursion detection code.
6188
e0e0e543
MK
61892010-04-20 Mark Kettenis <kettenis@gnu.org>
6190
6191 * i386-linux-tdep.c (i386_linux_regset_sections): Size of the
6192 general-purpose register set should be 68 instead of 144.
6193 (i386_linux_sse_regset_sections): Likewise.
6194 (i386_linux_avx_regset_sections): Likewise.
6195
08922a10
SS
61962010-04-20 Stan Shebs <stan@codesourcery.com>
6197 Nathan Sidwell <nathan@codesourcery.com>
6198
6199 * dwarf2loc.c (struct axs_var_loc): New struct.
6200 (dwarf2_tracepoint_var_loc): New function.
6201 (dwarf2_tracepoint_var_access): New function.
6202 (dwarf2_tracepoint_var_ref): Use dwarf2_tracepoint_var_loc, deal
6203 with DW_OP_piece.
6204 (locexpr_describe_location_piece): New function.
6205 (locexpr_describe_location_1): New function.
6206 (locexpr_describe_location): Call it, update signature.
6207 (loclist_describe_location): Rewrite to loop over locations,
6208 update signature.
6209 * symtab.h (struct symbol_computed_ops): Add address to
6210 describe_location arguments, return void.
6211 * printcmd.c (address_info): Get context PC, pass to computed
6212 location description.
6213 * tracepoint.c (scope_info): Ditto.
6214 * ax-gdb.c (trace_kludge): Export.
6215
2dc7f7b3
TT
62162010-04-20 Tom Tromey <tromey@redhat.com>
6217
6218 * dwarf2-frame.c (decode_frame_entry_1): Handle CIE version 4.
6219 (struct dwarf2_cie) <segment_size>: New field.
6220 * dwarf2read.c (partial_read_comp_unit_head): Accept DWARF 4.
6221 (skip_one_die): Handle DW_FORM_flag_present, DW_FORM_sec_offset,
6222 DW_FORM_exprloc.
6223 (read_attribute_value): Handle DW_FORM_flag_present,
6224 DW_FORM_sec_offset, DW_FORM_exprloc.
6225 (dump_die_shallow): Likewise.
6226 (attr_form_is_section_offset): Handle DW_FORM_sec_offset.
6227 (dwarf2_const_value): Handle DW_FORM_exprloc.
6228 (attr_form_is_block): Likewise.
6229 (struct line_header) <maximum_ops_per_instruction>: New field.
6230 (dwarf_decode_line_header): Set new field.
6231 (dwarf_decode_lines): Handle new field.
6232
ce4b0682
SDJ
62332010-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6234
6235 * f-exp.y: Add new production to recognize the `logical*8' type.
6236 (LOGICAL_S8_KEYWORD): New token.
6237 * f-lang.c (enum f_primitive_types)
6238 <f_primitive_type_logical_s8>: New field.
6239 (f_language_arch_info): Handling `logical*8' type.
6240 (build_fortran_types): Building `logical*8' type.
6241 * f-lang.h (struct builtin_f_type) <builtin_logical_s8>: New field.
6242
ff9f22f1
DE
62432010-04-19 Doug Evans <dje@google.com>
6244
6245 * ser-base.c (generic_readchar): Watch for EOF in read of error_fd.
6246 * ser-pipe.c (pipe_open): Fix file descriptor leaks.
6247 (pipe_close): Ditto.
6248
437125bd
PM
62492010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6250
6251 * configure.tgt (x86_64-*-mingw*): Set BUILD_GDBSERVER to yes.
6252
e8e6c82e
PM
62532010-04-19 Pierre Muller <muller@ics.u-strasbg.fr>
6254
6255 * windows-tdep.c (windows_get_tlb_type): Change current_seh.handle
6256 type to void function.
6257
4136fdd2
SS
62582010-04-19 Stan Shebs <stan@codesourcery.com>
6259 Vladimir Prus <vladimir@codesourcery.com>
6260
6261 * tracepoint.c (tfind_1): Add missing newline, report exit from
6262 tfind mode as such.
6263 * target.c (update_current_target): Make default
6264 to_trace_find return -1.
6265
0c4b2e63
MF
62662010-04-19 Mike Frysinger <vapier@gentoo.org>
6267
6268 * objc-lang.c (find_methods): Move symname check up.
6269
78076abc
PA
62702010-04-19 Pedro Alves <pedro@codesourcery.com>
6271
6272 * ada-lang.c (print_recreate_exception)
6273 <ex_catch_exception_unhandled>: It's "catch exception unhandled",
6274 not "catch unhandled".
6275
6149aea9
PA
62762010-04-19 Pedro Alves <pedro@codesourcery.com>
6277
6278 PR breakpoints/8554.
6279
6280 Implement `save-breakpoints'.
6281
6282 * breakpoint.c (save_cmdlist): New.
6283 (breakpoint_set_cmdlist, breakpoint_show_cmdlist): Moved up close
6284 to save_cmdlist.
6285 (print_recreate_catch_fork): New.
6286 (catch_fork_breakpoint_ops): Install it.
6287 (print_recreate_catch_vfork): New.
6288 (catch_vfork_breakpoint_ops): Install it.
6289 (print_recreate_catch_syscall): New.
6290 (catch_syscall_breakpoint_ops): Install it.
6291 (print_recreate_catch_exec): New.
6292 (catch_exec_breakpoint_ops): Install it.
6293 (print_recreate_exception_catchpoint): New.
6294 (gnu_v3_exception_catchpoint_ops): Install it.
6295 (save_breakpoints): New, based on tracepoint_save_command, but
6296 handle all breakpoint types.
6297 (save_breakpoints_command): New.
6298 (tracepoint_save_command): Rename to...
6299 (save_tracepoints_command): ... this, and reimplement using
6300 save_breakpoints.
6301 (save_command): New.
6302 (_initialize_breakpoints): Install the "save" command prefix.
6303 Install the "save breakpoints" command. Make "save-tracepoints" a
6304 deprecated alias for "save tracepoints".
6305 * breakpoint.h (struct breakpoint_ops): New field `print_recreate'.
6306 * ada-lang.c (print_recreate_exception): New.
6307 (print_recreate_catch_exception): New.
6308 (catch_exception_breakpoint_ops): Install it.
6309 (print_recreate_catch_exception_unhandled): New.
6310 (catch_exception_unhandled_breakpoint_ops): Install it.
6311 (print_recreate_catch_assert): New.
6312 (catch_assert_breakpoint_ops): Install it.
6313
6314 * NEWS: Mention the new `save breakpoints' command. Mention the
6315 new `save tracepoints' alias and that `save-tracepoints' is now
6316 deprecated.
6317
0a8fce9a
PA
63182010-04-18 Pedro Alves <pedro@codesourcery.com>
6319
6320 PR tui/9217
6321
6322 * tui/tui-out.c: Include cli-out.h.
6323 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6324 (tui_begin, tui_end, tui_field_int, tui_field_skip)
6325 (tui_field_string, tui_field_fmt, tui_spaces, tui_text)
6326 (tui_message, tui_wrap_hint, tui_flush): Delete forward
6327 declarations.
6328 (struct ui_out_data): Rename to...
6329 (struct tui_ui_out_data): ... this. Remove `stream' and
6330 `suppress_output' fields, and inherit cli_ui_out_data.
6331 (tui_out_data): New typedef.
6332 (tui_ui_out_impl): Don't initialize fields staticaly.
6333 (tui_table_begin, tui_table_body, tui_table_end, tui_table_header)
6334 (tui_begin, tui_end): Delete.
6335 (tui_field_int): Adjust to delegate most work to the base type.
6336 (tui_field_skip): Delete.
6337 (tui_field_string, tui_field_fmt): Adjust comment. Adjust to
6338 delegate most work to the base type.
6339 (tui_spaces): Delete.
6340 (tui_text): Adjust to delegate most work to the base type.
6341 (tui_message): Delete.
6342 (tui_wrap_hint): Delete.
6343 (tui_flush): Delete.
6344 (out_field_fmt): Delete.
6345 (field_separator): Delete.
6346 (tui_out_new): Adjust to initialize the base type.
6347 (_initialize_tui_out): Initialize tui_ui_out_impl.
6348 * cli-out.c (struct ui_out_data): Moved out to cli-out.h, renamed
6349 cli_ui_out_data.
6350 (cli_out_data): Adjust.
6351 (cli_ui_out_impl): Make extern.
6352 (cli_table_header, cli_field_int, cli_field_skip): Use
6353 uo_field_string instead of cli_field_string.
6354 (cli_redirect): Adjust to use cli_out_data.
6355 (cli_out_data_ctor): New.
6356 (cli_out_new): Use it.
6357 * cli-out.h (struct ui_file): Remove forward declaration.
6358 (struct cli_ui_out_data): New, moved from cli-out.c, and renamed.
6359 (cli_ui_out_impl): Declare.
6360 (cli_out_data_ctor): Declare.
6361 * ui-out.c (struct ui_out) <data>: Change type to void pointer.
6362 (uo_field_string): No longer static.
6363 (ui_out_data): Change return type to void pointer.
6364 (ui_out_new): Change `data' parameter type to void pointer.
6365 * ui-out.h (struct ui_out_data): Don't forward declare.
6366 (ui_out_data): Change return type to void pointer.
6367 (ui_out_new): Change `data' parameter type to void pointer.
6368 (uo_field_string): Declare.
6369
172240dd
PA
63702010-04-17 Pedro Alves <pedro@codesourcery.com>
6371
6372 * ui-file.c (tee_file_isatty): Return whether `tee->one' is a tty,
6373 instead of always false.
6374
ed41462c
L
63752010-04-17 H.J. Lu <hongjiu.lu@intel.com>
6376
6377 PR corefiles/11511
6378 * amd64-linux-tdep.c (amd64_linux_gregset_reg_offset): Support
6379 orig_rax.
6380
cc60f2e3
PA
63812010-04-17 Pedro Alves <pedro@codesourcery.com>
6382
6383 * breakpoint.c (watchpoints_triggered): Use
6384 is_hardware_watchpoint.
6385 (watchpoints_triggered): Ditto.
6386 (bpstat_check_location): Use is_watchpoint and
6387 is_hardware_watchpoint.
6388 (bpstat_check_watchpoint): Use is_watchpoint and
6389 is_hardware_watchpoint.
6390 (bpstat_stop_status): Fix comment.
6391 (user_settable_breakpoint): Use is_watchpoint.
6392 (hw_watchpoint_used_count): Use is_hardware_watchpoint.
6393 (disable_watchpoints_before_interactive_call_start): Use
6394 is_watchpoint.
6395 (enable_watchpoints_after_interactive_call_stop): Use
6396 is_watchpoint.
6397 (clear_command): Use is_watchpoint.
6398 (do_enable_breakpoint): Use is_watchpoint.
6399
cb7db0f2
MF
64002010-04-16 Mike Frysinger <vapier@gentoo.org>
6401
6402 * solib-frv.c (enable_break1_done): Delete.
6403 (enable_break2): Do not check enable_break1_done. Move the
6404 enable_break2_done setting and call to
6405 remove_solib_event_breakpoints() to the end. Return without
6406 warning when the contents of _dl_debug_addr are 0.
6407 (enable_break): Do not set enable_break1_done.
6408 (frv_clear_solib): Likewise.
6409
d77b48cf
KB
64102010-04-16 Kevin Buettner <kevinb@redhat.com>
6411
6412 * m32c-tdep.c (m32c_m16c_address_to_pointer): Print warning
6413 instead of an error if no PLT entry is found. Return a
6414 potentially useful result.
6415 (m32c_m16c_pointer_to_address): Add code to search for function
6416 address when no .plt entry is found.
6417
f90824dc
SS
64182010-04-16 Stan Shebs <stan@codesourcery.com>
6419
6420 * tracepoint.c (trace_variable_command): Run a cleanup.
6421
9b79b476
PM
64222010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6423
6424 * p-lang.c (pascal_one_char): Do not restrict C to 0..255 range.
6425
711e434b
PM
64262010-04-16 Pierre Muller <muller@ics.u-strasbg.fr>
6427
6428 Support for Windows OS Thread Information Block.
6429 * NEWS: Document new feature.
6430 * remote.c (PACKET_qGetTIBAddr): New enum element.
6431 (remote_get_tib_address): New function.
6432 (init_remote_ops): Set to_get_tib_address field
6433 to remote_get_tib_address.
6434 (_initialize_remote): Add add_packet_config_cmd
6435 for PACKET_qGetTIBAddr.
6436 * target.c (update_current_target): Set default value for
6437 new to_get_tib_address field.
6438 * target.h (target_ops): New field to_get_tib_address.
6439 (target_get_tib_address): New macro.
6440 * windows-nat.c (thread_info): Add thread_local_base field.
6441 (windows_add_thread): Add tlb argument of type 'void *'.
6442 (fake_create_process): Adapt windows_add_thread call.
6443 (get_windows_debug_event): Idem.
6444 (windows_get_tib_address): New function.
6445 (init_windows_ops): Set to_get_tib_address field
6446 to remote_get_tib_address.
6447 (_initialize_windows_nat): Replace info_w32_cmdlist
6448 initialization by a call to init_w32_command_list.
6449 (info_w32_command, info_w32_cmdlist): Removed from here...
6450 to windows-tdep.c file.
6451 * windows-tdep.h (info_w32_cmdlist): Declare.
0407b3f1 6452 (init_w32_command_list): New external function
711e434b
PM
6453 declaration.
6454 * windows-tdep.c: Add several headers.
6455 (info_w32_cmdlist): to here, made global.
6456 (thread_information_32): New struct.
6457 (thread_information_64): New struct.
6458 (TIB_NAME): New char array.
6459 (MAX_TIB32, MAX_TIB64, FULL_TIB_SIZE): New constants.
6460 (maint_display_all_tib): New static variable.
6461 (windows_get_tlb_type): New function.
6462 (tlb_value_read, tlb_value_write): New functions.
6463 (tlb_value_funcs): New static struct.
6464 (tlb_make_value): New function.
6465 (display_one_tib): New function.
6466 (display_tib): New function.
6467 (show_maint_show_all_tib):New function.
6468 (info_w32_command): Moved from windows-nat.c.
6469 (init_w32_command_list): New function.
6470 (_initialize_windows_tdep): New function.
6471 New "maint set/show show-all-tib" command
6472 New "$_tlb" internal variable.
6473
cae3f17b
JB
64742010-04-16 Joel Brobecker <brobecker@adacore.com>
6475
6476 * tui/tui-regs.c (tui_display_register): Add comment about
6477 a couple of casts.
6478 * tui/tui-stack.c (tui_show_locator_content): Ditto.
6479
2ce6d6bf
SS
64802010-04-15 Stan Shebs <stan@codesourcery.com>
6481
6482 * frame.c: Include tracepoint.h.
6483 (get_current_frame): Allow a trace frame to be an alternate source
6484 of stack frame data.
6485 * tracepoint.c (tfind_1): Don't try to get current stack frame if
6486 it won't succeed.
6487
7e559477
PA
64882010-04-15 Pedro Alves <pedro@codesourcery.com>
6489
6490 * ppc-linux-tdep.c (bsd_uthread_solib_loaded): Always pass 0 for
6491 flags.
6492 * solib-spu.c (spu_solib_loaded): Always pass 0 for flags.
6493
3f7b2faa
DE
64942010-04-15 Doug Evans <dje@google.com>
6495
fa33c3cd
DE
6496 * NEWS: Add entry for python program space support.
6497 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-progspace.o.
6498 (SUBDIR_PYTHON_SRCS): Add py-progspace.c.
6499 (py-progspace.o): New rule.
6500 * python/py-prettyprint.c (find_pretty_printer_from_objfiles): New
6501 function.
6502 (find_pretty_printer_from_progspace): New function.
6503 (find_pretty_printer_from_gdb): New function.
6504 (find_pretty_printer): Rewrite.
6505 * python/py-progspace.c: New file.
6506 * python/python-internal.h (program_space): Add forward decl.
6507 (pspace_to_pspace_object, pspy_get_printers): Declare.
6508 (gdbpy_initialize_pspace): Declare.
6509 * python/python.c: #include "progspace.h".
6510 (gdbpy_get_current_progspace, gdbpy_progspaces): New functions.
6511 (_initialize_python): Call gdbpy_initialize_pspace.
6512 (GdbMethods): Add current_progspace, progspaces.
6513
3f7b2faa
DE
6514 Add -s option to source command.
6515 * NEWS: Document new option.
6516 * cli/cli-cmds.c (find_and_open_script): Add function comment.
6517 Delete from_tty and cleanupp args. Split filep arg into file and
6518 full_pathp. New arg search_path.
6519 (source_script_from_stream): New function.
6520 (source_script_with_search): New function.
6521 (source_script): Rewrite.
6522 (source_command): Parse "-s" option.
6523 (init_cli_cmds): Add "-s" docs to source command help, and reformat.
6524 * python/python.c (source_python_script): Make file arg a const char *.
6525 Don't call fclose, leave for caller.
6526 * python/python.h (source_python_script): Update.
6527
a86988f2
PA
65282010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6529 Pedro Alves <pedro@codesourcery.com>
6530
6531 Avoid rereading shared libraries that haven't changed.
6532
6533 * solib.c (free_so_symbols): New function, from ...
6534 (free_so): ... here. Call it.
6535 (solib_read_symbols): Don't warn here if symbols have already been
6536 loaded.
6537 (solib_add): Warn here instead, if a pattern was specified.
6538 (reload_shared_libraries_1): New.
6539 (reload_shared_libraries): Rewrite to not fetch the library list.
6540
e6d9b9c2
DE
65412010-04-14 Doug Evans <dje@google.com>
6542
589390d6 6543 * source.c (openp): Strip DOS drive letter if present before
e6d9b9c2
DE
6544 concatenating string to search path.
6545
516ba659
PA
65462010-04-14 Pedro Alves <pedro@codesourcery.com>
6547
6548 * objfiles.h (gdb_bfd_close_or_warn): Declare.
6549 * objfiles.c (gdb_bfd_close_or_warn): New.
6550 * corelow.c: Include objfiles.h
6551 (core_close): Use gdb_bfd_close_or_warn.
6552 * elfread.c (build_id_verify): Ditto.
6553 * exec.c (exec_close, exec_close_1): Ditto.
6554
048d532d
PA
65552010-04-14 Daniel Jacobowitz <dan@codesourcery.com>
6556 Pedro Alves <pedro@codesourcery.com>
6557
6558 Group errors for many missing shared libraries.
6559
6560 * solist.h (struct so_list): Remove from_tty.
6561 * solib.c (solib_bfd_open): Return NULL if we failed to open a BFD.
6562 (solib_map_sections): Take so_list argument. Return 0 if we
6563 failed to open a BFD. Add target sections here.
6564 (symbol_add_stub): Delete.
6565 (solib_read_symbols): Inline symbol_add_stub. Use current flags,
6566 not from_tty copied from the so_list. Don't warn a second time
6567 for a missing library.
6568 (update_solib_list): Don't save from_tty. Use TRY_CATCH. Do not
6569 add to the section table here. Print out a single warning for all
6570 missing libraries.
6571 * bsd-uthread.c (bsd_uthread_solib_loaded): Always pass 0 for
6572 flags.
6573
044c0f87
PM
65742010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6575
6576 * python/py-block.c (gdbpy_block_for_pc): Use i8n to encompass
6577 error/warning messages. Capitalize and use complete sentences.
6578 (blpy_block_syms_iternext): Likewise.
6579 * python/py-cmd.c (parse_command_name, cmdpy_init): Likewise.
6580 * python/py-frame.c (FRAPY_REQUIRE_VALID, frapy_block)
6581 (frame_info_to_frame_object, frapy_read_var)
6582 (gdbpy_frame_stop_reason_string): Likewise.
6583 * python/py-lazy-string.c (stpy_convert_to_value)
6584 (gdbpy_create_lazy_string_object): Likewise.
6585 * python/py-objfile.c (objfpy_set_printers): Likewise.
6586 * python/py-prettyprint.c (gdbpy_default_visualizer): Likewise.
6587 * python/python.c (parameter_to_python): Likewise.
6588 * python/py-type.c (typy_range, typy_target): Likewise.
6589 * python/py-value.c (valpy_cast, valpy_length, valpy_getitem)
6590 (valpy_richcompare, valpy_int, valpy_long, valpy_float): Likewise.
6591
6592
79f283fe
PM
65932010-04-14 Phil Muldoon <pmuldoon@redhat.com>
6594
6595 PR python/11381
6596
6597 * python/py-prettyprint.c (pretty_print_one_value): Test for
6598 Py_None.
6599 (print_string_repr): Test for Py_None. Set flags accordingly.
6600 Return value depending on return type.
6601 (print_children): Take a value indicating whether data was printed
6602 before this function was called. Alter output accordingly.
6603 (apply_val_pretty_printer): Capture return value from
6604 print_string_repr and pass to print_children.
6605
4ac5d44e
MK
66062010-04-13 Mark Kettenis <kettenis@gnu.org>
6607
e1caee70 6608 PR corefiles/11481
4ac5d44e
MK
6609 * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
6610 register note sections.
6611 (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
6612 New variables.
6613 (i386_linux_init_abi): Install list of supported register note
6614 sections that matches the target description.
6615
ad91cd99
PA
66162010-04-13 Pedro Alves <pedro@codesourcery.com>
6617
6618 * remote.c (remote_get_noisy_reply): Don't error out on empty
6619 replies.
6620 (remote_start_remote): Update and merge tracepoints and trace
6621 state variables as long as the target supports tracepoints.
6622 (remote_trace_init): Fix prototype.
6623 (remote_download_trace_state_variable): Validate reply.
6624 (remote_trace_set_readonly_regions): Fix prototype.
6625 (remote_trace_start): Fix prototype. Check for empty reply.
6626 (remote_get_trace_status): Small cleanup.
6627 (remote_trace_stop): Fix prototype. Check for empty reply.
6628 (remote_trace_find): Check for empty reply.
6629 (remote_save_trace_data): Validate reply.
6630 (remote_set_disconnected_tracing): Check for empty reply, and
6631 validate reply.
6632 (remote_set_circular_trace_buffer): Ditto.
6633
ae3bccd4
PM
66342010-04-13 Pierre Muller <muller@ics.u-strasbg.fr>
6635
6636 Suppress unused value warning during compilation.
6637 * tui/tui-regs.c (tui_display_register): Cast wstandout and wstandend
6638 calls to void.
6639 * tui/tui-stack.c (tui_show_locator_content): Likewise.
6640
523136f2
SS
66412010-04-12 Stan Shebs <stan@codesourcery.com>
6642
6643 * tracepoint.c (tfile_xfer_partial): Check read result.
6644
0d18d720
MF
66452010-04-12 Mike Frysinger <vapier@gentoo.org>
6646
6647 * remote-m32r-sdi.c (m32r_files_info): Add const to local "file" var.
6648 * remote-sim.c (gdbsim_files_info): Likewise.
6649
3b273a55
RE
66502010-04-12 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6651
6652 * arm-tdep.h (gdb_regnum): Add ARM_FPSCR_REGNUM
6653 * arm-linux-nat.c (arm_linux_vfp_register_count): New
6654 variable.
6655 (fetch_vfp_registers): New function to fetch VFP registers.
6656 (store_vfp_registers): New function to store VFP registers.
6657 (arm_linux_fetch_inferior_registers): Add support for VFP
6658 registers.
6659 (arm_linux_store_inferior_registers): Likewise.
6660 (arm_linux_read_description): Likewise.
6661 (_initialize_arm_linux_nat): Delay initialising iWMMX tdesc
6662 until we need it.
6663
778c7095
L
66642010-04-11 H.J. Lu <hongjiu.lu@intel.com>
6665
6666 * amd64-tdep.c (amd64_supply_xstateregset): Remove the unused
6667 tdep.
6668 (amd64_collect_xstateregset): Likewise.
6669
2114d44c
SS
66702010-04-09 Stan Shebs <stan@codesourcery.com>
6671
87290684
SS
6672 * tracepoint.c (trace_status_mi): Report frames created.
6673
2114d44c
SS
6674 * tracepoint.c (trace_dump_command): Include default-collect
6675 expressions.
6676
86da934b
UW
66772010-04-09 Ulrich Weigand <uweigand@de.ibm.com>
6678
6679 * symtab.c (find_function_start_sal): Never return SAL pointing
6680 before function start address, even if line info is missing.
6681
2d6e647a 66822010-04-09 Pedro Alves <pedro@codesourcery.com>
d337e9f0
PA
6683
6684 * NEWS: Mention tracepoints support.
6685
a97153c7
PA
66862010-04-09 Pedro Alves <pedro@codesourcery.com>
6687
6688 * tracepoint.c (trace_status_mi): Report disconnected tracing and
6689 circular trace buffer statuses.
6690
7a66d603
JK
66912010-04-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6692
6693 * config/djgpp/fnchange.lst: Fix typo in translations for
6694 symbol-without-target_section.exp and symbol-without-target_section.c.
6695
2566ad2d
PA
66962010-04-09 Pedro Alves <pedro@codesourcery.com>
6697
6698 * breakpoint.c (condition_command): Pass condition expression to
6699 set_breakpoint_condition stripped from breakpoint number.
6700
adc36818
PM
67012010-04-09 Phil Muldoon <pmuldoon@redhat.com>
6702 Thiago Jung Bauermann <bauerman@br.ibm.com>
2566ad2d 6703 Tom Tromey <tromey@redhat.com>
adc36818
PM
6704
6705 * breakpoint.c (condition_command): Simplify. Move condition
6706 setting code to ...
6707 (set_breakpoint_condition): ... here. New function.
6708 * breakpoint.h (set_breakpoint_condition): Declare.
6709 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-breakpoint.
6710 (SUBDIR_PYTHON_SRCS): Likewise.
6711 (py-breakpoint.o): New rule.
6712 * python/py-breakpoint.c: New file.
6713 * python/python-internal.h (gdbpy_breakpoints)
6714 (gdbpy_initialize_breakpoints): Declare.
6715 (GDB_PY_SET_HANDLE_EXCEPTION) Define.
6716
219f2f23
PA
67172010-04-09 Pedro Alves <pedro@codesourcery.com>
6718
6719 * regformats/regdat.sh: Include server.h. Don't include
6720 regcache.h.
6721
33da3f1c
SS
67222010-04-08 Stan Shebs <stan@codesourcery.com>
6723 Pedro Alves <pedro@codesourcery.com>
6724
6725 * tracepoint.h (struct trace_status): New fields disconnected_tracing
6726 and circular_buffer.
6727 (disconnect_tracing): Rename from disconnect_or_stop_tracing.
6728 * tracepoint.c (trace_status_command): Display target's status for
6729 disconnected tracing and circular buffer.
6730 (disconnect_tracing): Rename from disconnect_or_stop_tracing, add
6731 query for non-disconnected-tracing case, remove the stop_tracing
6732 call.
6733 (tfile_open): Clear disconnected and circular buffer status.
6734 (trace_save): Save disconnected and circular buffer status.
6735 (parse_trace_status): Parse disconnected and circular buffer status,
6736 also recognize disconnected as a stop reason.
6737 * remote.c (remote_set_disconnected_tracing): Only set
6738 QTDisconnected if the remote end supports disconnected tracing.
6739 Warn otherwise, if trying to enable disconnected tracing.
6740 * infcmd.c (detach_command): Update disconnect_tracing call.
6741 * cli/cli-cmds.c (quit_command): Ditto.
6742
4e4d8374
L
67432010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6744
6745 * i387-tdep.c (i387_collect_xsave): Replace abort with
6746 internal_error.
6747
ad443146
SS
67482010-04-08 Stan Shebs <stan@codesourcery.com>
6749
6750 * breakpoint.c (default_collect_info): New function.
6751 (breakpoints_info): Call it.
6752 (maintenance_info_breakpoints): Ditto.
6753 (tracepoints_info): Ditto.
6754
40936b0d
L
67552010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6756
6757 * i387-tdep.c (i387_collect_xsave): Re-indent.
6758
3a13a53b
L
67592010-04-08 H.J. Lu <hongjiu.lu@intel.com>
6760
6761 * i386-linux-nat.c (have_ptrace_getfpxregs): Initialize to -1
6762 if HAVE_PTRACE_GETFPXREGS is defined.
6763 (i386_linux_read_description): Set have_ptrace_getfpxregs and
6764 have_ptrace_getregset to 0 if ptrace PTRACE_GETFPXREGS failed.
6765
6766 * i386-linux-tdep.c: Include "features/i386/i386-mmx-linux.c"
6767 (i386_linux_core_read_description): Return tdesc_i386_mmx_linux
6768 if .reg-xfp section doesn't exist.
6769 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_mmx_linux.
6770
6771 * i386-linux-tdep.h (tdesc_i386_mmx_linux): New.
6772
6773 * i386-tdep.c: Include "features/i386/i386-mmx.c".
6774 (i386_go32_init_abi): Set tdesc to tdesc_i386_mmx.
6775 (i386_validate_tdesc_p): Make org.gnu.gdb.i386.sse optional. Set
6776 xcr0 to I386_XSTATE_X87_MASK if SSE isn't available.
6777 (i386_gdbarch_init): Update comments.
6778 (_initialize_i386_tdep): Call initialize_tdesc_i386_mmx.
6779
6780 * common/i386-xstate.h (I386_XSTATE_X87_MASK): New.
6781
6782 * config/djgpp/fnchange.lst: Add i386 MMX XML files.
6783
6784 * features/Makefile (i386/i386-mmx-expedite): New.
6785 (i386/i386-mmx-linux-expedite): Likewise.
6786 ($(outdir)/i386/i386-mmx.dat): Likewise.
6787 ($(outdir)/i386/i386-mmx-linux.dat): Likewise.
6788
6789 * features/i386/i386-mmx-linux.c: New.
6790 * features/i386/i386-mmx-linux.xml: Likewise.
6791 * features/i386/i386-mmx.c: Likewise.
6792 * features/i386/i386-mmx.xml: Likewise.
6793 * regformats/i386/i386-mmx-linux.dat: Likewise.
6794 * regformats/i386/i386-mmx.dat: Likewise.
6795
6796 * features/Makefile (WHICH): Add i386/i386-mmx and
6797 i386/i386-mmx-linux.
6798
08001717
DE
67992010-04-08 Doug Evans <dje@google.com>
6800
6801 * source.c (openp): Skip $cdir in PATH.
6802
fff5cc64
PM
68032010-04-08 Phil Muldoon <pmuldoon@redhat.com>
6804
6805 PR python/11417
fff5cc64 6806 * python/py-lazy-string.c (stpy_convert_to_value): Check for
3a13a53b
L
6807 a NULL address.
6808 (gdbpy_create_lazy_string_object): Allow strings with a NULL
6809 address and a zero length.
fff5cc64 6810
f8c4f480
HZ
68112010-04-08 Hui Zhu <teawater@gmail.com>
6812
6813 * i386-tdep.c (i386_process_record): Add support for insn
6814 rdtsc.
6815
eb5cda86
DE
68162010-04-07 Doug Evans <dje@google.com>
6817
6818 * python/python.c (source_python_script): Use ensure_python_env
6819 to prepare environment for script.
6820
a055a187
L
68212010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6822
6823 * amd64-linux-nat.c: Include "regset.h", "elf/common.h",
6824 <sys/uio.h> and "i386-xstate.h".
6825 (PTRACE_GETREGSET): New.
6826 (PTRACE_SETREGSET): Likewise.
6827 (have_ptrace_getregset): Likewise.
6828 (amd64_linux_gregset64_reg_offset): Include 16 upper YMM
6829 registers.
6830 (amd64_linux_gregset32_reg_offset): Include 8 upper YMM
6831 registers.
6832 (amd64_linux_fetch_inferior_registers): Support PTRACE_GETFPREGS.
6833 (amd64_linux_store_inferior_registers): Likewise.
6834 (amd64_linux_read_description): Check and enable AVX target
6835 descriptions.
6836
6837 * amd64-linux-tdep.c: Include "regset.h", "i386-linux-tdep.h"
6838 and "features/i386/amd64-avx-linux.c".
6839 (amd64_linux_regset_sections): New.
6840 (amd64_linux_core_read_description): Check and enable AVX
6841 target description.
6842 (amd64_linux_init_abi): Set xsave_xcr0_offset. Call
6843 set_gdbarch_core_regset_sections.
6844 (_initialize_amd64_linux_tdep): Call
6845 initialize_tdesc_amd64_avx_linux.
6846
6847 * amd64-linux-tdep.h (AMD64_LINUX_ORIG_RAX_REGNUM): Replace
6848 AMD64_MXCSR_REGNUM with AMD64_YMM15H_REGNUM.
6849 (tdesc_amd64_avx_linux): New.
6850 (amd64_linux_update_xstateregset): Likewise.
6851
6852 * amd64-tdep.c: Include "features/i386/amd64-avx.c".
6853 (amd64_ymm_names): New.
6854 (amd64_ymmh_names): Likewise.
6855 (amd64_register_name): Likewise.
6856 (amd64_supply_xstateregset): Likewise.
6857 (amd64_collect_xstateregset): Likewise.
6858 (amd64_supply_xsave): Likewise.
6859 (amd64_collect_xsave): Likewise.
6860 (AMD64_NUM_REGS): Removed.
6861 (amd64_dwarf_reg_to_regnum): Return %ymmN register number for
6862 %xmmN if AVX is available.
6863 (amd64_pseudo_register_name): Support pseudo YMM registers.
6864 (amd64_regset_from_core_section): Support .reg-xstate section.
6865 (amd64_init_abi): Set ymmh_register_names, num_ymm_regs
6866 and ymm0h_regnum. Call set_gdbarch_register_name.
6867 (amd64_init_abi): Call initialize_tdesc_amd64_avx.
6868
6869 * amd64-tdep.h (amd64_regnum): Add AMD64_YMM0H_REGNUM and
6870 AMD64_YMM15H_REGNUM.
6871 (AMD64_NUM_REGS): New.
6872 (amd64_supply_xsave): Likewise.
6873 (amd64_collect_xsave): Likewise.
6874 (amd64_register_name): Removed.
6875 (amd64_register_type): Likewise.
6876
31aeac78
L
68772010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6878
6879 * i387-tdep.c: Include "i386-xstate.h".
6880 (XSAVE_XSTATE_BV_ADDR): New.
6881 (xsave_avxh_offset): Likewise.
6882 (XSAVE_AVXH_ADDR): Likewise.
6883 (i387_supply_xsave): Likewise.
6884 (i387_collect_xsave): Likewise.
6885
6886 * i387-tdep.h (I387_NUM_YMM_REGS): New.
6887 (I387_YMM0H_REGNUM): Likewise.
6888 (I387_YMMENDH_REGNUM): Likewise.
6889 (i387_supply_xsave): Likewise.
6890 (i387_collect_xsave): Likewise.
6891
c131fcee
L
68922010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6893
6894 * i386-linux-nat.c: Include "regset.h", "elf/common.h",
6895 <sys/uio.h> and "i386-xstate.h".
6896 (PTRACE_GETREGSET): New.
6897 (PTRACE_SETREGSET): Likewise.
6898 (fetch_xstateregs): Likewise.
6899 (store_xstateregs): Likewise.
6900 (GETXSTATEREGS_SUPPLIES): Likewise.
6901 (regmap): Include 8 upper YMM registers.
6902 (i386_linux_fetch_inferior_registers): Support XSAVE extended
6903 state.
6904 (i386_linux_store_inferior_registers): Likewise.
6905 (i386_linux_read_description): Check and enable AVX target
6906 descriptions.
6907
6908 * i386-linux-tdep.c: Include "regset.h", "i387-tdep.h",
6909 "i386-xstate.h" and "features/i386/i386-avx-linux.c".
6910 (i386_linux_regset_sections): Add ".reg-xstate".
6911 (i386_linux_gregset_reg_offset): Include 8 upper YMM registers.
6912 (i386_linux_core_read_xcr0): New.
6913 (i386_linux_core_read_description): Check and enable AVX target
6914 description.
6915 (i386_linux_init_abi): Set xsave_xcr0_offset.
6916 (_initialize_i386_linux_tdep): Call
6917 initialize_tdesc_i386_avx_linux.
6918
6919 * i386-linux-tdep.h (I386_LINUX_ORIG_EAX_REGNUM): Replace
6920 I386_SSE_NUM_REGS with I386_AVX_NUM_REGS.
6921 (i386_linux_core_read_xcr0): New.
6922 (tdesc_i386_avx_linux): Likewise.
6923 (I386_LINUX_XSAVE_XCR0_OFFSET): Likewise.
6924
6925 * i386-tdep.c: Include "i386-xstate.h" and
6926 "features/i386/i386-avx.c".
6927 (i386_ymm_names): New.
6928 (i386_ymmh_names): Likewise.
6929 (i386_ymmh_regnum_p): Likewise.
6930 (i386_ymm_regnum_p): Likewise.
6931 (i386_xmm_regnum_p): Likewise.
6932 (i386_register_name): Likewise.
6933 (i386_ymm_type): Likewise.
6934 (i386_supply_xstateregset): Likewise.
6935 (i386_collect_xstateregset): Likewise.
6936 (i386_sse_regnum_p): Removed.
6937 (i386_pseudo_register_name): Support pseudo YMM registers.
6938 (i386_pseudo_register_type): Likewise.
6939 (i386_pseudo_register_read): Likewise.
6940 (i386_pseudo_register_write): Likewise.
6941 (i386_dbx_reg_to_regnum): Return %ymmN register number for
6942 %xmmN if AVX is available.
6943 (i386_regset_from_core_section): Support .reg-xstate section.
6944 (i386_register_reggroup_p): Supper upper YMM and YMM registers.
6945 (i386_process_record): Replace i386_sse_regnum_p with
6946 i386_xmm_regnum_p.
6947 (i386_validate_tdesc_p): Support org.gnu.gdb.i386.avx feature.
6948 Set ymmh_register_names, num_ymm_regs, ymm0h_regnum and xcr0.
8d95cc3b 6949 (i386_gdbarch_init): Set xstateregset. Set xsave_xcr0_offset.
c131fcee
L
6950 Call set_gdbarch_register_name. Replace I386_SSE_NUM_REGS with
6951 I386_AVX_NUM_REGS. Set ymmh_register_names, ymm0h_regnum and
6952 num_ymm_regs. Add num_ymm_regs to set_gdbarch_num_pseudo_regs.
6953 Set ymm0_regnum.
6954 (_initialize_i386_tdep): Call initialize_tdesc_i386_avx.
6955
6956 * i386-tdep.h (gdbarch_tdep): Add xstateregset, ymm0_regnum,
6957 xcr0, xsave_xcr0_offset, ymm0h_regnum, ymmh_register_names and
6958 i386_ymm_type.
6959 (i386_regnum): Add I386_YMM0H_REGNUM, and I386_YMM7H_REGNUM.
6960 (I386_AVX_NUM_REGS): New.
6961 (i386_xmm_regnum_p): Likewise.
6962 (i386_ymm_regnum_p): Likewise.
6963 (i386_ymmh_regnum_p): Likewise.
6964
6965 * common/i386-xstate.h: New.
6966
98adf0f3
L
69672010-04-07 H.J. Lu <hongjiu.lu@intel.com>
6968
6969 * config/djgpp/fnchange.lst: Add x86 AVX XML files.
6970
6971 * features/Makefile (WHICH): Add i386/i386-avx,
6972 i386/i386-avx-linux, i386/x86-64-avx and i386/x86-64-avx-linux.
6973 (i386/i386-avx-expedite): New.
6974 (i386/i386-avx-linux-expedite): Likewise.
6975 (i386/x86-64-avx-expedite):Likewise.
6976 (i386/x86-64-avx-linux-expedite): Likewise.
6977 ($(outdir)/i386/i386-avx.dat): New dependency.
6978 ($(outdir)/i386/i386-avx-linux.dat): Likewise.
6979 ($(outdir)/i386/x86-avx-64.dat): Likewise.
6980 ($(outdir)/i386/x86-64-avx-linux.dat): Likewise.
6981
6982 * features/i386/32bit-avx.xml: New.
6983 * features/i386/64bit-avx.xml: Likewise.
6984 * features/i386/i386-avx-linux.c: Likewise.
6985 * features/i386/i386-avx-linux.xml: Likewise.
6986 * features/i386/i386-avx.c: Likewise.
6987 * features/i386/i386-avx.xml: Likewise.
6988 * features/i386/x86-64-avx-linux.c: Likewise.
6989 * features/i386/x86-64-avx-linux.xml: Likewise.
6990 * features/i386/x86-64-avx.c: Likewise.
6991 * features/i386/x86-64-avx.xml: Likewise.
6992 * regformats/i386/i386-avx-linux.dat: Likewise.
6993 * regformats/i386/i386-avx.dat: Likewise.
6994 * regformats/i386/x86-64-avx-linux.dat: Likewise.
6995 * regformats/i386/x86-64-avx.dat: Likewise.
6996
05159abe
DE
69972010-04-07 Doug Evans <dje@google.com>
6998
6999 * top.c (source_file_name): Make const char *.
7000 * top.h (source_file_name): Update.
7001 * cli/cli-script.c (source_cleanup_lines_args): Make old_file
7002 const char *.
7003 (script_from_file): Change `file' arg to const char *.
7004 * cli/cli-script.h (script_from_file): Update.
7005
96e39866
DE
70062010-04-06 Doug Evans <dje@google.com>
7007
7008 * cli/cli-cmds.c (source_command): Run cleanups.
7009
3149d8c1
SS
70102010-04-06 Stan Shebs <stan@codesourcery.com>
7011
7012 * defs.h (char_ptr): Move typedef here from...
7013 * ada-lang.c (char_ptr): Remove.
7014 * charset.c (char_ptr): Remove.
7015 * tracepoint.h (struct uploaded_string): Remove.
7016 (struct uploaded_tp): Use vectors for string arrays.
7017 * tracepoint.c (trace_save): Use vectors of actions.
7018 (parse_tracepoint_definition): Ditto.
7019 (get_uploaded_tp): Clear vectors.
7020 * breakpoint.c (create_tracepoint_from_upload): Use vectors.
7021 (next_cmd): Change to an int.
7022 (read_next_cmd): Use vector of command strings.
7023
4cc23ede
DE
70242010-04-06 Doug Evans <dje@google.com>
7025
7026 * top.h (source_script, cd_command): Delete.
7027 * main.c: #include "cli/cli-cmds.h"
7028
bd333fb7
KB
70292010-04-06 Kevin Buettner <kevinb@redhat.com>
7030
7031 * m32c-tdep.c (make_types): When calling `arch_type', pass size of
7032 type in bytes, not bits.
7033
ec8a089a
PM
70342010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7035
7036 * stabsread.c (define_symbol): Add support for char
7037 and string constants.
7038
2244ba2e
PM
70392010-04-06 Pierre Muller <muller@ics.u-strasbg.fr>
7040
7041 Remove remaining "%ll" uses.
7042 * go32-nat.c (go32_pte_for_address): Replace "0x%llx" using
7043 hex_string call.
7044 * rs6000-nat.c (rs6000_ptrace64): Idem.
7045 * solib-pa64.c (pa64_current_sos): Idem.
7046 * solib-spu.c (spu_current_sos): Idem.
7047 * linux-nat.c (linux_nat_find_memory_regions): Replace "%lld" using
7048 plongest call.
7049 * nto-procfs.c (procfs_meminfo): Replace "0x%016llx" using
7050 phex (VAR, 8) call.
7051 * sh64-tdep.c (sh64_show_media_regs): Idem.
7052
fce3c1f0
SS
70532010-04-05 Stan Shebs <stan@codesourcery.com>
7054
7055 * tracepoint.c: Include gdbcore.h.
7056 (tfile_xfer_partial): Return partial results, also try reading
7057 from executable.
7058 (tfile_has_all_memory): New function.
7059 (init_tfile_ops): Use it.
7060
626ea16d
SDJ
70612010-04-05 Sergio Durigan Junior <sergiodj@redhat.com>
7062
7063 PR gdb/10736:
7064 * xml-syscall.c (my_gdb_datadir): New variable to keep track of
7065 the changes in data-directory.
7066 (init_sysinfo): Reload the syscall XML file if the data-directory
7067 has changed.
7068
1f7ccab2
JK
70692010-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7070
7071 Code cleanup.
7072 * breakpoint.c (bpstat_stop_status): Use bpstat_causes_stop.
7073
d77f58be
SS
70742010-04-04 Stan Shebs <stan@codesourcery.com>
7075 Nathan Sidwell <nathan@codesourcery.com>
7076
7077 * breakpoint.c (breakpoint_1): Add filter argument, return number of
7078 breakpoints printed.
7079 (is_hardware_watchpoint): Make argument const.
7080 (is_watchpoint): Ditto.
7081 (is_tracepoint): Merge of tracepoint_type and breakpoint_is_tracepoint,
7082 use it everywhere.
7083 (breakpoints_info): Pass NULL to breakpoint_1.
7084 (maintenance_info_breakpoints): Ditto.
7085 (watchpoints_info): New function.
7086 (tracepoints_info): Use breakpoint_1 filter.
7087 (set_ignore_count): Warn that tracepoint ignore count will be ignored.
7088 (_initialize_breakpoint): Make "info watchpoints" its own command.
7089 * breakpoint.h (is_tracepoint): Rename from breakpoint_is_tracepoint.
7090 * mi/mi-cmd-break.c (mi_cmd_break_commands): Use is_tracepoint.
7091
af54718e
SS
70922010-04-04 Stan Shebs <stan@codesourcery.com>
7093
7094 * tracepoint.c (tfile_fetch_registers): Add fallback case.
7095
74d1f91e
JK
70962010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7097
7098 * infcmd.c (run_command_1): Call proceed with regcache_read_pc address.
7099 * config/djgpp/fnchange.lst: Add translation for break-entry.exp.
7100
91d91ceb
JK
71012010-04-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7102
7103 * breakpoint.c (bpstat_find_step_resume_breakpoint): Remove.
7104 * breakpoint.h (bpstat_find_step_resume_breakpoint): Remove.
7105
60531b24
JK
71062010-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7107
7108 * dwarf2read.c (read_namespace_type): Use common "return set_die_type"
7109 code form.
7110
a3c4230a
HZ
71112010-04-02 Hui Zhu <teawater@gmail.com>
7112
7113 * i386-tdep.c (OT_DQUAD): New enum.
7114 (i386_process_record): Add code for MMX, 3DNow!, SSE, SSE2,
7115 SSE3, SSSE3 and SSE4.
7116
b15758fe
HZ
71172010-04-02 Hui Zhu <teawater@gmail.com>
7118
7119 * i386-tdep.c (i386_record_lea_modrm_addr): Remove useless
7120 "*addr = 0".
7121
afd02f27
PA
71222010-04-02 Pedro Alves <pedro@codesourcery.com>
7123
7124 * tracepoint.c (trace_dump_actions): New, factored out from
7125 trace_dump_command, and adjusted to recurse into while-stepping's
7126 action list.
7127 (trace_dump_command): Use it.
7128
5cea2a26
PA
71292010-04-02 Pedro Alves <pedro@codesourcery.com>
7130
7131 * breakpoint.h (struct counted_command_line): Moved definition to
7132 breakpoint.c, and forward declare.
7133 (breakpoint_commands): Declare.
7134 * breakpoint.c (struct counted_command_line): Moved here.
7135 (breakpoint_commands): New.
7136 * tracepoint.c (encode_actions): Use breakpoint_commands.
7137 * remote.c (remote_download_tracepoint): Ditto.
7138
7c47795c
L
71392010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7140
7141 * remote.c (remote_parse_stop_reply): Use hex_string instead
7142 of phex_nz for error.
7143
fff87407
SS
71442010-04-01 Stan Shebs <stan@codesourcery.com>
7145 Nathan Sidwell <nathan@codesourcery.com>
7146
7147 * tracepoint.h (enum actionline_type): Remove.
7148 (validate_actionline): Change return to void.
7149 * tracepoint.c (report_agent_reqs_errors): New function.
7150 (validate_actionline): Call it, change return to void, report errors
7151 more consistently.
7152 (collect_symbol): Call report_agent_reqs_errors.
7153 (encode_actions_1): Ditto.
7154 (encode_actions): Don't expect a result from validate_actionline.
7155
615bcdef
SS
71562010-04-01 Stan Shebs <stan@codesourcery.com>
7157
7158 * tracepoint.c (trace_start_command): Confirm if trace is running.
7159 (trace_stop_command): Error if trace not running.
7160
fe01d668
L
71612010-04-01 H.J. Lu <hongjiu.lu@intel.com>
7162
7163 * amd64-tdep.c (amd64_byte_names): Add "ah", "bh", "ch", "dh".
7164 (AMD64_NUM_LOWER_BYTE_REGS): New.
7165 (amd64_pseudo_register_read): Handle "ah", "bh", "ch", "dh".
7166 (amd64_pseudo_register_write): Likewise.
7167 (amd64_init_abi): Set num_byte_regs to 20.
7168
86b17b60
PA
71692010-04-01 Pedro Alves <pedro@codesourcery.com>
7170
7171 * breakpoint.c (multi_start, multi_end, last_was_multi): Delete.
7172 (prev_breakpoint_count): New.
7173 (set_breakpoint_count): Adjust.
7174 (rbreak_start_breakpoint_count): New.
7175 (start_rbreak_breakpoints): Adjust.
7176 (end_rbreak_breakpoints): Adjust.
7177 (struct commands_info) <arg>: New field.
7178 (do_map_commands_command): Tweak output to include breakpoint spec
7179 range.
7180 (commands_command_1): Adjust. Avoid setting an xfree cleanup if
7181 ARG was empty on entry. Set INFO's arg.
7182 (create_breakpoint): Adjust.
7183
7184 * NEWS: Clarify `commands' changes.
7185
2c58c0a9
PA
71862010-04-01 Pedro Alves <pedro@codesourcery.com>
7187
7188 * tracepoint.c: Include stack.h.
7189 (struct add_local_symbols_data): New.
7190 (do_collect_symbol): New.
7191 (add_local_symbols): Rewrite using iterate_over_block_arg_vars and
7192 iterate_over_block_local_vars.
7193 * stack.c (print_block_frame_locals): Rewrite as ...
7194 (iterate_over_block_locals): ... this. Take a callback function
7195 pointer and generic data pointer, and call that instead of
7196 print_variable_and_value.
7197 (struct print_variable_and_value_data): New.
7198 (do_print_variable_and_value): New.
7199 (iterate_over_block_local_vars): New, abstracted out from
7200 print_frame_local_vars.
7201 (print_frame_local_vars): Rewrite using
7202 iterate_over_block_local_vars.
7203 (iterate_over_block_arg_vars): New, abstracted out from
7204 print_frame_arg_vars.
7205 (print_frame_arg_vars): Rewrite using iterate_over_block_arg_vars.
7206 * stack.h (iterate_over_block_arg_local_vars_cb): New typedef.
7207 (iterate_over_block_arg_vars, iterate_over_block_local_vars): Declare.
7208
d476da0e
RE
72092010-03-31 Richard Earnshaw <rearnsha@arm.com>
7210
7211 * arm-tdep.c (thumb_get_next_pc_raw): Correctly detect TBH
8d95cc3b 7212 instructions. Use the PC+4 if the base of the TBB or TBH is the
d476da0e
RE
7213 PC register.
7214
8072405b
JK
72152010-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
7216
7217 Fix crash on reading wrong function declaration DWARF.
7218 * dwarf2read.c (read_subroutine_type): New variable void_type.
7219 Pre-fill all TYPE_FIELD_TYPEs. Move nparams and iparams initialization
7220 more close to their use.
7221
8bf6485c
SS
72222010-03-31 Stan Shebs <stan@codesourcery.com>
7223
7224 * breakpoint.c (tracepoint_save_command): Include variables,
8d95cc3b 7225 conditionals, tracepoint types, and default-collect.
8bf6485c
SS
7226 * tracepoint.c (save_trace_state_variables): New function.
7227 * tracepoint.h (save_trace_state_variables): Declare it.
7228
2ae2a0b7
PM
72292010-03-31 Pierre Muller <muller@ics.u-strasbg.fr>
7230
1a161f72 7231 * remote.c (end_thread): ARI fix: Use xstrdup instead of strdup.
2ae2a0b7 7232
86ffb506
KS
72332010-03-30 Keith Seitz <keiths@redhat.com>
7234
7235 * c-typeprint.c (c_type_print_args): Don't print "void"
7236 for java, regardless of whether it is TYPE_PROTOTYPED.
7237 Use the passed-in language instead of current_language.
7238 (c_type_print_varspec_suffix): Use current_language instead
7239 of assuming language_c.
7240 * jv-typeprint.c (java_type_print_base): (bz 9320) Strip off
7241 any return type specifier from the physname.
7242
956c2c8b
PA
72432010-03-30 Pedro Alves <pedro@codesourcery.com>
7244
7245 * tui/tui-interp.c (tui_is_toplevel): New.
7246 (tui_init): Set it.
7247 (tui_allowed_p): New.
7248 * tui/tui.c (tui_enable): Check if the TUI is allowed before
7249 enabling it.
7250 * tui/tui.h (tui_allowed_p): Declare.
7251
98e5a990
TT
72522010-03-30 Ozkan Sezer <sezeroz@gmail.com>
7253
7254 * serial.h: Include winsock2.h before windows.h.
7255
c8d5aac9
L
72562010-03-30 H.J. Lu <hongjiu.lu@intel.com>
7257
7258 * NEWS: Mention xmlRegisters= in qSupported packet.
7259
7260 * i386-tdep.c: Include "remote.h".
7261 (_initialize_i386_tdep): Call register_remote_support_xml.
7262
7263 * remote.c (remote_support_xml): New.
7264 (register_remote_support_xml): Likewise.
7265 (remote_query_supported_append): Likewise.
7266 (remote_query_supported): Support remote_support_xml.
7267
7268 * remote.h (register_remote_support_xml): New.
7269
76a2b958
SS
72702010-03-29 Stan Shebs <stan@codesourcery.com>
7271
42e08e69
SS
7272 * tracepoint.c (trace_find_line_command): Remove dead code.
7273
409873ef
SS
7274 * tracepoint.h (struct uploaded_string): New struct.
7275 (struct uploaded_tp): New fields for source strings.
7276 * breakpoint.c (this_utp, next_cmd): New globals.
7277 (read_uploaded_action): New function.
7278 (create_tracepoint_from_upload): Fill in more parts
7279 of a tracepoint.
7280 * tracepoint.c (encode_source_string): New function.
7281 (trace_save): Write out source strings, fix error checks.
7282 (parse_tracepoint_definition): Add source string parsing.
7283 * remote.c (PACKET_TracepointSource): New packet type.
7284 (remote_download_command_source): New function.
7285 (remote_download_tracepoint): Download source pieces also.
7286 (_initialize_remote): Add packet config command.
7287
a0405854
SS
7288 * tracepoint.c (collect_symbol): Send LOC_UNRESOLVED symbols to
7289 expression handler.
7290
76a2b958
SS
7291 * tracepoint.c (start_tracing): Check tracepoints before sending
7292 commands to target, don't start if all tracepoints disabled.
7293
d350db38
PA
72942010-03-28 Pedro Alves <pedro@codesourcery.com>
7295
12f2d601 7296 * cli/cli-script.c (process_next_line): Handle 'stepping'.
d350db38 7297
8b9b7ef8
SS
72982010-03-26 Stan Shebs <stan@codesourcery.com>
7299
7300 * tracepoint.c (disconnect_or_stop_tracing): Get out of tfind mode.
7301
9766ced4
SS
73022010-03-26 Tom Tromey <tromey@redhat.com>
7303
7304 * breakpoint.c (commands_command_1): Duplicate 'arg'.
7305
059acae7
UW
73062010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7307
7308 * breakpoint.c (expand_line_sal_maybe): Always call skip_prologue_sal.
7309 (skip_prologue_sal): Remove local definition.
7310 (resolve_sal_pc): Remove now unnecessary code.
7311 * linespec.c (minsym_found): Call skip_prologue_sal.
7312 * symtab.c (find_function_start_pc): Remove.
7313 (find_function_start_sal): Extract prologue skipping into ...
7314 (skip_prologue_sal): ... this new function. Handle code both
7315 with and without debug info. Respect SAL's explicit_pc and
7316 explicit_line flags. Inline old find_function_start_pc.
7317 * symtab.h (find_function_start_pc): Remove.
7318 (skip_prologue_sal): Add prototype.
7319
4a811a97
UW
73202010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7321
7322 * dwarf2read.c (read_func_scope): Also scan specification DIEs
7323 for DW_TAG_imported_module children.
7324
907af001
UW
73252010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7326
7327 * dwarf2read.c (dwarf2_name): Work around GCC bugzilla debug/41828 by
7328 ignoring spurious DW_AT_name attributes for unnamed structs or unions.
7329 * completer.c (add_struct_fields): Fix inverted logic.
7330
dde2d684
UW
73312010-03-26 Ulrich Weigand <uweigand@de.ibm.com>
7332
7333 * breakpoint.c (bpstat_clear_actions): Reset bs->commands_left.
7334
a609a0c8
PA
73352010-03-26 Pedro Alves <pedro@codesourcery.com>
7336
7337 * tracepoint.c (current_trace_status): Don't make sure error_desc
7338 is non-NULL here.
7339 (parse_trace_status): Release a previous error_desc string, and
7340 set it to NULL by default. If stop reason is tracepoint_error,
7341 make sure error_desc is not left NULL.
7342
610197fd
PA
73432010-03-26 Pedro Alves <pedro@codesourcery.com>
7344
7345 * tracepoint.c (trace_save): Remove X from tracepoint error
7346 description.
7347
99b5e152
PA
73482010-03-26 Pedro Alves <pedro@codesourcery.com>
7349
7350 * tracepoint.c (parse_trace_status): Don't allow plain strings in
7351 the terror description. Don't expect an X prefix.
7352
6c28cbf2
SS
73532010-03-25 Stan Shebs <stan@codesourcery.com>
7354
7355 * tracepoint.h (trace_stop_reason): Add tracepoint_error.
7356 (struct trace_status): New field error_desc.
7357 * tracepoint.c (stop_reason_names): Add terror.
7358 (current_trace_status): Ensure non-NULL error description.
7359 (trace_status_command): Add error report.
7360 (trace_status_mi): Ditto.
7361 (trace_save): Add special case for error description.
7362 (parse_trace_status): Add case for errors.
7363
418835cc
KS
73642010-03-25 Keith Seitz <keiths@redhat.com>
7365
7366 * dwarf2read.c (read_subroutine_type): If the compilation unit
7367 language is Java, mark any formal parameter named "this" as
7368 artificial (GCC/43521).
7369 (dwarf2_name): Add special handling for Java constructors.
7370
aa7d318d
TT
73712010-03-25 Tom Tromey <tromey@redhat.com>
7372
7373 PR gdb/11327, PR gdb/11328, PR breakpoints/11368:
7374 * infrun.c (handle_inferior_event): Change initialization of
7375 stop_stack_dummy.
7376 (handle_inferior_event): Change assignment to stop_stack_dummy.
7377 (normal_stop): Update use of stop_stack_dummy.
7378 (struct inferior_status) <stop_stack_dummy>: Change type.
7379 * inferior.h (stop_stack_dummy): Update.
7380 * infcmd.c (stop_stack_dummy): Change type.
7381 * infcall.c (cleanup_delete_std_terminate_breakpoint): New
7382 function.
7383 (call_function_by_hand): Call set_std_terminate_breakpoint.
7384 Rewrite std::terminate handling.
7385 * breakpoint.h (enum bptype) <bp_std_terminate,
7386 bp_std_terminate_master>: New.
7387 (enum stop_stack_kind): New.
7388 (struct bpstat_what) <call_dummy>: Change type.
7389 (set_std_terminate_breakpoint, delete_std_terminate_breakpoint):
7390 Declare.
7391 * breakpoint.c (create_std_terminate_master_breakpoint): New
7392 function.
7393 (update_breakpoints_after_exec): Handle bp_std_terminate_master.
7394 Call create_std_terminate_master_breakpoint.
7395 (print_it_typical): Handle new breakpoint kinds.
7396 (bpstat_stop_status): Handle bp_std_terminate_master.
7397 (bpstat_what): Correctly set call_dummy field. Handle
7398 bp_std_terminate_master and bp_std_terminate.
7399 (print_one_breakpoint_location): Update.
7400 (allocate_bp_location): Update.
7401 (set_std_terminate_breakpoint): New function.
7402 (delete_std_terminate_breakpoint): Likewise.
7403 (create_thread_event_breakpoint): Update.
7404 (delete_command): Update.
7405 (breakpoint_re_set_one): Update.
7406 (breakpoint_re_set): Call create_std_terminate_master_breakpoint.
7407
82ccf5a5
JK
74082010-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7409
7410 * symfile.c (build_section_addr_info_from_bfd): New.
7411 (build_section_addr_info_from_objfile): Base it on
7412 build_section_addr_info_from_bfd.
7413 (addrs_section_compar, addrs_section_sort): New.
7414 (addr_info_make_relative): New variables my_cleanup, abfd_addrs,
7415 addrs_sorted, abfd_addrs_sorted and addrs_to_abfd_addrs. Build
7416 addrs_to_abfd_addrs. Use it for recalculating ADDRS.
7417
737c4c52
MS
74182010-03-24 Michael Snyder <msnyder@localhost.localdomain>
7419
8d95cc3b 7420 * elfread.c (find_separate_debug_file_by_buildid):
737c4c52
MS
7421 Remove unused local variable.
7422
95a42b64
TT
74232010-03-24 Tom Tromey <tromey@redhat.com>
7424
7425 PR breakpoints/9352:
7426 * NEWS: Mention changes to `commands' and `rbreak'.
7427 * symtab.c (do_end_rbreak_breakpoints): New function.
7428 (rbreak_command): Call start_rbreak_breakpoints; arrange to call
7429 end_rbreak_breakpoints.
7430 * breakpoint.c (breakpoint_count, tracepoint_count): Now static.
7431 (set_breakpoint_count): Likewise. Clear last_was_multi.
7432 (multi_start, multi_end, last_was_multi): New globals.
7433 (start_rbreak_breakpoints, end_rbreak_breakpoints): New
7434 functions.
7435 (struct commands_info): New
7436 (do_map_commands_command): New function.
7437 (commands_command_1): New function.
7438 (commands_command): Use it.
7439 (commands_from_control_command): Likewise.
7440 (do_delete_breakpoint): New function.
7441 (delete_command): Use it.
7442 (map_breakpoint_numbers): Add 'data' argument. Pass to callback.
7443 (do_map_disable_breakpoint): New function.
7444 (disable_command): Use it.
7445 (do_map_enable_breakpoint): New function.
7446 (enable_command): Use it.
7447 (enable_once_breakpoint): Add argument.
7448 (enable_once_command): Update.
7449 (enable_delete_breakpoint): Add argument.
7450 (enable_delete_command): Update.
7451 (break_command_really): Set last_was_multi when needed.
7452 (check_tracepoint_command): Fix formatting.
7453 (validate_commands_for_breakpoint): New function.
7454 (breakpoint_set_commands): Use it.
7455 (tracepoint_save_command): Update.
7456 * breakpoint.h (start_rbreak_breakpoints, end_rbreak_breakpoints):
7457 Declare.
7458
9add0f1b
TT
74592010-03-24 Tom Tromey <tromey@redhat.com>
7460
7461 * breakpoint.h (struct counted_command_line): New struct.
7462 (struct breakpoint) <commands>: Change type.
7463 (struct bpstats) <commands>: Change type.
7464 <commands_left>: New field.
7465 * breakpoint.c (alloc_counted_command_line): New function.
7466 (incref_counted_command_line): Likewise.
7467 (decref_counted_command_line): Likewise.
7468 (do_cleanup_counted_command_line): Likewise.
7469 (make_cleanup_decref_counted_command_line): Likewise.
7470 (breakpoint_set_commands): Use decref_counted_command_line and
7471 alloc_counted_command_line.
7472 (commands_command): Don't error if breakpoint commands are
7473 executing.
7474 (commands_from_control_command): Likewise.
7475 (bpstat_free): Update.
7476 (bpstat_copy): Likewise.
7477 (bpstat_clear_actions): Likewise.
7478 (bpstat_do_actions_1): Likewise.
7479 (bpstat_stop_status): Likewise.
7480 (print_one_breakpoint_location): Likewise.
7481 (delete_breakpoint): Likewise.
7482 (bpstat_alloc): Initialize new field.
7483 (tracepoint_save_command): Update.
7484 * tracepoint.c (encode_actions): Update.
7485 (trace_dump_command): Update.
7486
a6c727b2
DJ
74872010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7488
7489 * dwarf2-frame.c (dwarf2_frame_find_quirks): Use producer_is_realview.
7490 * dwarf2read.c (load_full_comp_unit): Read DW_AT_producer.
7491 (read_structure_type): For RealView, set TYPE_STUB on structures with
7492 no byte size and no children.
7493 (read_subroutine_type): Mark functions as prototyped by default.
7494 * symtab.c (producer_is_realview): New function.
7495 * symtab.h (expand_line_sal): Fix declaration formatting.
7496 (producer_is_realview): Declare.
7497
0d39a070
DJ
74982010-03-24 Daniel Jacobowitz <dan@codesourcery.com>
7499
7500 * arm-tdep.c (skip_prologue_function): New function.
7501 (submask, bit, bits, sbits, BranchDest): Move higher in the file.
7502 (thumb_analyze_prologue): Document return value. Recognize more
7503 Thumb instructions, skippable calls, and some Thumb-2 instructions.
7504 Add debug output.
7505 (arm_skip_prologue): Remove call dummy check. Check the prologue
7506 for non-GNU compilers.
7507 (arm_instruction_changes_pc): New function.
7508 (arm_analyze_prologue): New function, broken out from
7509 arm_scan_prologue. Recognize more ARM instructions and skippable
7510 calls. Update comments. Handle NULL cache. Return the address
7511 of the first unrecognized instruction. Do not skip past other
7512 instructions which change control flow. Add debug output.
7513 (arm_scan_prologue): Use arm_analyze_prologue.
7514 (ARM_PC_32): Delete.
7515 (shifted_reg_val): Simplify ARM_PC_32 check.
7516
4baf5cf4
VP
75172010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7518
7519 * tracepoint.c (tvariables_info_1): Actually compute
7520 the number of rows in the result.
7521
4a5e7a5b
PA
75222010-03-24 Pedro Alves <pedro@codesourcery.com>
7523
7524 * remote.c (crc32): Constify `buf' parameter.
7525 (remote_verify_memory): New, abstracted out from...
7526 (compare_sections_command): ... this. Remove hardcoded target
7527 checks.
7528 (init_remote_ops): Install remote_verify_memory.
7529 * target.c (target_verify_memory): New.
7530 * target.h (struct target_ops) <to_verify_memory>: New field.
7531 (target_verify_memory): Declare.
7532
011aacb0
VP
75332010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7534
7535 Implement -trace-save.
7536
7537 * mi-cmds.h (mi_cmds_trace_save): Declare.
7538 * mi-cmds.c (mi_cmds): Register -trace-save.
7539 * mi/mi-main.c (mi_cmd_trace_save): New.
7540 * remote.c (remote_save_trace_data): Take const parameter.
7541 * target.h (struct target_ops::to_save_trace_data): Take
7542 const parameter.
7543 * target.c (update_current_target): Adjust to the above.
7544 * tracepoint.c (trave_save): New, extracted from
7545 (trace_save_command): ...this.
7546 (tfile_trace_find): Remove message that is unnecessary now
7547 that 'tfind' reports found frame.
7548 * tracepoint.h (trace_save): Declare.
7549
f197e0f1
VP
75502010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7551
7552 Implement -trace-find.
7553
7554 * mi/mi-cmds.c (mi_cmds): Register -trace-find.
7555 * mi/mi-cmds.h (mi_cmd_trace_find): Declare.
7556 * mi/mi-main.c (mi_cmd_trace_find): New.
7557 * target.h (struct target_ops): Document to_trace_find.
7558 * tracepoint.h (tfind_1): Declare.
7559 * tracepoint.c (finish_tfind_command): Rename to...
7560 (tfind_1): ...this.
7561 * remote.c (remote_trace_find): Return -1 if target say
7562 there's no frame. Improve error diagnostics.
7563
40e1c229
VP
75642010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7565
7566 -trace-define-variable and -trace-list-variables.
7567
7568 * tracepoint.c (create_trace_state_variable): Make
7569 private copy of name, as opposed to assuming the
7570 pointer lives forever.
7571 (tvariables_info_1): New.
7572 (tvariables_info): Use the above.
7573 * tracepoint.h (create_trace_state_variable, tvariables_info_1):
7574 Declare.
7575 * mi/mi-cmds.c (mi_cmds): Register -trace-define-variable
7576 and -trace-list-variables.
7577 * mi/mi-cmds.h (mi_cmd_trace_define_variable)
7578 (mi_cmd_trace_list_variables): New.
7579 * mi/mi-main.c (mi_cmd_trace_define_variable)
7580 (mi_cmd_trace_list_variables): New.
7581
9b4c786c
VP
75822010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7583
7584 Implement -break-passcount.
7585
7586 * mi/mi-cmd-break.c (mi_cmd_break_passcount): New.
7587 * mi/mi-cmds.c (mi_cmds): Register -break-passcount.
7588 * mi/mi-cmds.h (mi_cmd_break_passcount): Declare.
7589
f224b49d
VP
75902010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7591
7592 -trace-start/-trace-end/-trace-status.
7593
7594 * mi/mi-cmds.c (mi_cmds): Register -trace-start, -trace-status
7595 and -trace-stop.
7596 * mi/mi-cmds.h (mi_cmd_trace_start, mi_cmd_trace_status)
7597 (mi_cmd_trace_stop): Declare.
7598 * mi/mi-main.c (mi_cmd_trace_start, mi_cmd_trace_status)
7599 (mi_cmd_trace_stop): New.
7600 * tracepoint.c (start_tracing): New, extracted from...
7601 (trace_start_command): ...this.
7602 (trace_status_mi): New.
7603 * tracepoint.h (struct trace_status): Document
7604 stopping_tracepoint.
7605 (start_tracing, stop_tracing, trace_status_mi): Declare.
7606
6534d786
VP
76072010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7608
7609 Implement creating tracepoints with -break-insert.
7610
7611 * mi/mi-cmd-break.c (mi_cmd_break_insert): Handle -a
7612 to mean that tracepoint should be created.
7613
51661e93
VP
76142010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7615
7616 * breakpoint.c (check_no_tracepoint_commands): Use
7617 current spelling of 'teval'.
7618
a7bdde9e
VP
76192010-03-24 Vladimir Prus <vladimir@codesourcery.com>
7620
7621 Unify actions and commands
7622
7623 * defs.h (read_command_lines, read_command_lines_1): New
7624 parameters validator and closure.
7625 * tracepoint.h (struct action_line): Remove.
7626 * breakpoint.h (struct breakpoint): Remove the 'actions'
7627 field.
7628 * defs.h (enum command_control_type): New value
7629 while_stepping_control.
7630 (struct command_line): Add comments.
7631 * breakpoint.c (breakoint_is_tracepoint): New.
7632 (breakpoint_set_commands): For tracepoints,
7633 verify the commands are permissible.
7634 (check_tracepoint_commands): New.
7635 (commands_command): Require that each new line is validated using
7636 check_tracepoint_command, if we set commands for a tracepoint.
7637 (create_tracepoint_from_upload): Likewise.
7638 (print_one_breakpoint_location): Remove the code to print
7639 actions specifically.
7640 (tracepoint_save_command): Relay to print_command_lines.
7641 * cli/cli-script.c (process_next_line): New parameters validator
7642 and closure. Handle 'while-stepping'. Call validator if not null.
7643 (read_command_lines, read_command_lines1): Likewise.
7644 (recurse_read_control_structure): New parameters validator and
7645 closure. Handle while_stepping_control.
7646 (print_command_lines): Handle while-stepping.
7647 (get_command_line, define_command, document_command): Adjust.
7648 * remote.c (remote_download_tracepoint): Adjust.
7649 * tracepoint.c (make_cleanup_free_actions, read_actions)
7650 (free_actions, do_free_actions_cleanup): Remove.
7651 (trace_actions_command): Use read_command_lines.
7652 (validate_actionline): Use error in one place.
7653 (encode_actions_1): New, extracted from...
7654 (encode_actions): ...this. Also use cleanups for exception
7655 safety.
7656 (trace_dump_command): Adjust.
7657 * mi/mi-cmd-break (mi_cmd_break_commands): Validate commands if
7658 it's tracepoint.
7659
64e3cf3d
MF
76602010-03-23 Mike Frysinger <vapier@gentoo.org>
7661
7662 * Makefile.in (OPCODES_CFLAGS): Add -I$(OPCODES_SRC)/..
7663
52e9fde8
SS
76642010-03-22 Stan Shebs <stan@codesourcery.com>
7665
7666 * value.c (value_static_field): Be lazy about the field's value.
7667
508ccb1f
TT
76682010-03-22 Reid Kleckner <reid@kleckner.net>
7669
7670 PR gdb/11094
7671 * breakpoint.c (disable_breakpoints_in_unloaded_shlib): Add
7672 bp_jit_event.
7673 (disable_breakpoints_in_shlibs): Likewise.
7674
acebe513
UW
76752010-03-22 Ulrich Weigand <uweigand@de.ibm.com>
7676
7677 * dwarf2read.c (partial_die_parent_scope): Work around buggy
7678 GCC 4.1 debug info generation (GCC PR c++/28460).
7679 (determine_prefix): Likewise.
7680
957b8b5a
DJ
76812010-03-20 Daniel Jacobowitz <dan@codesourcery.com>
7682
7683 * tui/tui-disasm.c (tui_get_begin_asm_address): Default to
7684 get_current_arch.
7685 * tui/tui-layout.c (extract_display_start_addr): Likewise.
7686
3b11a015
SS
76872010-03-19 Stan Shebs <stan@codesourcery.com>
7688
7689 * ax-gdb.c (gen_fetch): Handle bool.
7690 (gen_usual_unary): Ditto.
7691 (gen_cast): Ditto.
7692 (gen_equal): New function.
7693 (gen_less): New function.
7694 (gen_expr_binop_rest): Call them, also return integer type from
7695 logical operations.
7696 (gen_expr): Ditto.
7697
20781792
TT
76982010-03-19 Tom Tromey <tromey@redhat.com>
7699
7700 * jv-lang.c (jv_dynamics_objfile_data_key)
7701 (jv_type_objfile_data_key): New globals.
7702 (class_symtab): Move earlier.
7703 (jv_per_objfile_free): New function.
7704 (get_dynamics_objfile): Call set_objfile_data. Add 'gdbarch'
7705 parameter.
7706 Remove ancient #if 1.
7707 (add_class_symbol): Remove redundant declaration.
7708 (java_lookup_class): Use alloc_type, not alloc_type_arch.
7709 (java_link_class_type): Mark as static. Update.
7710 (jv_clear_object_type): New function.
7711 (set_java_object_type): Likewise.
7712 (get_java_object_type): Use set_java_object_type.
7713 (is_object_type): Likewise.
7714 (_initialize_java_language): Register new objfile keys.
7715 (get_java_class_symtab): Add 'gdbarch' parameter.
7716 (add_class_symtab_symbol): Update.
7717 (type_from_class): Update.
7718
cf3e25ca
SS
77192010-03-19 Stan Shebs <stan@codesourcery.com>
7720
8d95cc3b 7721 * ax-general.c (ax_const_l): Fix a sizing bug.
cf3e25ca 7722
f1ae44c9 77232010-03-18 Joel Brobecker <brobecker@adacore.com>
7724
7725 GDB 7.1 released.
7726
4daf5ac0
SS
77272010-03-18 Stan Shebs <stan@codesourcery.com>
7728 Pedro Alves <pedro@codesourcery.com>
7729
7730 * target.h (struct target_ops): New method
7731 to_set_circular_trace_buffer.
7732 (target_set_circular_trace_buffer): New macro.
7733 * target.c (update_current_target): Add
7734 to_set_circular_trace_buffer, fix to_set_disconnected_tracing
7735 default behavior.
7736 * remote.c (remote_set_circular_trace_buffer): New function.
7737 (init_remote_ops): Add it to vector.
7738 * tracepoint.h (struct trace_status): New field traceframes_created,
7739 change buffer_size and buffer_free to int.
7740 * tracepoint.c (circular_trace_buffer): New global.
7741 (start_tracing): Send values of disconnected tracing and circular
7742 trace buffer settings.
7743 (set_circular_trace_buffer): New function.
7744 (parse_trace_state): Handle total space and frames created.
7745 (trace_status_command): Display total space and total frames
7746 created.
7747 (trace_save): Write out new status values.
7748 (parse_trace_status): Set traceframe_count, traceframes_created,
7749 buffer_free and buffer_size to -1 by default.
7750 (_initialize_tracepoint): New setshow for circular-trace-buffer.
7751 * NEWS: Mention the circular trace buffer option.
7752
40c549d6
TT
77532010-03-18 Tom Tromey <tromey@redhat.com>
7754
7755 * infcmd.c (finish_command_continuation): Wrap print_return_value
7756 in TRY_CATCH.
7757
e8d05480
JB
77582010-03-18 Joel Brobecker <brobecker@adacore.com>
7759
7760 * dwarf2read.c (add_partial_subprogram): Make sure the subprogram
7761 DIE has a name before creating the associated partial symbol.
7762 (read_func_scope): Emit a complaint if the subprogram does not
7763 have a name or when we can't extract the subprogram PC bounds.
7764
441b986a
UW
77652010-03-18 Ulrich Weigand <uweigand@de.ibm.com>
7766
7767 * mi/mi-main.c (mi_cmd_list_thread_groups): Use get_current_arch
7768 instead of selected frame architecture.
7769
4247603b
PA
77702010-03-18 Pedro Alves <pedro@codesourcery.com>
7771
7772 * infcmd.c (until_command): Use ERROR_NO_INFERIOR. Ensure there's
7773 a valid selected thread, and that it is not running.
7774 (advance_command): Ditto.
7775 (finish_command): Ditto.
7776
400c6af0
SS
77772010-03-17 Stan Shebs <stan@codesourcery.com>
7778
3a96536b
SS
7779 * ax-gdb.c (require_rvalue): Disallow non-scalars.
7780
573cda03
SS
7781 * infcall.c: Include tracepoint.h.
7782 (call_function_by_hand): Disallow calls in tfind mode.
7783 * infcmd.c: Include tracepoint.h.
7784 (ensure_not_tfind_mode): New function.
7785 (continue_1): Call it.
7786 (step_1) Ditto.
7787 (jump_command): Ditto.
7788 (signal_command): Ditto.
7789 (advance_command): Ditto.
7790 (until_command): Ditto.
7791 (finish_command): Ditto.
7792 * tracepoint.h (disconnect_or_stop_tracing): Declare.
7793
400c6af0
SS
7794 * ax-gdb.h (struct axs_value): New field optimized_out.
7795 (gen_trace_for_var): Add gdbarch argument.
7796 * ax-gdb.c (gen_trace_static_fields): New function.
7797 (gen_traced_pop): Call it, add gdbarch argument.
7798 (gen_trace_for_expr): Update call to it.
7799 (gen_trace_for_var): Ditto, and report optimized-out variables.
7800 (gen_struct_ref_recursive): Check for optimized-out value.
7801 (gen_struct_elt_for_reference): Ditto.
7802 (gen_static_field): Pass gdbarch instead of expression, assume
7803 optimization if field not found.
7804 (gen_var_ref): Set the optimized_out flag.
7805 (gen_expr): Error on optimized-out variable.
7806 * tracepoint.c (collect_symbol): Handle struct-valued vars as
7807 expressions, skip optimized-out variables with computed locations.
7808 * dwarf2loc.c (dwarf2_tracepoint_var_ref): Flag instead of
7809 erroring out if location expression missing.
7810 (loclist_tracepoint_var_ref): Don't error out here.
7811
a3b2a86b
TT
78122010-03-17 Tom Tromey <tromey@redhat.com>
7813
7814 * dwarf2read.c (dwarf2_get_section_info): Handle case where no
7815 DWARF data is available.
7816
38963c97
DJ
78172010-03-17 Daniel Jacobowitz <dan@codesourcery.com>
7818
7819 * symfile.c (generic_load): Reset breakpoints after loading.
7820
ddabfc73
TT
78212010-03-17 Tom Tromey <tromey@redhat.com>
7822
7823 * linux-nat.c (linux_nat_detach): Check debug_linux_nat.
7824
d8c09fb5
JK
78252010-03-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7826
7827 * spu-tdep.c (spu_catch_start): Replace set_breakpoint call with the
7828 create_breakpoint call, adjust the parameters.
7829
bbb0eef6
JK
78302010-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7831 Chandru <chandru@in.ibm.com>
7832
7833 * dwarf2read.c (read_subrange_type): Set TYPE_HIGH_BOUND_UNDEFINED.
7834 * valarith.c (value_subscripted_rvalue): Suppress error if
7835 TYPE_ARRAY_UPPER_BOUND_IS_UNDEFINED.
7836
46956e39
HZ
78372010-03-16 Holger Hans Peter Freyther <zecke@selfish.org>
7838
7839 * linux-record.c (record_linux_msghdr): Remove unintended semicolons.
7840
b8d088ac
JB
78412010-03-16 Joel Brobecker <brobecker@adacore.com>
7842
7843 * ada-tasks.c (task_command_1): Check that the task ptid is valid
7844 before doing the associated thread switch.
7845
322be962
DJ
78462010-03-16 Daniel Jacobowitz <dan@codesourcery.com>
7847
7848 * MAINTAINERS: Update my email address.
7849
8cdf0e15
VP
78502010-03-16 Vladimir Prus <vladimir@codesourcery.com>
7851
7852 Simplify MI breakpoint setting.
7853
7854 * breakpoint.c (break_command_really): Make nonstatic and
7855 rename to...
7856 (create_breakpoint): ...this. Rename prior function by this name
7857 to...
7858 (create_breakpoint_sal): ...this.
7859 (create_breakpoints): Rename to...
7860 (create_breakpoints_sal): ...this.
7861 (set_breakpoint): Remove.
7862 * breakpoint.h: Adjust to above changes.
7863 * mi/mi-cmd-break.c (mi_cmd_break_insert): Simplify.
7864
b6e7192f
SS
78652010-03-15 Stan Shebs <stan@codesourcery.com>
7866
7867 * ax-gdb.c: Include cp-support.h.
7868 (find_field): Remove.
7869 (gen_primitive_field): New function.
7870 (gen_struct_ref_recursive): New function.
7871 (gen_struct_ref): Rewrite to call gen_struct_ref_recursive instead
7872 of find_field.
7873 (gen_static_field): New function.
7874 (gen_struct_elt_for_reference): New.
7875 (gen_namespace_elt): New.
7876 (gen_maybe_namespace_elt): New.
7877 (gen_aggregate_elt_ref): New.
7878 (gen_expr): Add OP_SCOPE, display opcode name in error message.
7879
1054b214
TT
78802010-03-15 Tom Tromey <tromey@redhat.com>
7881
7882 * dwarf2read.c (die_needs_namespace): Also return 0 for
7883 DW_TAG_subprogram.
7884
13387711
SW
78852010-03-15 Sami Wagiaalla <swagiaal@redhat.com>
7886
7887 PR c++/7936:
7888 * cp-support.h: Added char *declaration element to using_direct
7889 data struct.
7890 (cp_add_using): Added char *declaration argument.
7891 (cp_add_using_directive): Ditto.
7892 (cp_lookup_symbol_imports): made extern.
7893 * cp-namespace.c: Updated with the above changes.
7894 * dwarf2read.c (read_import_statement): Ditto.
7895 (read_namespace): Ditto.
7896 (read_import_statement): Support import declarations.
7897 * cp-namespace.c (cp_lookup_symbol_imports): Check for imported
7898 declarations.
7899 Added support for 'declaration_only' search.
7900 (cp_lookup_symbol_namespace): Attempt to search for the name as
7901 is before consideration of imports.
7902 * symtab.c (lookup_symbol_aux_local): Added a 'declaration_only'
7903 search at every block level search.
7904 Now takes language argument.
7905 (lookup_symbol_aux): Updated.
7906
6e31430b
TT
79072010-03-15 Tom Tromey <tromey@redhat.com>
7908
7909 * c-exp.y (name_not_typename): Add 'operator' clause.
7910
4dea3bb7 79112010-03-15 Ralf Corsepius <ralf.corsepius@rtems.org> (tiny change)
bf307134
JB
7912
7913 * configure.ac: Exit if ${gdb_target_obs}" is not set.
7914 * configure: Regenerate.
7915
4d9743af
JK
79162010-03-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7917
7918 * symfile.c (addr_info_make_relative): Ignore also missing ".dynbss"
7919 and ".sdynbss". Update the comment.
7920
f75150fe
JZ
79212010-03-15 Jie Zhang <jie@codesourcery.com>
7922
7923 * MAINTAINERS: Update my email address.
7924
3c13bc11
DJ
79252010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7926
7927 * gdbtypes.h (TYPE_IS_OPAQUE): Correct HAVE_CPLUS_STRUCT check.
7928
43484f03
DJ
79292010-03-14 Daniel Jacobowitz <dan@codesourcery.com>
7930
7931 * charset.c [USE_WIN32API]: Include <windows.h>.
7932 (_initialize_charset): Correct type of w32_host_default_charset.
7933
5f25d77d
PA
79342010-03-14 Pedro Alves <pedro@codesourcery.com>
7935
7936 * infrun.c (ptid_match): Don't assert that PTID is not a pid ptid.
7937
1c809c68
TT
79382010-03-12 Tom Tromey <tromey@redhat.com>
7939
7940 PR c++/9708:
7941 * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: A variable
7942 in a lexical block does not need a namespace.
7943 (new_symbol) <DW_TAG_variable>: Put extern variables on
7944 list_in_scope in all cases.
7945
948103cf
SS
79462010-03-12 Stan Shebs <stan@codesourcery.com>
7947
7948 * ax-gdb.c (gen_expr): Add shift expressions.
7949 (gen_expr_binop_rest): Ditto.
7950
00ae8fef
SW
79512010-03-12 Sami Wagiaalla <swagiaal@redhat.com>
7952
7953 * buildsym.c (finish_block): Reset using_directives pointer
7954 after block initialization.
7955
9cad29ac
L
79562010-03-12 H.J. Lu <hongjiu.lu@intel.com>
7957
7958 * amd64-tdep.c (amd64_word_names): Replace "sp" with "".
7959 * i386-tdep.c (i386_word_names): Likewise.
7960
2f4d8875
PA
79612010-03-12 Pedro Alves <pedro@codesourcery.com>
7962
7963 * target.c (memory_xfer_partial): Don't use the stack cache if
7964 inspecting trace frames.
7965 * tracepoint.c (finish_tfind_command): Invalidate the target
7966 dcache.
7967
ccf26247
JK
79682010-03-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7969
7970 * solib-svr4.c (LM_ADDR_CHECK) <info_verbose>: Use printf_unfiltered
7971 for the PIC displacement, print also the displacement value.
7972 (svr4_exec_displacement): Print DISPLACEMENT if INFO_VERBOSE.
7973
477c84a7
KB
79742010-03-10 Kevin Buettner <kevinb@redhat.com>
7975
7976 * remote-mips.c (close_ports, mips_initialize_cleanups)
7977 (mips_exit_cleanups, mips_send_command, mips_open, pmon_open)
7978 (ddb_open, lsi_open, mips_remove_breakpoint, mips_remove_watchpoint)
7979 (mips_stopped_by_watchpoint, send_srec, pmon_checkset)
7980 (pmon_make_fastrec, pmon_check_ack, mips_expect_download)
7981 (pmon_check_entry_address, pmon_check_total, pmon_end_download)
7982 (pmon_download, pmon_load_fast, _initialize_remote_mips): Add
7983 comments describing each of these functions.
7984 (mips_enter_debug, mips_exit_debug, common_open)
7985 (mips_signal_from_protocol, pmon_makeb64, pmon_zeroset): Add
7986 blank line after the comment describing the function.
7987
01c30d6e
JK
79882010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7989
7990 * solib-svr4.c (svr4_exec_displacement): Return now success, new
7991 parameter displacementp. Update comment.
7992 (svr4_relocate_main_executable): Return if non-zero SECTION_OFFSETS
7993 element exists. Return if svr4_exec_displacement was not successful.
7994 Update comment.
7995
09919ac2
JK
79962010-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7997 Daniel Jacobowitz <dan@codesourcery.com>
7998
7999 * solib-svr4.c (read_program_header): Support type == -1 to read
8000 all program headers.
8001 (read_program_headers_from_bfd): New function.
8002 (svr4_static_exec_displacement): Remove and move the comment ...
8003 (svr4_exec_displacement): ... here. Remove variable found. New
8004 variable displacement. Check also DYNAMIC. Verify DISPLACEMENT
8005 alignment for ELF targets. Compare target vs. exec_bfd PHDRs for ELF
8006 targets using read_program_headers_from_bfd. Remove the call of
8007 svr4_static_exec_displacement.
8008
d146bf1e
TT
80092010-03-10 Tom Tromey <tromey@redhat.com>
8010
8011 * dwarf2read.c (struct pubnames_header): Remove.
8012 (_PUBNAMES_HEADER): Remove.
8013 (_ACTUAL_PUBNAMES_HEADER_SIZE): Remove.
8014 (struct aranges_header): Remove.
8015 (_ARANGES_HEADER, _ACTUAL_ARANGES_HEADER_SIZE): Remove.
8016 (struct dwarf2_per_objfile) <pubnames, aranges>: Remove.
8017 (PUBNAMES_SECTION): Remove.
8018 (ARANGES_SECTION): Remove.
8019 (dwarf2_locate_sections): Don't handle pubnames or aranges.
8020 (dwarf2_build_psymtabs): Remove dead code.
8021 (dwarf2_build_psymtabs_easy): Remove.
8022
be391dca
TT
80232010-03-10 Tom Tromey <tromey@redhat.com>
8024
8025 * elfread.c (elf_symfile_read): Don't call
8026 dwarf2_build_frame_info.
8027 * dwarf2read.c (struct dwarf2_section_info) <readin>: New field.
8028 (struct dwarf2_per_objfile) <objfile>: New field.
8029 (dwarf2_has_info): Now idempotent. Set objfile field.
8030 (dwarf2_read_section): Check and set readin field. Call
8031 posix_madvise.
8032 (dwarf2_build_psymtabs): Don't read all sections.
8033 (read_type_comp_unit_head): Read types section.
8034 (create_debug_types_hash_table): Likewise.
8035 (init_cu_die_reader): Add asserts.
8036 (process_type_comp_unit): Add assert.
8037 (dwarf2_build_psymtabs_hard): Read info section.
8038 (load_partial_comp_unit): Add assert.
8039 (create_all_comp_units): Read info section.
8040 (load_full_comp_unit): Likewise.
8041 (dwarf2_ranges_read): Read ranges section.
8042 (dwarf2_record_block_ranges): Add assert.
8043 (dwarf2_read_abbrevs): Read abbrev section.
8044 (read_indirect_string): Read str section.
8045 (dwarf_decode_line_header): Read line section.
8046 (read_signatured_type_at_offset): Read types section.
8047 (dwarf_decode_macros): Read macinfo section.
8048 (dwarf2_symbol_mark_computed): Read loc section.
8049 * dwarf2-frame.c (dwarf2_frame_find_fde): Call
8050 dwarf2_build_frame_info.
8051 (dwarf2_build_frame_info): Unconditionally set
8052 dwarf2_frame_objfile_data on the objfile.
8053 * configure.ac: Check for posix_madvise.
8054 * config.in, configure: Rebuild.
8055
ccefe4c4
TT
80562010-03-10 Tom Tromey <tromey@redhat.com>
8057
e38df1d0
TT
8058 * xcoffread.c (xcoff_start_psymtab): Update.
8059 (xcoff_end_psymtab): Update.
8060 * psymtab.c (allocate_psymtab): Remove dead code.
8061 * psympriv.h (struct partial_symtab) <read_symtab_private>: Now
8062 void*.
8063 * mdebugread.c (parse_partial_symbols): Update.
8064 (new_psymtab): Likewise.
8065 * dwarf2read.c (process_psymtab_comp_unit): Update.
8066 (psymtab_to_symtab_1): Update.
8067 * dbxread.c (start_psymtab): Update.
8068 (end_psymtab): Likewise.
8069
be391dca 80702010-03-10 Tom Tromey <tromey@redhat.com>
e38df1d0 8071
ccefe4c4
TT
8072 * xcoffread.c: Include psymtab.h.
8073 (xcoff_sym_fns): Update.
8074 * symtab.h (struct partial_symbol): Remove.
8075 (PSYMBOL_DOMAIN, PSYMBOL_CLASS): Remove.
8076 (struct partial_symtab): Remove.
8077 (PSYMTAB_TO_SYMTAB): Remove.
8078 (lookup_partial_symbol, lookup_partial_symtab, find_pc_psymtab)
8079 (find_pc_sect_psymtab): Remove.
8080 (find_pc_sect_symtab_via_partial): Declare.
8081 (find_pc_psymtab, find_pc_sect_psymbol, psymtab_to_symtab)
8082 (find_main_psymtab): Remove.
8083 (find_main_filename): Declare.
8084 (fixup_psymbol_section): Remove.
8085 (fixup_section): Declare.
8086 * symtab.c: Include psymtab.h.
8087 (lookup_symtab): Use lookup_symtab method.
8088 (lookup_partial_symtab): Remove.
8089 (find_pc_sect_psymtab_closer): Remove.
8090 (find_pc_sect_psymtab): Remove.
8091 (find_pc_sect_symtab_via_partial): New function.
8092 (find_pc_psymtab, find_pc_sect_psymbol, find_pc_psymbol): Remove.
8093 (fixup_section): No longer static.
8094 (fixup_psymbol_section): Remove.
8095 (lookup_symbol_aux): Use lookup_symbol_aux_quick.
8096 (lookup_global_symbol_from_objfile): Likewise.
8097 (lookup_symbol_aux_psymtabs): Remove.
8098 (lookup_symbol_aux_quick): New function.
8099 (lookup_symbol_global): Use lookup_symbol_aux_quick.
8100 (lookup_partial_symbol): Remove.
8101 (basic_lookup_transparent_type_quick): New function.
8102 (basic_lookup_transparent_type): Use it.
8103 (find_main_psymtab): Remove.
8104 (find_main_filename): New function.
8105 (find_pc_sect_symtab): Use find_pc_sect_symtab method.
8106 (find_line_symtab): Use expand_symtabs_with_filename method.
8107 (output_partial_symbol_filename): New function.
8108 (sources_info): Use map_partial_symbol_filenames.
8109 (struct search_symbols_data): New type.
8110 (search_symbols_file_matches): New function.
8111 (search_symbols_name_matches): Likewise.
8112 (search_symbols): Use expand_symtabs_matching method.
8113 (struct add_name_data): Rename from add_macro_name_data.
8114 (add_macro_name): Update.
8115 (add_partial_symbol_name): New function.
8116 (default_make_symbol_completion_list): Use
8117 map_partial_symbol_names.
8118 (struct add_partial_symbol_name): New type.
8119 (maybe_add_partial_symtab_filename): New function.
8120 (make_source_files_completion_list): Use
8121 map_partial_symbol_filenames.
8122 (expand_line_sal): Use expand_symtabs_with_filename method.
8123 * symmisc.c: Include psymtab.h.
8124 (print_objfile_statistics): Use print_stats method.
8125 (dump_objfile): Use dump method.
8126 (dump_psymtab, maintenance_print_psymbols)
8127 (maintenance_info_psymtabs, maintenance_check_symtabs)
8128 (extend_psymbol_list): Remove.
8129 * symfile.h (struct quick_symbol_functions): New struct.
8130 (struct sym_fns) <qf>: New field.
8131 (sort_pst_symbols): Remove.
8132 (increment_reading_symtab): Declare.
8133 * symfile.c: Include psymtab.h.
8134 (compare_psymbols, sort_pst_symbols): Remove.
8135 (psymtab_to_symtab): Remove.
8136 (increment_reading_symtab): New function.
8137 (symbol_file_add_with_addrs_or_offsets): Use expand_all_symtabs
8138 method.
8139 (set_initial_language): Use find_main_filename.
8140 (allocate_psymtab, discard_psymtab, cashier_psymtab): Remove.
8141 (free_named_symtabs): Remove unused code.
8142 (start_psymtab_common, add_psymbol_to_bcache)
8143 (append_psymbol_to_list, add_psymbol_to_list, init_psymbol_list):
8144 Remove.
8145 * stack.c: Include psymtab.h, symfile.h.
8146 (backtrace_command_1): Use find_pc_sect_symtab_via_partial.
8147 * source.h (psymtab_to_fullname): Don't declare.
8148 * source.c: Include psymtab.h.
8149 (select_source_symtab): Use find_last_source_symtab method.
8150 (forget_cached_source_info): Use forget_cached_source_info
8151 method.
8152 (find_and_open_source): No longer static.
8153 (psymtab_to_fullname): Remove.
8154 * somread.c: Include psymtab.h.
8155 (som_sym_fns): Update.
8156 * psympriv.h: New file.
8157 * psymtab.h: New file.
8158 * psymtab.c: New file.
8159 * objfiles.h: (ALL_OBJFILE_PSYMTABS): Remove.
8160 (ALL_PSYMTABS, ALL_PSPACE_PSYMTABS): Likewise.
8161 * objfiles.c: Include psymtab.h.
8162 (objfile_relocate1): Use relocate method.
8163 (objfile_has_partial_symbols): Use has_symbols method.
8164 * mipsread.c: Include psymtab.h.
8165 (ecoff_sym_fns): Update.
8166 * mi/mi-cmd-file.c: Include psymtab.h.
8167 (print_partial_file_name): New function.
8168 (mi_cmd_file_list_exec_source_files): Use
8169 map_partial_symbol_filenames.
8170 * mdebugread.c: Include psympriv.h.
8171 * machoread.c: Include psympriv.h.
8172 (macho_sym_fns): Update.
8173 * m2-exp.y (yylex): Use lookup_symtab.
8174 * elfread.c: Include psympriv.h.
8175 (elf_sym_fns): Update.
8176 * dwarf2read.c: Include psympriv.h.
8177 * dbxread.c: Include psympriv.h.
8178 (aout_sym_fns): Update.
8179 * cp-support.c: Include psymtab.h.
8180 (read_in_psymtabs): Remove.
8181 (make_symbol_overload_list_qualified): Use
8182 expand_symtabs_for_function method.
8183 * coffread.c: Include psympriv.h.
8184 (coff_sym_fns): Update.
8185 * blockframe.c: Include psymtab.h.
8186 (find_pc_partial_function): Use find_pc_sect_symtab method.
8187 * ada-lang.h (ada_update_initial_language): Update.
8188 * ada-lang.c: Include psymtab.h.
8189 (ada_update_initial_language): Remove 'main_pst' argument.
8190 (ada_lookup_partial_symbol): Remove.
8191 (struct ada_psym_data): New type.
8192 (ada_add_psyms): New function.
8193 (ada_add_non_local_symbols): Use map_ada_symtabs method.
8194 (struct add_partial_datum): New type.
8195 (ada_add_partial_symbol_completions): New function.
8196 (ada_make_symbol_completion_list): Use map_partial_symbol_names.
8197 (ada_exception_support_info_sniffer): Update.
8198 * Makefile.in (SFILES): Add psymtab.c.
8199 (COMMON_OBS): Add psymtab.o.
8200 (HFILES_NO_SRCDIR): Add psymtab.h, psympriv.h.
8201
7d8500b7
PM
82022010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8203
8204 * remote-fileio.c (cygwin_conv_path): Define macro for old cygwin API.
8205
c0cc3a76
SW
82062010-03-10 Sami Wagiaalla <swagiaal@redhat.com>
8207
8208 PR C++/11236:
8209 * cp-namespace.c (cp_add_using): Deleted.
8210 (cp_add_using_directive): Use obstack allocations.
8211 Merged the function cp_add_using into this one.
8212 Added 'struct obstack *' argument.
8213 (cp_scan_for_anonymous_namespaces): Updated.
8214 * cp-support.h: Updated.
8215 * dwarf2read.c (read_import_statement): Updated.
8216 (read_namespace): Updated.
8217
452fa064
CF
82182010-03-10 Pierre Muller <muller@ics.u-strasbg.fr>
8219
8220 * windows-nat.c (cygwin_conv_path): Remove old macro.
8221
60e1c644
PA
82222010-03-10 Pedro Alves <pedro@codesourcery.com>
8223
8224 * breakpoint.c (condition_command): Handle watchpoint conditions.
8225 (is_hardware_watchpoint): Add comment.
8226 (is_watchpoint): New.
8227 (update_watchpoint): Don't reparse the watchpoint's condition
8228 unless necessary.
8229 (WP_IGNORE): New.
8230 (watchpoint_check): Use it.
8231 (bpstat_check_watchpoint): Handle it.
8232 (bpstat_check_breakpoint_conditions): Evaluate watchpoint local
8233 conditions in a frame where it makes sense.
8234 (watch_command_1): Store the innermost block of the condition
8235 expression.
8236 (delete_breakpoint): Delete the watchpoint condition expression.
8237 * breakpoint.h (struct bp_location) <cond>: Update comment.
8238 (struct breakpoint): New field `cond_exp_valid_block'.
8239
af6b7be1
JB
82402010-03-09 Joel Brobecker <brobecker@adacore.com>
8241
8242 Adjust handling of Ada DIEs after dwarf2_physname patch.
8243 * dwarf2read.c (dwarf2_compute_name): Add handling of Ada DIEs.
8244
60c5c021
CF
82452010-03-09 Christopher Faylor <me+cygwin@cgf.cx>
8246 Pierre Muller <muller@ics.u-strasbg.fr>
8247
8248 * windows-nat.c (cygwin_conv_path): Redefine to properly convert
8249 from/to posix/win32.
8250 (windows_make_so): Use non-Cygwin 1.7 specific function.
8251 (windows_create_inferior): Make sure that cygallargs points to
8252 original args in non Cygwin 1.7. case.
8253
60a1502a
MS
82542010-03-09 Michael Snyder <msnyder@vmware.com>
8255
8256 * i386-tdep.c (i386_record_lea_modrm_addr): Use extract_signed_int
8257 after target_read_memory to get host byte order.
8258 (i386_process_record): Ditto.
8259
94af9270
KS
82602010-03-09 Keith Seitz <keiths@redhat.com>
8261
8262 Based on work from Daniel Jacobowitz <dan@codesourcery.com>
8263 * c-typeprint.c (cp_type_print_method_args): For non-static methods,
8264 print out const or volatile qualifiers, too.
8265 (c_type_print_args): Add parameters show_artificial and language.
8266 Skip artificial parameters when requested.
8267 Use the appropriate language printer.
8268 (c_type_print_varspec): Tell c_type_print_args to skip artificial
8269 parameters and pass language_c.
8270 * dwarf2read.c (die_list): New file global.
8271 (struct partial_die_info): Update comments for name field.
8272 (pdi_needs_namespace): Renamed to ...
8273 (die_needs_namespace): ... this. Rewrite.
8274 (dwarf2_linkage_name): Remove.
8275 (add_partial_symbol): Do not predicate the call to
8276 partial_die_full_name based on pdi_needs_namespace.
8277 Remove call to cp_check_possible_namespace_symbols and associated
8278 outdated comments.
8279 (guess_structure_name): Do not inspect child subprogram DIEs.
8280 (dwarf2_fullname): Update comments.
8281 Use die_needs_namespace to assist in computing the name.
8282 (read_func_scope): Use dwarf2_name to get the DIE's name.
8283 Use dwarf2_physname to get the "linkage name" of the DIE.
8284 (dwarf2_add_member_field): Use dwarf2_physname instead of
8285 dwarf2_linkage_name.
8286 (read_structure_type): For structs and classes, set TYPE_NAME, too.
8287 (determine_class): Remove.
8288 (read_partial_die): Ignore DW_AT_MIPS_linkage_name for all languages
8289 except Ada.
8290 (new_symbol): Unconditionally call dwarf2_name.
8291 Compute the "linkage name" using dwarf2_physname.
8292 Use dwarf2_name instead of dwarf2_full_name for enumerator DIEs.
8293 When determining to scan for anonymous C++ namespaces, ignore
8294 the linkage name.
8295 (dwarf2_physname): New function.
8296 (dwarf2_full_name): Move content to new function and call
8297 that.
8298 (dwarf2_compute_name): "New" function.
8299 (_initialize_dwarf2_read): Initialize die_list.
8300 * gnu-v3-eabi.c (gnu_v3_find_method_in): Remove unused variable
8301 physname.
8302 (gnu_v3_print_method_ptr): Use the physname for virtual methods
8303 without a demangled name.
8304 Print out type information for non-virtual methods.
c8d5aac9 8305 * linespec.c (decode_line_1): Force ANY string using "::" (or
94af9270 8306 "." for java) to use decode_compound, and clean up any stray quoting.
c8d5aac9
L
8307 If we found a file symtab, re-evaluate whether the remainder is_quoted.
8308 (decode_compound): Stop consuming at an open parenthesis.
8309 Keep template parameters.
8310 Keep any overload information.
8311 Keep keywords like "const".
8312 Remove paren_pointer.
8313 Move is_quoted check from set_flags to here.
8314 Remove #if 0 code from 2000. Ten years is long enough.
8315 (find_method): Before comparing symbol names, canonicalize the string
8316 from the user.
8317 If a specific overload is requested, find it. Otherwise throw an error.
94af9270
KS
8318 (find_method_overload_end): New function.
8319 (set_flags): Remove.
c8d5aac9
L
8320 (decode_compound): Assume that parentheses are matched.
8321 It's a lot easier.
94af9270
KS
8322 * symtab.c (symbol_find_demangled_name): Add DMGL_VERBOSE flag
8323 to cplus_demangle.
8324 * linespec.c (decode_line_1): Keep important keywords like
8325 "const" and "volatile".
8326 * symtab.h (SYMBOL_CPLUS_DEMANGLED_NAME): Remove.
8327 * typeprint.h (c_type_print_args): Add declaration.
8328 * ui-file.c (do_ui_file_obsavestring): New function.
8329 (ui_file_obsavestring): New function.
8330 * ui-file.h (ui_file_obsavestring): Add declaration.
8331 * valops.c (find_overload_match): Resolve the object to
8332 a non-pointer type.
8333 If the object is a data member, search the object for the member
8334 and return with staticp set.
8335 Use SYMBOL_NATURAL_NAME instead of SYMBOL_CPLUS_DEMANGLED_NAME.
8336 Do not attempt to extract a function name from non-function types.
8337 If the extracted function name and the original name are the same,
8338 we don't have a C++ method.
8339
8d95cc3b
PA
8340 From Jan Kratochvil <jan.kratochvil@redhat.com>:
8341 * dwarf2read.c (new_symbol <DW_TAG_enumerator>): Call dwarf2_full_name.
94af9270
KS
8342
8343 * ada-lang.c (ada_lookup_symbol): Remove linkage_name parameters
8344 and arguments from symbol lookups.
8345 * ax-gdb.c (gen_expr): Likewise.
8346 * cp-namespace.c (cp_lookup_symbol_nonlocal, lookup_namespace_scope,
8347 cp_lookup_symbol_namespace, lookup_symbol_file, lookup_nested_type,
8348 lookup_possible_namespace_symbol): Likewise.
8349 * cp-support.c (read_in_psymtabs): Likewise.
8350 * cp-support.h (cp_lookup_symbol_nonlocal): Likewise.
8351 * language.h (la_lookup_symbol_nonlocal): Likewise.
8352 * scm-valprint.c (scm_inferior_print): Likewise.
8353 * solib-darwin.c (darwin_relocate_section_addresses): Likewise.
8354 * solib-svr.c (elf_lookup_lib): Likewise.
8355 * solib.c (show_auto_solib_add): Likewise.
8356 * solist.h (lookup_lib_global, solib_global_lookup): Likewise.
8357 * symmisc.c (maintenance_check_symtabs): Likewise.
8358 * symtab.c (lookup_symbol_in_language, lookup_symbol_aux,
8359 lookup_symbol_aux_local, lookup_symbol_aux_block,
8360 lookup_symbol_from_objfile, lookup_symbol_aux_symtabs,
8361 lookup_symbol_aux_psymtabs,basic_lookup_symbol_nonlocal,
8362 lookup_symbol_static, lookup_symbol_global, symbol_matches_domain,
8363 basic_lookup_transparent_type, find_main_psymtab,
8364 lookup_block_symbol): Likewise.
8365 * symtab.h (basic_lookp_symbol_nonlocal, lookup_symbol_static,
8366 lookup_symbol_global, lookup_symbol_aux_block,
8367 lookup_symbol_partial_symbol, lookup_block_symbol,
8368 lookup_global_symbol, value_maybe_namespace_elt): Likewise.
8369
9cb74f47
PM
83702010-03-09 Pierre Muller <muller@ics.u-strasbg.fr>
8371
8372 * python/python-internal.h: Include symtab.h.
8373
af6b7be1
JB
83742010-03-09 Joel Brobecker <brobecker@adacore.com>
8375 Pierre Muller <muller@ics.u-strasbg.fr>
e13eedd5
PM
8376
8377 * p-lang.c (is_pascal_string_type): Remove unneeded parentheses.
8378 * p-valprint.c (pascal_val_print): Remove undeed block and fix
8379 indentation.
8380
bad56014
TT
83812010-03-08 Tom Tromey <tromey@redhat.com>
8382
8383 * breakpoint.c (breakpoint_1): Add "QUIT".
8384
08105857
PA
83852010-03-08 Daniel Jacobowitz <dan@codesourcery.com>
8386 Pedro Alves <pedro@codesourcery.com>
8387
8388 * solib.c (solib_find): Replace extension if
8389 solib_symbols_extension is set in the target gdbarch.
8390 * arm-symbian-tdep.c (arm_symbian_init_abi): Set
8391 solib_symbols_extension to "sym".
8392 * gdbarch.sh (solib_symbols_extension): New variable.
8393 (pstring): New function.
8394 * gdbarch.h, gdbarch.c: Regenerate.
8395
7c953934
TT
83962010-03-08 Tom Tromey <tromey@redhat.com>
8397
8398 PR cli/9591:
8399 * NEWS: Update.
8400 * utils.c: Include main.h.
8401 (fputs_maybe_filtered): Don't paginate if `batch_flag'.
8402 (defaulted_query): Use default answer if `batch_flag'.
8403 * main.h (batch_flag): Declare.
8404 * main.c (batch_flag): New global.
8405 (captured_main): Remove 'batch'. Update.
8406
bbd2783e
KB
84072010-03-08 Kevin Buettner <kevinb@redhat.com>
8408
8409 From Richard Sandiford, Martin M. Hunt, Corinna Vinschen,
8410 and Kevin Buettner:
8411
8412 * remote-mips.c (rockhopper_ops): New target_ops struct.
8413 (MON_ROCKHOPPER): New mips_monitor_type.
8414 (read_hex_value): New function.
8415 (mips_request): Send 8-byte values with a 'T' packet. Read the
8d95cc3b 8416 packet argument as a string and use read_hex_value to parse it.
bbd2783e
KB
8417 (mips_exit_debug): Wait for response when using MON_ROCKHOPPER.
8418 (rockhopper_open): New function.
8419 (mips_wait): Read the PC, FP and SP fields as strings. Use
8420 read_hex_value to parse them and mips_set_register to commit them.
8421 (mips_set_register): New function.
8422 (mips_fetch_registers): Do not cast register value to "unsigned"
8423 when reading a MON_ROCKHOPPER 't' packet. Use mips_set_register.
8424 (mips_store_registers): Use a 'T' packet to set registers when
8425 using MON_ROCKHOPPER.
8426 (pmon_end_download): Don't run initEther if using MON_ROCKHOPPER
8427 and expect the total to be printed before the entry address.
8428 (_initialize_remote_mips): Initialize and add rockhopper_ops.
8429
566f3d17
KB
84302010-03-08 Kevin Buettner <kevinb@redhat.com>
8431
8432 * remote-mips.c (mips_fetch_word): Add new parameter, `valp'.
8433 Change return value to int. Store value fetched in location
8434 addressed by `val'. Use function's return value as success
8435 or failure indicator. Adjust all callers.
8436
9c8ee2ab 84372010-03-08 Pierre Muller <muller@ics.u-strasbg.fr>
f72d4b77
PM
8438
8439 * p-lang.c (is_pascal_string_type): Check that TYPE arg is non NULL.
8440
7155de5a
HZ
84412010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8442 Hui Zhu <teawater@gmail.com>
8443
8444 * record.c (record_open_1): Check tmp_to_stopped_by_watchpoint and
8445 tmp_to_stopped_data_address.
8446 (record_open): Reset tmp_to_stopped_by_watchpoint and
8447 tmp_to_stopped_data_address.
8448 * target.c (init_dummy_target): Add to_stopped_by_watchpoint and
8449 to_stopped_data_address.
8450
580879fc
HZ
84512010-03-08 Hui Zhu <teawater@gmail.com>
8452
8453 * i386-tdep.c (i386_process_record): Initialize regnum.
8454
b0fcb67f
JK
84552010-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8456
8457 * symfile.c (addr_info_make_relative): New variable sect_name, use it.
8458 Do not warn on ".gnu.liblist" and ".gnu.conflict".
8459
08597104
JB
84602010-03-08 Joel Brobecker <brobecker@adacore.com>
8461
8462 Memory error when reading wrong core file.
8463 * solib-svr4.c (solib_svr4_r_map): catch and print all exception
8464 errors while reading the inferior memory, and return zero if
8465 an exception was raised.
8466
425b824a
MS
84672010-03-07 Michael Snyder <msnyder@vmware.com>
8468
ec6dbf37
MS
8469 * record.c (record_restore): Rename tmpu8 to rectype.
8470
648d0c8b
MS
8471 * i386-tdep.c (i386_record_lea_modrm_addr): Rename local variables
8472 tmpu8, tmpi16, tmpi32, tmpulongest to addr8, addr16, addr32, addr64.
8473
8474 (i386_record_push): Rename local tmpulongest to addr.
8475
8476 (i386_process_record): Rename local tmpulongest to addr.
8477
8478 Rename local variables tmpu16, tmpu32, tmpu64 to addr16, addr32,
8479 addr64.
955db0c0
MS
8480
8481 Rename local variable tmpu8 to opcode8 and regnum.
425b824a 8482
10760264
JB
84832010-03-07 Joel Brobecker <brobecker@adacore.com>
8484
8485 * remote.c (remote_get_ada_task_ptid): New function.
c8d5aac9 8486 (init_remote_ops): Set remote_ops.to_get_ada_task_ptid.
10760264 8487
b3c613f2
CF
84882010-03-06 Christopher Faylor <me+cygwin@cgf.cx>
8489
8490 * windows-nat.c: Reorganize #ifdef __CYGWIN__ considerations into one
8491 block. Define helper macros to reduce ifdefs in code.
8492 (get_module_name): Use cygwin_buf_t for buffer and __PMAX for buffer
8493 size. Call unadorned GetModuleFileNameEx rather than
8494 GetModuleFileNameEx*.
8495 (windows_make_so): Use __PMAX to denote maximum buffer size and
8496 cygwin_buf_t for buffer type. Use GetSystemDirectory{W,A} as
8497 appropriate.
8498 (get_image_name): Use __PMAX to denote maximum buffer size.
8499 (handle_load_dll): Likewise.
8500 (windows_pid_to_exec_file): Likewise.
8501 (windows_create_inferior): Add many accommodations for older Cygwin and
8502 non-Cygwin.
8503 (bad_GetModuleFileNameExW): Control inclusion of this function based on
8504 __USEWIDE conditional.
8505 (bad_GetModuleFileNameExA): Likewise.
8506 (_initialize_loadable): Just use real function names without the dyn_
8507 part since they are defined earlier.
8508
f870a310
TT
85092010-03-05 Corinna Vinschen <vinschen@redhat.com>
8510 Tom Tromey <tromey@redhat.com>
8511
8512 * utils.c (host_char_to_target): Add 'gdbarch' argument.
8513 (parse_escape): Likewise.
8514 * python/py-utils.c (unicode_to_target_string): Update.
8515 (unicode_to_target_python_string): Update.
8516 (target_string_to_unicode): Update.
8517 * printcmd.c (printf_command): Update.
8518 * p-exp.y (yylex): Update.
8519 * objc-exp.y (yylex): Update.
8520 * mi/mi-parse.c: Include charset.h.
8521 (mi_parse_escape): New function.
8522 (mi_parse_argv): Use it.
8523 * jv-exp.y (yylex): Update.
8524 * i386-cygwin-tdep.c (i386_cygwin_auto_wide_charset): New
8525 function.
8526 (i386_cygwin_init_abi): Call set_gdbarch_auto_wide_charset.
8527 * gdbarch.sh (auto_charset, auto_wide_charset): New.
8528 * gdbarch.c: Rebuild.
8529 * gdbarch.h: Rebuild.
8530 * defs.h (parse_escape): Update.
8531 * cli/cli-setshow.c: Include arch-utils.h.
8532 (do_setshow_command): Update.
8533 * cli/cli-cmds.c (echo_command): Update.
8534 * charset.h (target_charset, target_wide_charset): Update.
8535 * charset.c: Include arch-utils.h.
8536 (target_charset_name): Default to "auto".
8537 (target_wide_charset_name): Likewise.
8538 (show_target_charset_name): Handle "auto".
8539 (show_target_wide_charset_name): Likewise.
8540 (be_le_arch): New global.
8541 (set_be_le_names): Add 'gdbarch' argument.
8542 (validate): Likewise. Don't call set_be_le_names.
8543 (set_charset_sfunc, set_host_charset_sfunc)
8544 (set_target_charset_sfunc, set_target_wide_charset_sfunc):
8545 Update.
8546 (target_charset): Add 'gdbarch' argument.
8547 (target_wide_charset): Likewise. Remove 'byte_order' argument.
8548 (auto_target_charset_name): New global.
8549 (default_auto_charset, default_auto_wide_charset): New functions.
8550 (_initialize_charset): Set auto_target_charset_name. Allow "auto"
8551 for target charsets. Copy result of nl_langinfo. Use GetACP if
8552 USE_WIN32API.
8553 * c-lang.c (charset_for_string_type): Add 'gdbarch' argument,
8554 remove 'byte_order' argument. Update.
8555 (classify_type): Likewise.
8556 (c_emit_char): Update.
8557 (c_printchar): Update.
8558 (c_printstr): Update.
8559 (c_get_string): Update.
8560 (evaluate_subexp_c): Update.
8561 * arch-utils.h (default_auto_charset, default_auto_wide_charset):
8562 Declare.
8563 * python/python.c (gdbpy_target_charset): New function.
8564 (gdbpy_target_wide_charset): Likewise.
8565 (GdbMethods): Update.
8566 * NEWS: Update.
8567
4e7386b0
UW
85682010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8569
8570 * symfile.c (build_section_addr_info_from_objfile): Do not mask
8571 off high address bits.
8572
aab48ede
UW
85732010-03-05 Ulrich Weigand <uweigand@de.ibm.com>
8574
8575 * python/py-lazy-string.c (gdbpy_extract_lazy_string): Extract
8576 address as UnsignedLongLong, not LongLong.
8577
8eeafb51 85782010-03-05 Kevin Buettner <kevinb@redhat.com>
c8d5aac9 8579 Pedro Alves <pedro@codesourcery.com>
8eeafb51
KB
8580
8581 * remote-mips.c (gdbthread.h): Include.
8582 (remote_mips_ptid): Declare.
8583 (mips_error): Only mourn the inferior when inferior_ptid is non-null.
8584 (common_open): Set inferior_ptid, add it as an inferior, and
8585 as a thread too. Delete FIXME comment regarding start_remote().
8586 (mips_close): Invoke generic_mourn_inferior().
8587 (mips_kill): Make sure that target_mourn_inferior is invoked.
8588 (mips_mourn_inferior): Don't invoke generic_mourn_inferior, as
8589 it's now invoked from mips_close().
8590 (mips_load): Don't null out inferior_ptid. Don't call
8591 clear_symtab_users().
8592 (mips_thread_alive, mips_pid_to_str): New functions.
8593 (_initialize_remote_mips): Initialize remote_mips_ptid. Initialize
8594 to_thread_alive and to_pid_to_str operations.
8595
ae411497
TT
85962010-03-04 Tom Tromey <tromey@redhat.com>
8597
8598 * dwarf2read.c (skip_one_die) <DW_FORM_ref_addr>: Use offset size
8599 in DWARF 3 and later.
8600 (read_attribute_value) <DW_FORM_ref_addr>: Likewise.
8601
0e0b460e
KS
86022010-03-04 Keith Seitz <keiths@redhat.com>
8603
8604 * linespec.c (decode_line_1): Update comments for is_quote_enclosed.
8605 If the filename portion of the linespec was quoted, recheck the
8606 remainder for additional quoting.
8607 (locate_first_half): Skip over completer chars, too.
8608
1b93ff13
TT
86092010-03-04 Tom Tromey <tromey@redhat.com>
8610
8611 * printcmd.c (printf_command): Pass dummy argument to
8612 printf_filtered.
8613
fc36e839
DE
86142010-03-04 Doug Evans <dje@google.com>
8615
111f853c
DE
8616 * arm-tdep.c (arm_make_stub_cache): Delete unused locals reg,
8617 unwound_fp.
8618
fc36e839
DE
8619 * arm-tdep.c (arm_stub_unwind_sniffer): Add comment.
8620
c7437ca6
PA
86212010-03-04 Pedro Alves <pedro@codesourcery.com>
8622
8623 * breakpoint.c (update_watchpoint): Create a sentinel location if
8624 the software watchpoint isn't watching any memory.
8625 (breakpoint_address_bits): Skip dummy software watchpoint locations.
8626
58dadb1b
PA
86272010-03-04 Pedro Alves <pedro@codesourcery.com>
8628
8629 * utils.c (fputs_maybe_filtered): Check if there's already a top
8630 level interpreter before dereferencing it. If there isn't one,
8631 don't paginate either.
8632
50e98be4
DJ
86332010-03-04 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
8634
8635 * arm-tdep.c (arm_pc_is_thumb): Add heuristic that tries to get
8636 the state right when single stepping.
8637 (arm_get_next_pc_raw, thumb_get_next_pc_raw): New functions.
8638 Get the next PC along with the instruction state.
8639 (thumb_get_next_pc): Remove.
8640 (arm_get_next_pc): Modified to use arm_get_next_pc_raw.
8641
2e3ceee9
HZ
86422010-03-04 Hui Zhu <teawater@gmail.com>
8643
8644 * i386-tdep.c (i386_process_record): Change "addr" to "tmpu64".
8645
390a8aca
PA
86462010-03-03 Pedro Alves <pedro@codesourcery.com>
8647
8648 * utils.c (fputs_maybe_filtered): Always disable pagination if the
8649 top level interpreter is MI.
8650
9355b391
SS
86512010-03-03 Stan Shebs <stan@codesourcery.com>
8652
8653 * remote.c (remote_download_tracepoint): Iterate over locations.
8654 * tracepoint.c (validate_actionline): Ditto.
8655 (encode_actions): Add location argument.
8656 (trace_dump_command): Check all locations to see if stepping
8657 frame.
390a8aca 8658
8685c86f
L
86592010-03-03 H.J. Lu <hongjiu.lu@intel.com>
8660 Eli Zaretskii <eliz@gnu.org>
8661
8662 * NEWS: Add X86 general purpose registers section.
8663
e8f781e2
TT
86642010-03-03 Tom Tromey <tromey@redhat.com>
8665
8666 PR mi/11098:
8667 * varobj.c (install_new_value): Handle case where new print_value
8668 is NULL.
8669
a0e0ef55
TT
86702010-03-03 Dainis Jonitis <jonitis@gmail.com>
8671
8672 PR gdb/11345:
8673 * printcmd.c (printf_command): Print end of format string using
8674 printf_filtered.
8675
a58d7472
TT
86762010-03-02 Tom Tromey <tromey@redhat.com>
8677
8678 * mi/mi-cmd-break.c (mi_read_next_line): Add missing 'void'.
8679 * defs.h (read_command_lines_1): Add missing 'void'.
8680 * cli/cli-script.c (recurse_read_control_structure): Add missing
8681 'void'.
8682 (read_next_line): Likewise.
8683 (read_command_lines_1): Likewise.
8684
ce50d78b
UW
86852010-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8686
8687 * spu-tdep.c (spu_analyze_prologue): Track instruction to
8688 store backchain as part of prologue.
8689
7e9af34a
DJ
86902010-03-02 Daniel Jacobowitz <dan@codesourcery.com>
8691
8692 * progspace.c (update_address_spaces): Update inferior address spaces
8693 also.
8694
01637564
DE
86952010-03-02 Doug Evans <dje@google.com>
8696
8697 * dwarf2read.c (add_partial_subprogram): Add missing baseaddr to
8698 lowpc,highpc args to addrmap_set_empty.
8699
1ba53b71
L
87002010-03-02 H.J. Lu <hongjiu.lu@intel.com>
8701
8702 * amd64-tdep.c (amd64_byte_names): New.
8703 (amd64_word_names): Likewise.
8704 (amd64_dword_names): Likewise.
8705 (amd64_pseudo_register_name): Likewise.
8706 (amd64_pseudo_register_read): Likewise.
8707 (amd64_pseudo_register_write): Likewise.
8708 (amd64_init_abi): Set num_byte_regs, num_word_regs, num_dword_regs
8709 and num_mmx_regs. Call set_gdbarch_pseudo_register_read,
8710 set_gdbarch_pseudo_register_write and
8711 set_tdesc_pseudo_register_name. Don't call
8712 set_gdbarch_num_pseudo_regs. Don't set mm0_regnum.
8713
8714 * i386-tdep.c (i386_num_mmx_regs): Removed.
8715 (i386_num_pseudo_regs): Likewise.
8716 (i386_byte_names): New.
8717 (i386_word_names): Likewise.
8718 (i386_byte_regnum_p): Likewise.
8719 (i386_word_regnum_p): Likewise.
8720 (i386_mmx_regnum_p): Updated.
8721 (i386_pseudo_register_name): Make it global. Handle byte and
8722 word pseudo-registers.
8723 (i386_pseudo_register_read): Likewise.
8724 (i386_pseudo_register_write): Likewise.
8725 (i386_pseudo_register_type): Handle byte, word and dword
8726 pseudo-registers
8727 (i386_register_reggroup_p): Don't include pseudo
8728 registers, except for MXX, in any register groups. Don't
8729 include pseudo byte, word, dword registers in general_reggroup.
8730 (i386_gdbarch_init): Set num_byte_regs, num_word_regs,
8731 num_dword_regs, al_regnum, ax_regnum and eax_regnum. Put MMX
8732 pseudo-registers after word pseudo-registers. Call
8733 set_gdbarch_num_pseudo_regs after calling gdbarch_init_osabi.
8734
8735 * i386-tdep.h (gdbarch_tdep): Add num_mmx_regs, num_byte_regs,
8736 al_regnum, num_word_regs, ax_regnum, num_dword_regs and
8737 eax_regnum.
8738 (i386_byte_regnum_p): New.
8739 (i386_word_regnum_p): Likewise.
8740 (i386_dword_regnum_p): Likewise.
8741 (i386_pseudo_register_name): Likewise.
8742 (i386_pseudo_register_read): Likewise.
8743 (i386_pseudo_register_write): Likewise.
8744
a6f5ef51
L
87452010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8746
8747 * target-descriptions.c (tdesc_type): Remove
8748 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
8749 (tdesc_predefined_types): Likewise.
8750 (tdesc_gdb_type): Likewise. Pass NULL to append_flags_type_flag
8751 if flag name is empty.
8752 (maint_print_c_tdesc_cmd): Handle TDESC_TYPE_FLAGS.
8753
8754 * features/i386/32bit-core.xml: Define i386_eflags.
8755 * features/i386/64bit-core.xml: Likewise.
8756
8757 * features/i386/32bit-sse.xml: Define i386_mxcsr.
8758 * features/i386/64bit-sse.xml: Likewise.
8759
8760 * features/i386/amd64-linux.c: Regenerated.
8761 * features/i386/amd64.c: Likewise.
8762 * features/i386/i386-linux.c: Likewise.
8763 * features/i386/i386.c: Likewise.
8764
f5dff777
DJ
87652010-03-01 Daniel Jacobowitz <dan@codesourcery.com>
8766
8767 * gdbtypes.c (append_composite_type_field_raw): New.
8768 (append_composite_type_field_aligned): Use the new function.
8769 * gdbtypes.h (append_composite_type_field_raw): Declare.
8770 * target-descriptions.c (struct tdesc_type_field): Add start and end.
8771 (struct tdesc_type_flag): New type.
8772 (struct tdesc_type): Add TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS to
8773 kind. Add size to u.u. Add u.f for flags.
8774 (tdesc_gdb_type): Handle TDESC_TYPE_STRUCT and TDESC_TYPE_FLAGS.
8775 (tdesc_free_type): Likewise.
8776 (tdesc_create_struct, tdesc_set_struct_size, tdesc_create_flags): New.
8777 (tdesc_add_field): Handle TDESC_TYPE_STRUCT.
8778 (tdesc_add_bitfield, tdesc_add_flag): New.
8779 * target-descriptions.h (tdesc_create_struct, tdesc_set_struct_size)
8780 (tdesc_create_flags, tdesc_add_bitfield, tdesc_add_flag): Declare.
8781 * xml-tdesc.c (struct tdesc_parsing_data): Rename current_union to
8782 current_type. Add current_type_size and current_type_is_flags.
8783 (tdesc_start_union): Clear the new fields.
8784 (tdesc_start_struct, tdesc_start_flags): New.
8785 (tdesc_start_field): Handle struct fields, including bitfields.
8786 (field_attributes): Make type optional. Add start and end.
8787 (union_children): Rename to struct_union_children.
8788 (union_attributes): Rename to struct_union_attributes. Add optional
8789 size.
8790 (flags_attributes): New.
8791 (feature_children): Add struct and flags.
8792 * features/gdb-target.dtd: Add flags and struct to features.
8793 Make field type optional. Add field start and end.
8794
90884b2b
L
87952010-03-01 H.J. Lu <hongjiu.lu@intel.com>
8796
8797 * amd64-linux-nat.c (AMD64_LINUX_USER64_CS): New.
8798 (amd64_linux_read_description): Likewise.
8799 (_initialize_amd64_linux_nat): Set to_read_description to
8800 amd64_linux_read_description.
8801
8802 * amd64-linux-tdep.c: Include "features/i386/amd64-linux.c".
8803 (amd64_linux_register_name): Removed.
8804 (amd64_linux_register_type): Likewise.
8805 (amd64_linux_core_read_description): New.
8806 (amd64_linux_init_abi): Set target description to
8807 tdesc_amd64_linux if needed. Support orig_rax in target
8808 description. Don't call set_gdbarch_register_name nor
8809 set_gdbarch_register_type. Call
8810 set_gdbarch_core_read_description.
8811 (_initialize_amd64_linux_tdep): Call
8812 initialize_tdesc_amd64_linux.
8813
8814 * amd64-linux-tdep.h (tdesc_amd64_linux): New.
8815
8816 * amd64-tdep.c: Include "features/i386/amd64.c".
8817 (amd64_register_names): Removed.
8818 (amd64_register_name): Likewise.
8819 (amd64_register_type): Likewise.
8820 (amd64_init_abi): Set num_core_regs and register_names. Set
8d95cc3b 8821 target description to tdesc_amd64 if needed. Don't call
90884b2b
L
8822 set_gdbarch_register_name nor set_gdbarch_register_type.
8823 (_initialize_amd64_tdep): New.
8824
8825 * i386-linux-nat.c (i386_linux_read_description): New.
8826 (_initialize_i386_linux_nat): Set to_read_description to
8827 i386_linux_read_description.
8828
8829 * i386-linux-tdep.c: Include "features/i386/i386-linux.c".
8830 (i386_linux_register_name): Removed.
8831 (i386_linux_core_read_description): New.
8832 (i386_linux_read_description): Likewise.
8833 (i386_linux_init_abi): Don't call set_gdbarch_register_name.
8834 Set target description to tdesc_i386_linux if needed. Support
8835 orig_eax. Set register_reggroup_p. Call
8836 set_gdbarch_core_read_description.
8837 (_initialize_i386_linux_tdep): Call initialize_tdesc_i386_linux.
8838
8839 * i386-linux-tdep.h (tdesc_i386_linux): New.
8840
8841 * i386-nto-tdep.c (i386nto_regset_id): Replace I386_NUM_FREGS
8842 with I387_NUM_REGS.
8843
8844 * i386-tdep.c: Include "features/i386/i386.c".
8845 (i386_register_names): Make it const.
8846 (i386_mmx_names): Likewise.
8847 (i386_num_register_names): Removed.
8848 (i386_register_name): Likewise.
8849 (i386_eflags_type): Likewise.
8850 (i386_mxcsr_type): Likewise.
8851 (i386_sse_type): Likewise.
8852 (i386_register_type): Likewise.
8853 (i387_ext_type): Call tdesc_find_type instead of arch_float_type.
8854 (i386_pseudo_register_name): New.
8855 (i386_pseudo_register_type): Likewise.
8856 (i386_mmx_type): Make it static.
8857 (i386_gdbarch_init): Check arch. Replace I386_NUM_FREGS with
8858 I387_NUM_REGS. Set num_core_regs and register_names. Don't
8859 call set_gdbarch_register_name nor set_gdbarch_register_type.
8860 Set register_reggroup_p. Set target description to tdesc_i386
8861 if needed. Call set_tdesc_pseudo_register_type,
8862 set_tdesc_pseudo_register_name and tdesc_use_registers.
8863 (_initialize_i386_tdep): Call initialize_tdesc_i386.
8864 initialize_tdesc_x86_64.
8865
8866 * i386-tdep.h (gdbarch_tdep): Remove i386_eflags_type,
8867 i386_mxcsr_type and i386_sse_type. Add num_core_regs,
8868 register_names, tdesc and register_reggroup_p.
8869 (I386_NUM_FREGS): Removed.
8870 (i386_eflags_type): Likewise.
8871 (i386_mxcsr_type): Likewise.
8872 (i386_mmx_type): Likewise.
8873 (i386_sse_type): Likewise.
8874 (i386_register_name): Likewise.
8875 (i386_regnum): Add I386_MXCSR_REGNUM.
8876 (I386_SSE_NUM_REGS): Defined with I386_MXCSR_REGNUM.
8877
8878 * i387-tdep.h (I387_NUM_REGS): New.
8879
8880 * regformats/i386/i386-linux.dat: Generated.
8881 * regformats/i386/i386.dat: Likewise.
8882 * regformats/i386/amd64-linux.dat: Likewise.
8883 * regformats/i386/amd64.dat: Likewise.
8884
8885 * regformats/reg-i386-linux.dat: Removed.
8886 * regformats/reg-i386.dat: Likewise.
8887 * regformats/reg-x86-64-linux.dat: Likewise.
8888 * regformats/reg-x86-64.dat: Likewise.
8889
d0d0ab16
CV
88902010-03-01 Corinna Vinschen <vinschen@redhat.com>
8891
8892 * remote-fileio.c (remote_fileio_func_rename): Use Cygwin 1.7
8893 cygwin_conv_path API rather than the deprecated
8894 cygwin_conv_to_full_posix_path.
8895 * windows-nat.c:
8896 (GetModuleFileNameExA): Undefine for Cygwin.
8897 (GetModuleFileNameExW): Define for Cygwin.
8898 (get_module_name): Change size of pathbuf to PATH_MAX for Cygwin.
8899 Call GetModuleFileNameExW and convert path to POSIX using
8900 cygwin_conv_path.
8901 (windows_make_so): Always define p. Drop unused variable m.
8902 Don't use Win32 functions to check file existance, rather use
8903 access on Cygwin. Fetch system directory using GetSystemDirectoryW.
8904 Use canonicalize_file_name to get full path.
8905 (get_image_name): Use wcstombs, rather than WideCharToMultiByte
8906 to convert Unicode pathname to multibyte on Cygwin. Otherwise,
8907 use correct target buffer size in call to WideCharToMultiByte.
8908 (handle_load_dll): Change size of dll_buf to PATH_MAX for Cygwin.
8909 (windows_pid_to_exec_file): Change size of path to PATH_MAX for Cygwin.
8910 (windows_create_inferior): Convert all paths and arguments to wchar_t
8911 and use CreateProcessW on Cygwin.
8912 (_initialize_windows_nat): Disable DOS-style path warning on Cygwin.
8913 (bad_GetModuleFileNameExA): Undefine for Cygwin.
8914 (bad_GetModuleFileNameExW): Define for Cygwin.
8915 (_initialize_loadable): Load GetModuleFileNameExW into
8916 dyn_GetModuleFileNameExW on Cygwin. Don't load ANSI function on Cygwin.
8917
dc00d89f
PM
89182010-02-28 Phil Muldoon <pmuldoon@redhat.com>
8919
8920 PR python/11036
8921 * python/py-frame.c (frapy_read_var): Add block argument and logic
8922 to cope with user provided blocks.
8923
0e095b7e
JK
89242010-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8925
8926 * infcall.c (call_function_by_hand): Remove gdb_assert on sp and old_sp.
8927 New comment.
8928
2f9e05b4
CV
89292010-02-28 Corinna Vinschen <vinschen@redhat.com>
8930
8931 * Makefile.in (SUBDIR_MI_OBS): Move mi-common.o from here...
8932 (COMMON_OBS): ... to here since it's used unconditionally.
8933 (SUBDIR_MI_SRCS): Move mi/mi-common.c from here...
8934 (SFILES): To here.
8935
eb195664
DD
89362010-02-26 David Daney <ddaney@caviumnetworks.com>
8937
8938 * mips-linux-tdep.c: Update struct sigframe comments.
8939 (SIGFRAME_CODE_OFFSET): Delete macro.
8940 (mips_linux_o32_sigframe_init): Calculate sigcontext_base using
8941 this_frame's sp.
8942 (mips_linux_n32n64_sigframe_init): Same.
8943
97b0f3e2
KB
89442010-02-26 Kevin Buettner <kevinb@redhat.com>
8945
8946 * remote-mips.c (mips_load): Don't use pseudo-register when
8947 invalidating regcache.
8948
4069ebbe
DJ
89492010-02-26 Daniel Jacobowitz <dan@codesourcery.com>
8950
8951 * arm-tdep.c (thumb_get_next_pc): Correct conditional branch opcode.
8952
05071a4d
PA
89532010-02-26 Pedro Alves <pedro@codesourcery.com>
8954
8955 * NEWS: Add "New targets" section, and mention ARM Symbian
8956 support.
8957
6063c216
UW
89582010-02-26 Ulrich Weigand <uweigand@de.ibm.com>
8959
8960 * dwarf2loc.c (struct piece_closure): Remove ARCH member,
8961 add ADDR_SIZE member.
8962 (allocate_piece_closure): Update.
8963 (copy_pieced_value_closure): Likewise.
8964 (dwarf2_evaluate_loc_desc): Likewise.
8965 (read_pieced_value): Use DWARF address size instead of
8966 GDB's gdbarch_addr_bit as size of values on the DWARF stack.
8967
5107b149 89682010-02-26 Phil Muldoon <pmuldoon@redhat.com>
c8d5aac9 8969 Tom Tromey <tromey@redhat.com>
5107b149
PM
8970
8971 * python/py-type.c (typy_lookup_typename): Add in block argument.
8972 If provided restrict lookup to specified blocks.
8973 (gdbpy_lookup_type): Likewise.
8974 (typy_lookup_type): Likewise.
8975
78664fa3 89762010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8d95cc3b 8977
78664fa3
PA
8978 Symbian config
8979
8980 gdb/
8981 * arm-symbian-tdep.c: New.
8982 * configure.tgt (arm*-*-symbianelf*): New target.
8983 (*-*-symbianelf*): New OS.
8984 * osabi.c (gdb_osabi_names): Add Symbian.
8985 * defs.h (gdb_osabi): Add GDB_OSABI_SYMBIAN.
8986 * Makefile.in (ALL_TARGET_OBJS): Add arm-symbian-tdep.o.
8987 (ALLDEPFILES): Add arm-symbian-tdep.c.
8988
eb73e134
DJ
89892010-02-25 Daniel Jacobowitz <dan@codesourcery.com>
8990
8991 * symfile.c (find_lowest_section): Include SEC_ALLOC sections.
8992
46ef47e5
PA
89932010-02-24 Pedro Alves <pedro@codesourcery.com>
8994
8995 * mi/mi-main.c (mi_cmd_execute): Fix typo.
8996
f3e9a817 89972010-02-24 Phil Muldoon <pmuldoon@redhat.com>
8d95cc3b 8998 Tom Tromey <tromey@redhat.com>
f3e9a817
PM
8999 Thiago Jung Bauermann <bauerman@br.ibm.com>
9000
9001 * python/python.c (_initialize_python): Call
9002 gdbpy_initialize_symtabs, gdbpy_initialize_symbols and
9003 gdbpy_initialize_blocks.
9004 * python/python-internal.h: Declare struct symbol, block and
9005 symtab_and_line. Declare block_object_type and
9006 symbol_object_type
9007 (gdbpy_lookup_symbol gdbpy_block_for_pc)
9008 (symtab_and_line_to_sal_object, symtab_to_symtab_object)
9009 (symbol_to_symbol_object, block_to_block_object)
9010 (gdbpy_initialize_symtabs,gdbpy_initialize_symbols)
9011 (gdbpy_initialize_blocks ): Declare.
9012 * python/py-frame.c (frapy_block, frapy_function, frapy_find_sal)
9013 (frapy_select): Add methods.
9014 (frapy_read_var): Add symbol branch.
9015 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-symbol, py-symtab,
9016 py-block.
9017 (SUBDIR_PYTHON_SRCS): Likewise.
9018 (py-symbol.o): New rule.
9019 (py-symtab.o): Likewise.
9020 (py-block.o): Likewise.
9021 * python/py-symbol.c: New file.
9022 * python/py-symtab.c: Likewise.
9023 * python/py-block.c: Likewise.
9024
24291992
PA
90252010-02-24 Pedro Alves <pedro@codesourcery.com>
9026
9027 PR gdb/11321
9028
9029 * inferior.h (prepare_for_detach): Declare.
9030 (struct inferior) <detaching>: New field.
9031 * infrun.c (prepare_for_detach): New.
9032 (handle_inferior_event) <random signal>: Don't stop if detaching.
9033 * target.c (target_detach): Call prepare_for_detach.
9034
fc1cf338
PA
90352010-02-24 Pedro Alves <pedro@codesourcery.com>
9036
9037 Per-process displaced stepping queue.
9038
9039 * infrun.c (displaced_step_ptid, displaced_step_request_queue)
9040 (displaced_step_gdbarch, displaced_step_closure,
9041 (displaced_step_original, displaced_step_copy): Move globals to
9042 this...
9043 (struct displaced_step_inferior_state): ... new structure.
9044 (displaced_step_inferior_states): New global.
9045 (get_displaced_stepping_state, add_displaced_stepping_state)
9046 (remove_displaced_stepping_state, infrun_inferior_exit): New
9047 functions.
9048 (displaced_step_clear): Add displaced_step_inferior_state
9049 parameter, and adjust to handle it.
9050 (displaced_step_clear_cleanup): Parameter is now a
9051 displaced_step_inferior_state. Adjust.
9052 (displaced_step_prepare): Adjust.
9053 (displaced_step_fixup, displaced_step_fixup)
9054 (infrun_thread_ptid_changed, resume): Adjust.
9055 (init_wait_for_inferior): Don't call displaced_step_clear.
9056 (infrun_thread_stop_requested): Rewrite.
9057 (_initialize_infrun): Install infrun_inferior_exit as
9058 inferior_exit observer.
9059
0723dbf5
PA
90602010-02-24 Pedro Alves <pedro@codesourcery.com>
9061
9062 * inferior.h (ptid_match): Declare.
9063 * infrun.c (ptid_match): New.
9064 * remote.c (queued_stop_reply): Rewrite and use ptid_match.
9065 (handle_notification): Add debug output.
9066 * linux-nat.c (ptid_match): Delete.
9067
09de9781
DM
90682010-02-24 David S. Miller <davem@davemloft.net>
9069
9070 * gdb_ptrace.h (PT_SYSCALL): If PTRACE_SYSCALL is available, use it.
9071 * syscalls/sparc-linux.xml: New.
9072 * syscalls/sparc64-linux.xml: New.
9073 * Makefile.in (XML_SYSCALL_FILES): Add new syscall XML files.
9074 * sparc-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC32): Define.
9075 (sparc32_linux_get_syscall_number): New function.
9076 (sparc32_linux_init_abi): Set syscall XML file name and hook up
9077 syscall number fetcher.
9078 * sparc64-linux-tdep.c (XML_SYSCALL_FILENAME_SPARC64): Define.
9079 (sparc64_linux_get_syscall_number): New function.
9080 (sparc64_linux_init_abi): Set syscall XML file name and hook up
9081 syscall number fetcher.
9082
a79b8f6e
VP
90832010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9084
9085 Multiexec MI
9086
9087 * breakpoint.c (clear_syscall_counts): Take struct inferior*.
9088 * inferior.c (add_inferior_silent): Notify inferior_added
9089 observer.
9090 (delete_inferior_1): Notify inferior_removed observer.
9091 (exit_inferior_1): Pass inferior, not pid, to observer.
9092 (inferior_appeared): Likewise.
9093 (add_inferior_with_spaces): New.
9094 (add_inferior_command): Use the above.
9095 * inferior.h (delete_inferior_1, add_inferior_with_spaces):
9096 Declare.
9097
9098 * inflow.c (inflow_inferior_exit): Likewise.
9099 * jit.c (jit_inferior_exit_hook): Likewise.
9100
9101 * mi/mi-cmds.c (mi_cmds): Register add-inferior and
9102 remove-inferior.
9103 * mi/mi-cmds.h (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9104 * mi/mi-interp.c (mi_inferior_added, mi_inferior_removed): New.
9105 (report_initial_inferior): New.
9106 (mi_inferior_removed): Register the above. Make sure
9107 inferior_added observer is called on the first inferior.
9108 (mi_new_thread, mi_thread_exit): Thread group is now identified by
9109 inferior number, not pid.
9110 (mi_solib_loaded, mi_solib_unloaded): Report which inferiors are
9111 affected.
9112 * mi/mi-main.c (current_context): New.
9113 (proceed_thread_callback): Use typed closure.
9114 Proceed everything if pid is 0. Most implementation split into
9115 (proceed_thread): ... this.
9116 (run_one_inferior): New.
9117 (mi_cmd_exec_continue, mi_cmd_exec_interrupt, mi_cmd_exec_run):
9118 Adjust for multiexec behaviour.
9119 (mi_cmd_add_inferior, mi_cmd_remove_inferior): New.
9120 (mi_cmd_execute): Handle the 'thread-group' option here.
9121 Do some extra checks.
9122 * mi-parse.c (mi_parse): Handle the --all and --thread-group
9123 options.
9124 * mi-parse.h (struct mi_parse): New fields all and thread_group.
9125
115d30f9
VP
91262010-02-24 Vladimir Prus <vladimir@codesourcery.com>
9127
9128 Make -exec-run a proper MI commands.
9129
9130 * mi/mi-cmds.h (mi_cmd_exec_run): Declare.
9131 * mi/mi-cmds.c (mi_cmds): Adjust.
9132 * mi/mi-main.c (mi_cmd_exec_run): New.
9133
06cd862c
PA
91342010-02-24 Pedro Alves <pedro@codesourcery.com>
9135 Stan Shebs <stan@codesourcery.com>
9136
9137 * tracepoint.h (set_traceframe_number)
9138 (cleanup_restore_current_traceframe): Declare.
9139 * tracepoint.c (set_traceframe_number): New.
9140 (struct current_traceframe_cleanup): New.
9141 (do_restore_current_traceframe_cleanup)
9142 (restore_current_traceframe_cleanup_dtor)
9143 (make_cleanup_restore_current_traceframe): New.
9144 * infrun.c: Include tracepoint.h.
9145 (fetch_inferior_event): Switch out and in of tfind mode.
9146
ab92d69b
PA
91472010-02-24 Pedro Alves <pedro@codesourcery.com>
9148
9149 * breakpoint.c (breakpoint_init_inferior): Also delete
9150 bp_shlib_event breakpoints.
9151 * solib-frv.c (enable_break): Remove call to
9152 remove_solib_event_breakpoints.
9153 * solib-svr4.c (enable_break): Ditto.
9154 * solib-darwin.c (darwin_solib_create_inferior_hook): Ditto.
9155 * solib-pa64.c (pa64_solib_create_inferior_hook): Ditto.
9156 * solib-som.c (som_solib_create_inferior_hook): Ditto.
9157 * solib-spu.c (spu_enable_break): Ditto.
9158
e707a91d
PA
91592010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9160
9161 * c-exp.y (token_and_value): s/union YYSTYPE/YYSTYPE.
9162
cfce2ea2
PA
91632010-02-23 Harald Koenig <H.Koenig@science-computing.de>
9164
9165 * varobj.c (varobj_update): Avoid non-constants in initializers.
9166
05566b3b
TT
91672010-02-23 Tom Tromey <tromey@redhat.com>
9168
9169 * dwarf2loc.c (read_pieced_value) <DWARF_VALUE_STACK>: Correctly
9170 handle big-endian values.
9171 (dwarf2_evaluate_loc_desc) <DWARF_VALUE_STACK>: Likewise.
9172
85d721b8
PA
91732010-02-22 Pedro Alves <pedro@codesourcery.com>
9174
9175 PR9605
9176
9177 gdb/
9178 * breakpoint.c (insert_bp_location): If inserting the read
9179 watchpoint failed, fallback to an access watchpoint.
9180 (bpstat_check_watchpoint): Stop for read watchpoint triggers even
9181 if the value changed, if not watching the same memory for writes.
9182 (watchpoint_locations_match): Add comment.
9183 (update_global_location_list): Copy the location's watchpoint type.
9184 * i386-nat.c (i386_length_and_rw_bits): It's an internal error to
9185 handle read watchpoints here.
9186 (i386_insert_watchpoint): Read watchpoints aren't supported.
9187 * remote.c (remote_insert_watchpoint): Return 1 for unsupported
9188 packets.
9189 * target.h (target_insert_watchpoint): Update description.
9190
48ea67a7
TT
91912010-02-19 Tom Tromey <tromey@redhat.com>
9192
9193 * p-typeprint.c (pascal_type_print_varspec_prefix): Update.
9194 * m2-typeprint.c (m2_print_type): Update.
9195 * gdbtypes.c (recursive_dump_type): Update.
9196 (copy_type_recursive): Update.
9197 * c-typeprint.c (c_type_print_varspec_prefix): Update.
9198 (c_type_print_base): Update.
9199 * gdbtypes.h (TYPE_CODE_TEMPLATE, TYPE_CODE_TEMPLATE_ARG):
9200 Remove.
9201 (struct cplus_struct_type) <ntemplate_args>: Remove.
9202 <struct template_arg>: Remove.
9203 <is_dynamic>: Move earlier.
9204 (TYPE_TEMPLATE_ARGS): Remove.
9205 (TYPE_NTEMPLATE_ARGS): Remove.
9206 (TYPE_TEMPLATE_ARG): Remove.
9207
48e32051
TT
92082010-02-19 Tom Tromey <tromey@redhat.com>
9209
9210 PR c++/8693, PR c++/9496:
9211 * cp-namespace.c (cp_lookup_nested_type): Handle TYPE_CODE_UNION.
9212 * c-exp.y (lex_one_token): Rename from yylex. Don't call
9213 write_dollar_variable. Don't try to classify NAME tokens.
9214 (token_and_value): New type.
9215 (token_fifo, popping, name_obstack): New globals.
9216 (classify_name): New function.
9217 (classify_inner_name): Likewise.
9218 (yylex): Likewise.
9219 (VARIABLE): Now has type sval.
9220 (exp : VARIABLE): Call write_dollar_variable.
9221 (qualified_name): Use TYPENAME, not typebase. Add production for
9222 multiple "::" instances.
9223 (variable): Use name_not_typename.
9224 (qualified_type): Remove.
9225 (typebase): Update.
9226
672d9c23
JK
92272010-02-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9228
9229 * symfile.c (addr_info_make_relative): Extend comment. Move SECT to
9230 a more inner block. Initialize ADDR by LOWER_OFFSET only if it was
9231 found by bfd_get_section_by_name.
9232 * symfile.h (struct section_addr_info) <sectindex>: New comment.
9233
bfbf3774
JB
92342010-02-19 Joel Brobecker <brobecker@adacore.com>
9235
9236 * NEWS: Add new "[...] since 7.1" section. Rename the "[...] since
9237 7.0 section" into "Changes in 7.1".
9238
6756b09b 92392010-02-19 Joel Brobecker <brobecker@adacore.com>
9240
9241 GDB 7.1 branch created (branch timestamp: 2010-02-18 20:00 UTC)
9242 * version.in: Bump version to 7.1.50.20100219-cvs.
9243
202b96c1
PA
92442010-02-18 Harald Koenig <H.Koenig@science-computing.de>
9245
9246 * mi/mi-main.c (mi_cmd_exec_jump): Drop unneeded `return'.
9247 * symfile.c (symfile_map_offsets_to_segments): Fix assertion.
9248
de2e5182
TT
92492010-02-17 Tom Tromey <tromey@redhat.com>
9250
9251 * NEWS: Add Python API Improvements section.
9252
7280022e
DJ
92532010-02-18 Daniel Jacobowitz <dan@codesourcery.com>
9254
9255 * NEWS: Correct typo.
9256
6f451e5e
TT
92572010-02-17 Tom Tromey <tromey@redhat.com>
9258
9259 * objfiles.c (gdb_bfd_ref): Handle abfd==NULL.
9260
012836ea
JK
92612010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9262
9263 * symfile.c (build_section_addr_info_from_objfile): Include sections
9264 only if they are SEC_ALLOC or SEC_LOAD.
9265
d182d057
L
92662010-02-17 H.J. Lu <hongjiu.lu@intel.com>
9267
9268 PR shlibs/11293
9269 * solib-svr4.c (enable_break): Check size of CORE_ADDR instead
9270 of ULONGEST for address size.
9271
4eef138c
TT
92722010-02-17 Tom Tromey <tromey@redhat.com>
9273
9274 * NEWS: Add C++ improvements section.
9275
548a926a
UW
92762010-02-17 Ulrich Weigand <uweigand@de.ibm.com>
9277
9278 * python/python-internal.h [!WITH_THREAD] (PyGILState_Release,
9279 PyThreadState_Swap): Avoid "statement with no effect" warning.
9280
ad3a0e5b
JK
92812010-02-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9282
9283 * solib-svr4.c (enable_break <target_auxv_search>): New variable
9284 addr_bit. Adjust LOAD_ADDR sign for cross-arch inferiors.
9285
243e2c5d 92862010-02-17 Tristan Gingold <gingold@adacore.com>
b2319725 9287 Petr Hluzin <petr.hluzin@gmail.com>
243e2c5d
TG
9288
9289 * avr-tdep.c (avr_scan_prologue): Convert an if statement to a
9290 gdb_assert. Fix info->size for SIG prologue.
9291
275f2e57
DJ
92922010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9293
9294 * infcmd.c (show_inferior_tty_command): Check for NULL.
9295 Correct output message.
9296
791dfb64
DJ
92972010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9298
9299 * linespec.c (decode_line_1): Handle FILE:FUNCTION even if
9300 FUNCTION contains parentheses. Improve removal of a trailing
9301 single quote.
9302
14d1346b
DJ
93032010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9304
9305 * gcore.c (do_bfd_delete_cleanup): New function.
9306 (gcore_command): Use it. Discard the cleanup after success.
9307 (gcore_copy_callback): Delete dead code.
9308
e76ab67f
DJ
93092010-02-16 Daniel Jacobowitz <dan@codesourcery.com>
9310
9311 * symfile.c (addr_info_make_relative): Always use
9312 find_lowest_section.
9313
71dee663
SW
93142010-02-16 Sami Wagiaalla <swagiaal@redhat.com>
9315
9316 * NEWS: Added entry for namespace fixes.
9317
a9854bd5
TT
93182010-02-15 Tom Tromey <tromey@redhat.com>
9319
9320 * dwarf2read.c (guess_structure_name): Allocate name on the
9321 objfile obstack.
9322
fd9e29b5
TT
93232010-02-15 Tom Tromey <tromey@redhat.com>
9324
9325 * c-typeprint.c (c_type_print_base): Reverse order of test.
9326
4e1fc9c9
JK
93272010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9328
9329 * solib-svr4.c (LM_ADDR_CHECK): New variable minpagesize. Optionally
9330 initialize it from ELF BFD. Extend the prelink condition by it.
9331
74164c56
JK
93322010-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
9333
9334 * defs.h (parse_pid_to_attach): New.
9335 * utils.c (parse_pid_to_attach): New.
9336 * darwin-nat.c (darwin_attach): Replace ARGS parsing by parse_pid.
9337 * gnu-nat.c (gnu_attach): Likewise.
9338 * nto-procfs.c (procfs_attach): Likewise.
9339 * procfs.c (procfs_attach): Likewise.
9340 * windows-nat.c (windows_attach): Likewise.
9341 * inf-ptrace.c (inf_ptrace_attach): Likewise. Remove variable dummy.
9342 * inf-ttrace.c (inf_ttrace_attach): Likewise.
9343 * remote.c (extended_remote_attach_1): Likewise. New comment on getpid
9344 check.
9345
bf6adea8
MM
93462010-02-14 Masaki Muranaka <monaka@monami-software.com>
9347
9348 * MAINTAINERS: Add myself for write after approval privileges.
9349
28f34a8f
JK
93502010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9351
9352 * solib-svr4.c: (LM_ADDR_CHECK): Move variable align to a more inner
9353 block.
9354
701ed6dc
JK
93552010-02-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9356
9357 * solib-svr4.c: (LM_ADDR_CHECK): Print successful prelink adjustment
9358 only if INFO_VERBOSE.
9359
e5829bee
MS
93602010-02-12 Tomas Holmberg <th@virtutech.com>
9361
9362 * mi/mi-main.c: Added the --reverse flag to the following MI
9363 commands: exec-continue, exec-finish, exec-next, exec-step,
9364 exec-next-instruction, exec-step-instruction. This is to
9365 support reverse execution over the MI interface to gdb.
9366
081dfbf7
PA
93672010-02-12 Pedro Alves <pedro@codesourcery.com>
9368
9369 * tracepoint.c (_initialize_tracepoint): Specify that the address
9370 range of `tfind outsize' is exclusive, and that the address range
9371 of `tfind range' is inclusive, in the commands' help strings.
9372
ecc13e53
JB
93732010-02-12 Joel Brobecker <brobecker@adacore.com>
9374
9375 Spurious "dll not found" error messages on x64-windows.
9376 * windows-nat.c: Add include of complaints.h.
9377 (handle_unload_dll): Change dll-not-found error into a complaint.
9378
15c3d785
PA
93792010-02-12 Pedro Alves <pedro@codesourcery.com>
9380
9381 * breakpoint.c (allocate_bp_location): Use bp_loc_other for
9382 bp_tracepoint and bp_fast_tracepoint, not
9383 bp_loc_software_breakpoint.
9384 (update_global_location_list): Tracepoints are never duplicates of
9385 anything.
9386
fd9b8c24
PA
93872010-02-12 Pedro Alves <pedro@codesourcery.com>
9388
9389 * breakpoint.c (break_command_really): Change return type to int.
9390 Return false if no breakpoint was created, true otherwise.
9391 (trace_command): Don't set the tracepoint count if no tracepoint
9392 was created.
9393 (ftrace_command): Ditto.
9394 (create_tracepoint_from_upload): Bail out if the tracepoint wasn't
9395 created in the breakpoints table.
9396
5c0d192f
JK
93972010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9398 Ulrich Weigand <uweigand@de.ibm.com>
9399
9400 * solib-svr4.c (LM_ADDR_CHECK): New comment on PPC-aware condition.
9401
5d5b640e
PA
94022010-02-11 Pedro Alves <pedro@codesourcery.com>
9403
9404 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out if
9405 the offset value isn't of integral type.
9406
e5a0a904
JK
94072010-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9408
9409 * breakpoint.c (delete_breakpoint) <bpt->related_breakpoint != NULL>:
9410 New.
9411
be636754
PA
94122010-02-11 Pedro Alves <pedro@codesourcery.com>
9413
9414 * ax-gdb.c (gen_exp_binop_rest) [BINOP_SUBSCRIPT]: Error out on
9415 non-subscriptable types.
9416 * valarith.c (binop_types_user_defined_p): New, abstracted out
9417 from ...
9418 (binop_user_defined_p): ... this.
9419 * value.h (binop_types_user_defined_p): Declare.
9420
10ef8d6a
PA
94212010-02-11 Pedro Alves <pedro@codesourcery.com>
9422
9423 * tracepoint.c (tfile_open): Remove spurious discard_cleanups.
9424 Merge uploaded TSVs before merging uploaded tracepoints.
9425
b1028c8e
PA
94262010-02-11 Pedro Alves <pedro@codesourcery.com>
9427
9428 * ax-gdb.c (gen_deref): Don't allow dereferencing void pointers.
9429
7a93fb82 94302010-02-11 Vladimir Prus <vladimir@codesourcery.com>
84d90c10 9431
7a93fb82
VP
9432 * mi/mi-cmd-stack.c (mi_cmd_stack_list_locals): Add extra
9433 whitespace character after a dot in comment.
9434 (mi_cmd_stack_list_arguments, mi_cmd_stack_list_variables):
9435 Likewise.
9436 (list_args_or_locals): For the 'all' (that is
9437 -stack-list-variables) case, always output list of tuples.
9438 Output 'arg' field if variable is argument.
84d90c10 9439
92981e24
TT
94402010-02-10 Tom Tromey <tromey@redhat.com>
9441
9442 * parser-defs.h (parser_debug): Declare.
9443 * parse.c (_initialize_parse): Install "debug parser" set/show
9444 command.
9445 (parser_debug): New global.
9446 (show_parserdebug): New function.
9447 * c-exp.y (c_parse): Set yydebug.
9448
9fd3625f
L
94492010-02-10 H.J. Lu <hongjiu.lu@intel.com>
9450
9451 * target-descriptions.c (tdesc_type): Add TDESC_TYPE_I387_EXT,
9452 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9453 (tdesc_predefined_types): Add i387_ext, i386_eflags and
9454 i386_mxcsr.
9455 (tdesc_find_type): New.
9456 (tdesc_gdb_type): Use tdesc_find_type. Handle TDESC_TYPE_I387_EXT,
9457 TDESC_TYPE_I386_EFLAGS and TDESC_TYPE_I386_MXCSR.
9458
9459 * target-descriptions.h (tdesc_find_type): New.
9460
2fe842e5
MS
94612010-02-10 Michael Snyder <msnyder@vmware.com>
9462
9463 * gdb-gdb.py: Comment fix.
9464
f18b4cab
TG
94652010-02-09 Tristan Gingold <gingold@adacore.com>
9466
9467 * machoread.c (macho_symfile_relocate): New function.
9468 (macho_sym_fns): Use macho_symfile_relocate instead of
9469 default_symfile_relocate.
9470 (macho_oso_data): New type.
9471 (current_oso): New variable.
9472 (macho_add_oso_symfile): Do not compute section_addr_info, but
9473 instead set vma of sections.
9474 Do not set SYMFILE_VERBOSE to call symbol_file_add_from_bfd.
9475 Set and clear current_oso.
9476
31dbc1c5
JB
94772010-02-09 Joel Brobecker <brobecker@adacore.com>
9478
9479 Wrong type description for tagged type parameter.
9480 * ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: When noside is
9481 EVAL_AVOID_SIDE_EFFECTS, also handle the case when type is a
9482 reference to a tagged type.
9483
399f313b
TG
94842010-02-09 Tristan Gingold <gingold@adacore.com>
9485
9486 * objfiles.c (objfile_separate_debug_iterate): Do not iterate on
9487 brothers of the parent.
9488
714f19d5
TT
94892010-02-08 Tom Tromey <tromey@redhat.com>
9490
9491 PR c++/8017:
9492 * value.h: Update.
9493 * valops.c (search_struct_field): Make 'name' const.
9494 (search_struct_method): Likewise.
9495 (find_method_list): Make 'method' const.
9496 (value_struct_elt): Make 'name' and 'err' const.
9497 (value_find_oload_method_list): Make 'method' const.
9498 (find_overload_match): Make 'name' const.
9499 * eval.c (evaluate_subexp_standard): New locals function,
9500 function_name.
9501 <OP_FUNCALL>: Handle OP_SCOPE specially.
9502
de0a0249
UW
95032010-02-08 Ulrich Weigand <uweigand@de.ibm.com>
9504
9505 * infrun.c (handle_inferior_event): Do not look up regcache
9506 for exited processes.
9507
8d95cc3b 95082010-02-08 Chris Moller <moller@mollerware.com>
83b10087
CM
9509
9510 PR gdb/10728
9511 * valarith.c (value_ptrdiff): Added a test for a zero type length,
8d95cc3b 9512 warn if found, and assume length = 1.
83b10087 9513
99903ae3
CM
95142010-02-08 Chris Moller <cmoller@redhat.com>
9515
9516 PR gdb/9067
9517 * cp-valprint.c (cp_print_value_fields) Fix use of obstacks.
6036c742 9518 (cp_print_static_field) Fix use of obstacks.
8d95cc3b 9519
e3e9f5a2
PA
95202010-02-08 Pedro Alves <pedro@codesourcery.com>
9521
9522 * linux-nat.c (linux_nat_resume): In non-stop, also only tag
9523 resumed LWPs as resumed.
9524 (linux_nat_wait_1): If there's no resumed LWP in the set of LWPs
9525 we're waiting for, bail out with TARGET_WAITKIND_IGNORE, instead
9526 of throwing an internal error. If an LWP of a process we're not
9527 waiting for reports a signal, don't force collecting a SIGSTOP,
9528 and if it was breakpoint hit in non-stop mode, cancel it. Don't
9529 go through all LWPs cancelling breakpoints in non-stop mode.
9530 (resume_stopped_resumed_lwps): New.
9531 (linux_nat_wait): Use it.
9532
46763423
L
95332010-02-07 H.J. Lu <hongjiu.lu@intel.com>
9534
9535 * features/Makefile (WHICH): Add i386/i386, i386/i386-linux,
9536 i386/amd64 and i386/amd64-linux.
9537 (i386/i386-expedite): New.
9538 (i386/i386-linux-expedite): Likewise.
9539 (i386/amd64-expedite):Likewise.
9540 (i386/amd64-linux-expedite): Likewise.
9541 ($(outdir)/i386/i386-linux.dat): Likewise.
9542 ($(outdir)/i386/amd64.dat): Likewise.
9543 ($(outdir)/i386/amd64-linux.dat): Likewise.
9544
9545 * features/i386/32bit-core.xml: New.
9546 * features/i386/32bit-linux.xml: Likewise.
9547 * features/i386/32bit-sse.xml: Likewise.
9548 * features/i386/64bit-core.xml: Likewise.
9549 * features/i386/64bit-linux.xml: Likewise.
9550 * features/i386/64bit-sse.xml: Likewise.
9551 * features/i386/i386-linux.xml: Likewise.
9552 * features/i386/i386.xml: Likewise.
9553 * features/i386/amd64-linux.xml: Likewise.
9554 * features/i386/amd64.xml: Likewise.
9555 * features/i386/i386-linux.c: Likewise.
9556 * features/i386/i386.c: Likewise.
9557 * features/i386/amd64-linux.c: Likewise.
9558 * features/i386/amd64.c: Likewise.
9559
82856980
SW
95602010-02-05 Sami Wagiaalla <swagiaal@redhat.com>
9561
9562 PR c++/7935:
9563 * cp-support.h: Added char* alias element to using_direct data
9564 struct.
9565 (cp_add_using): Added char* alias argument.
9566 (cp_add_using_directive): Ditto.
9567 * cp-namespace.c: Updated with the above changes.
9568 (cp_lookup_symbol_imports): Check for aliases.
9569 * dwarf2read.c (read_import_statement): Figure out local alias
9570 for the import and pass it on to cp_add_using.
9571 (read_namespace): Pass alias argument to cp_add_using.
9572
d18b8b7a
HZ
95732010-02-05 Hui Zhu <teawater@gmail.com>
9574
9575 * defs.h (gdb_bfd_errmsg): New extern.
9576 * exec.c (exec_file_attach): Change bfd_errmsg to
9577 gdb_bfd_errmsg.
9578 * utils.c (AMBIGUOUS_MESS1): New macro.
9579 (AMBIGUOUS_MESS2): New macro.
9580 (gdb_bfd_errmsg): New function.
9581
48379de6
DE
95822010-02-04 Doug Evans <dje@google.com>
9583
9584 * solib-svr4.c (enable_break): Add comment.
9585
4ee73e90
AG
95862010-02-04 Anthony Green <green@moxielogic.com>
9587
9588 * moxie-tdep.c (moxie_analyze_prologue): Fail protocol analysis
9589 gracefully.
9590
1a334831
TT
95912010-02-04 Tom Tromey <tromey@redhat.com>
9592
9593 * valops.c (search_struct_field): Account for
9594 value_embedded_offset. Fix check for virtual base past the end of
9595 the object. Use value_copy when making a slice of the value.
9596
1180b2c8
L
95972010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9598
9599 PR tui/9622
9600 * tui/tui-interp.c (tui_init): Call tui_initialize_readline
9601 only if gdb_stdout is a tty.
9602
c3f08eb7
L
96032010-02-04 H.J. Lu <hongjiu.lu@intel.com>
9604
9605 * target-descriptions.c: Include "osabi.h".
9606 (maint_print_c_tdesc_cmd): Generate set_tdesc_osabi for valid
9607 OSABI.
9608
2d33f7b8
TG
96092010-02-04 Tristan Gingold <gingold@adacore.com>
9610
9611 * machoread.c (macho_add_oso): Renamed to macho_register_oso.
9612 (macho_symtab_read): Adjust calls to macho_add_oso.
9613 (macho_oso_symfile): Renamed to macho_symfile_read_all_oso.
9614 (macho_symfile_read): Adjust call to macho_oso_symfile.
9615 (macho_new_init): Move this function after declarations.
9616 (macho_symfile_init): Ditto.
9617 * darwin-nat-info.c (darwin_lib_gdb_ports): Remove.
9618 * darwin-nat.c (darwin_lookup_task): Remove unused prototype.
9619
11334b82
VP
96202010-02-04 Vladimir Prus <vladimir@codesourcery.com>
9621
9622 Include MI command in remotelog.
9623
9624 * mi/mi-main.c (mi_execute_command): Call target_log_command.
9625
ff97be06
L
96262010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9627
9628 * remote.c (remote_state): Remove gdbarch.
9629 (init_remote_state): Don't set gdbarch.
9630 (remote_query_supported): Pass target_gdbarch instead of
9631 rs->gdbarch to gdbarch_qsupported.
9632
75cebea9
L
96332010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9634
9635 * gdbarch.sh: Add qsupported.
9636
9637 * gdbarch.c: Regenerated.
9638 * gdbarch.h: Likewise.
9639
9640 * remote.c (remote_state): Add gdbarch.
9641 (init_remote_state): Set gdbarch.
9642 (remote_query_supported): Support gdbarch_qsupported.
9643
c1dec97b
DJ
96442010-02-03 Daniel Jacobowitz <dan@codesourcery.com>
9645
9646 * amd64fbsd-nat.c (amd64fbsd_supply_pcb): Also check for
9647 __FreeBSD_kernel_version.
9648
ac8035ab
TG
96492010-02-03 Tristan Gingold <gingold@adacore.com>
9650
9651 * symfile.h (struct sym_fns): Add sym_relocate field.
9652 (default_symfile_relocate): New prototype.
9653 (symfile_relocate_debug_section): First argument is now an objfile.
9654 * symfile.c (default_symfile_relocate): Rename from
9655 symfile_relocate_debug_section, first argument is now an objfile.
9656 (symfile_relocate_debug_section): New function.
9657 * coffread.c (coff_sym_fns): Set sym_relocate field.
9658 * somread.c (som_sym_fns): Ditto.
9659 * mipsread.c (ecoff_sym_fns): Ditto.
9660 * machoread.c (macho_sym_fns): Ditto.
9661 * elfread.c (elf_sym_fns): Ditto.
9662 * dwarf2read.c (dwarf2_read_section): Ditto.
9663 * xcoffread.c (xcoff_sym_fns): Ditto.
9664 * dbxread.c (aout_sym_fns): Ditto.
9665 (dbx_psymtab_to_symtab): Adjust call to symfile_relocate_debug_section.
9666 (elfstab_build_psymtabs): Ditto.
9667
be52b756
L
96682010-02-03 H.J. Lu <hongjiu.lu@intel.com>
9669
9670 * defs.h (MAX_REGISTER_SIZE): Increase to 32.
9671
9c3c02fd
TT
96722010-02-02 Tom Tromey <tromey@redhat.com>
9673
9674 * valops.c (value_cast_structs): Try downcasting using the RTTI
9675 type.
9676
f23f4c59
TT
96772010-02-02 Tom Tromey <tromey@redhat.com>
9678
9679 * gnu-v2-abi.c: Don't include gnu-v2-abi.h.
9680 (gnuv2_baseclass_offset): Now static.
9681 * Makefile.in (HFILES_NO_SRCDIR): Remove gnu-v2-abi.h.
9682 * gnu-v2-abi.h: Remove.
9683
0cc2414c
TT
96842010-02-02 Tom Tromey <tromey@redhat.com>
9685
9686 * m2-typeprint.c (m2_record_fields): Don't use
9687 TYPE_DECLARED_TYPE.
9688 * gdbtypes.h (TYPE_DECLARED_CLASS): New macro.
9689 (struct main_type) <flag_declared_class>: New field.
9690 (struct cplus_struct_type) <declared_type>: Remove.
9691 <ntemplate_args>: Move earlier.
9692 (DECLARED_TYPE_CLASS, DECLARED_TYPE_UNION, DECLARED_TYPE_STRUCT)
9693 (DECLARED_TYPE_TEMPLATE): Remove.
9694 (TYPE_DECLARED_TYPE): Remove.
9695 * gdbtypes.c (lookup_union): Don't use TYPE_DECLARED_TYPE.
9696 * dwarf2read.c (read_structure_type): Set TYPE_DECLARED_CLASS.
9697 * c-typeprint.c (c_type_print_base): Use TYPE_DECLARED_CLASS, not
9698 TYPE_DECLARED_TYPE.
9699
edf3d5f3
TT
97002010-02-02 Tom Tromey <tromey@redhat.com>
9701
9702 PR c++/11226, PR c++/9629, PR c++/9688, PR c++/8890:
9703 * valops.c (search_struct_field): Compute nbases after calling
9704 CHECK_TYPEDEF.
9705 (check_field): Call CHECK_TYPEDEF.
9706 * cp-valprint.c (cp_print_value): Pass correct address to
9707 baseclass_offset. Fix check for virtual base past the end of the
9708 object. Don't offset address passed to cp_print_value_fields or
9709 apply_val_pretty_printer.
9710 (cp_print_value_fields): Fix call to val_print.
9711 (cp_print_value_fields_rtti): New function.
9712 * c-valprint.c (c_val_print): Use cp_print_value_fields_rtti.
9713 * p-valprint.c (pascal_object_print_value_fields): Fix call to
9714 val_print.
9715 * python/py-prettyprint.c (apply_val_pretty_printer): Add embedded
9716 offset to address.
9717 * language.h (struct language_defn) <la_val_print>: Document.
9718 * c-lang.h (cp_print_value_fields_rtti): Declare.
9719
e4b7f41c
JK
97202010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9721
9722 PR libc/11214:
9723 * linux-low.c (linux_tracefork_child) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9724 (linux_test_for_tracefork): Move `stack' into [__UCLIBC__ && HAS_NOMMU].
9725 (linux_test_for_tracefork) [!(__UCLIBC__ && HAS_NOMMU)]: New.
9726
7618e12b
DJ
97272010-02-01 Michael Matz <matz@suse.de>
9728 Daniel Jacobowitz <dan@codesourcery.com>
9729
e4b7f41c 9730 * i386-tdep.c (i386_frame_cache): Assume valid anonymous
7618e12b
DJ
9731 functions use a frame pointer.
9732
b381ea14
JK
97332010-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9734
9735 * solib-svr4.c (scan_dyntag): New variable dyn_addr. Replace gdb_assert
9736 by a conditional setting DYN_ADDR. Use DYN_ADDR.
9737 * config/djgpp/fnchange.lst: Add translations for
9738 symbol-without-target_section.exp and symbol-without-target_section.c.
9739
0e05dfcb
DJ
97402010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9741
9742 * gdbarch.sh: Set LANG and LC_ALL to C, not c.
9743 (remote_breakpoint_for_pc): Correct invalid_p check.
9744 * gdbarch.c: Regenerated.
9745
f9d67f43
DJ
97462010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9747
9748 * arm-tdep.c (arm_find_mapping_symbol): New function, from
9749 arm_pc_is_thumb.
9750 (arm_pc_is_thumb): Use arm_find_mapping_symbol.
9751 (extend_buffer_earlier): New function.
9752 (MAX_IT_BLOCK_PREFIX, IT_SCAN_THRESHOLD): New constants.
9753 (arm_adjust_breakpoint_address): New function.
9754 (arm_gdbarch_init): Register arm_adjust_breakpoint_address.
9755
177321bd
DJ
97562010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9757
9758 * arm-linux-tdep.c (arm_linux_thumb2_be_breakpoint)
9759 (arm_linux_thumb2_le_breakpoint): New constants.
9760 (arm_linux_init_abi): Set thumb2_breakpoint and
9761 thumb2_breakpoint_size.
9762 * arm-tdep.c (thumb_insn_size, thumb_advance_itstate): New functions.
9763 (thumb_get_next_pc): Add a comment. Rename IT to ITSTATE.
9764 Implement support for single stepping through IT blocks if
9765 a 32-bit Thumb breakpoint instruction is available.
9766 (arm_breakpoint_from_pc): If a 32-bit Thumb breakpoint instruction
9767 is available, use it when needed.
9768 (arm_remote_breakpoint_from_pc): New function.
9769 (arm_gdbarch_init): Register arm_remote_breakpoint_from_pc.
9770 * arm-tdep.h (struct gdbarch_tdep): Correct thumb_breakpoint
9771 comment. Add thumb2_breakpoint and thumb2_breakpoint_size.
9772
a1dcb23a
DJ
97732010-02-01 Daniel Jacobowitz <dan@codesourcery.com>
9774
9775 * arch-utils.c (default_remote_breakpoint_from_pc): New function.
9776 * arch-utils.h (default_remote_breakpoint_from_pc): Declare.
9777 * gdbarch.c, gdbarch.h: Regenerated.
9778 * gdbarch.sh (remote_breakpoint_from_pc): New architecture method.
9779 * remote.c (remote_insert_breakpoint, remote_insert_hw_breakpoint): Use
9780 gdbarch_remote_breakpoint_from_pc.
9781
2b009048
DJ
97822010-01-29 Daniel Jacobowitz <dan@codesourcery.com>
9783
9784 * infrun.c (prepare_to_proceed): Handle other signals which might
9785 match a breakpoint.
9786 (handle_inferior_event): Move the check for unusual breakpoint
9787 signals earlier.
9788
e4e2711a
JB
97892010-01-29 Paul Hilfinger <hilfinger@adacore.com>
9790
9791 amd64 - function returning record with field straddling 2 registers.
9792 * amd64-tdep.c (amd_classify_aggregate): Handle the case of
9793 a record of length <= 16 in which a field straddles the two
9794 eightbytes.
9795
cba6fab5
JB
97962010-01-29 Joel Brobecker <brobecker@adacore.com>
9797
9798 Implement return values on amd64-windows.
9799 * amd64-windows-tdep.c: #include gdbcore.h and regcache.h.
9800 (amd64_windows_return_value): New function.
9801 (amd64_windows_init_abi): Call set_gdbarch_return_value with
9802 amd64_windows_return_value.
9803
3af6ddfe
JB
98042010-01-29 Joel Brobecker <brobecker@adacore.com>
9805
9806 amd64-windows: 32 bytes allocated on stack by caller for integer
cba6fab5 9807 parameter registers.
3af6ddfe
JB
9808 * i386-tdep.h (struct gdbarch_tdep): Add new field
9809 integer_param_regs_saved_in_caller_frame.
9810 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9811 tdep->integer_param_regs_saved_in_caller_frame to 1.
9812 * amd64-tdep.c (amd64_push_dummy_call): Allocate some memory on
9813 stack if tdep->integer_param_regs_saved_in_caller_frame is set.
9814
80d19a06
JB
98152010-01-29 Joel Brobecker <brobecker@adacore.com>
9816
9817 amd64-windows: memory args passed by pointer during function calls.
9818 * i386-tdep.h (gdbarch_tdep): Add field memory_args_by_pointer.
9819 * amd64-tdep.c (amd64_push_arguments): Add handling of architectures
9820 where tdep->memory_args_by_pointer is non-zero.
9821 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
9822 tdep->memory_args_by_pointer to 1.
9823
ba581dc1
JB
98242010-01-29 Joel Brobecker <brobecker@adacore.com>
9825
4966b6c2 9826 amd64-windows: Integer parameters in function calls.
ba581dc1
JB
9827 * i386-tdep.h (enum amd64_reg_class): New, moved here from
9828 amd64-tdep.c.
9829 (struct gdbarch_tdep): Add fields call_dummy_num_integer_regs,
9830 call_dummy_integer_regs, and classify.
9831 * amd64-tdep.h (amd64_classify): Add declaration.
9832 * amd64-tdep.c (amd64_dummy_call_integer_regs): New static constant.
9833 (amd64_reg_class): Delete, moved to i386-tdep.h.
9834 (amd64_classify): Make non-static. Move declaration to amd64-tdep.h.
9835 Replace call to amd64_classify by call to tdep->classify.
9836 (amd64_push_arguments): Get the list of registers to use for
9837 passing integer parameters from the gdbarch tdep structure,
9838 rather than using a hardcoded one. Replace calls to amd64_classify
9839 by calls to tdep->classify.
9840 (amd64_push_dummy_call): Get the register number used for
9841 the "hidden" argument from tdep->call_dummy_integer_regs.
9842 (amd64_init_abi): Initialize tdep->call_dummy_num_integer_regs
9843 and tdep->call_dummy_integer_regs. Set tdep->classify.
9844 * amd64-windows-tdep.c: Add include of gdbtypes.h.
9845 (amd64_windows_dummy_call_integer_regs): New static global.
9846 (amd64_windows_classify): New function.
9847 (amd64_windows_init_abi): Initialize tdep->call_dummy_num_integer_regs
9848 tdep->call_dummy_integer_regs and tdep->classify.
9849
d37346f0
DJ
98502010-01-28 Daniel Jacobowitz <dan@codesourcery.com>
9851
9852 * regcache.c (regcache_xmalloc): Add aspace argument. Use it
9853 for the new regcache. All callers updated.
9854 (regcache_cpy, regcache_cpy_no_passthrough): Do not set aspace here.
9855 (get_thread_arch_regcache): Do not set aspace here.
9856 * regcache.h (regcache_xmalloc): Update declaration.
9857
9858 * frame.c, infcall.c, ppc-linux-tdep.c: Calls to
9859 regcache_xmalloc updated.
9860
7434dadd
JB
98612010-01-28 Joel Brobecker <brobecker@adacore.com>
9862
9863 Another -Wunused-function error in procfs.c (sparc-solaris)
9864 * procfs.c (insert_dbx_link_breakpoint): Delete declaration. Move up.
9865 Only define if SYS_syssgi is defined.
9866 (remove_dbx_link_breakpoint): Delete declaration. Move up.
9867 (dbx_link_addr, insert_dbx_link_bpt_in_file)
9868 (insert_dbx_link_bpt_in_region): Move up. Only define if SYS_syssgi
9869 is itself defined.
9870
16d905e2
CF
98712010-01-27 Christopher Faylor <me+cygwin@cgf.cx>
9872
9873 * windows-nat.c (windows_initialization_done): New variable.
9874 (get_windows_debug_event): Issue error when process dies before
9875 completely initializing.
9876 (do_initial_windows_stuff): Set flag to indicate when we are done with
9877 the initial steps of attaching to the child.
9878
cd55e50f
JK
98792010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9880
9881 * symtab.h (struct symbol <symtab>): New comment on NULL values.
9882
99cc78aa
DE
98832010-01-27 Doug Evans <dje@google.com>
9884
4c7dcb84
DE
9885 * solib-svr4.c (solib_break_names): Add __dl_rtld_db_dlactivity.
9886
99cc78aa
DE
9887 * breakpoint.c (bpstat_stop_status): Delete useless code.
9888
52334bf5
JK
98892010-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9890
9891 * printcmd.c (display_uses_solib_p): Remove variable section. Access
9892 objfile via SYMBOL_SYMTAB.
9893
708ead4e
TT
98942010-01-26 Tom Tromey <tromey@redhat.com>
9895
9896 PR exp/7643:
9897 * eval.c (evaluate_subexp_for_address) <UNOP_IND>: Call
9898 coerce_array on result.
9899
b14e635e
SW
99002010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9901
9902 * cp-namespace.c (cp_lookup_symbol_namespace): Added
9903 search_parent argument.
9904 (cp_add_using): Initialize 'searched' field.
9905 (reset_directive_searched): New function.
9906 * cp-support.h: Add 'searched' field to using_direct struct.
9907 (cp_lookup_symbol_imports): Ditto.
9908 * cp-namespace.c (cp_lookup_symbol_imports): Ditto.
9909 Perform recursive search.
9910 Implement non parent search.
9911 * valops.c (value_maybe_namespace_elt): Updated.
9912
8540c487
SW
99132010-01-26 Sami Wagiaalla <swagiaal@redhat.com>
9914
9915 PR gdb/10929:
9916 * dwarf2read.c (read_lexical_block_scope): Create blocks for
9917 scopes which contain using directives even if they contain no
9918 declarations.
9919 * symtab.c (lookup_symbol_aux): Pass lowest level block to
9920 la_lookup_symbol_nonlocal.
9921 * cp-namespace.c (cp_lookup_symbol_nonlocal): call
9922 cp_lookup_symbol_namespace.
9923 (cp_lookup_symbol_namespace): Perform an import lookup at every
9924 block level.
9925 (cp_lookup_symbol_imports): New function.
9926 (cp_lookup_symbol_in_namespace): New function.
9927
421d5d99
TT
99282010-01-25 Tom Tromey <tromey@redhat.com>
9929
9930 PR gdb/11049:
9931 * c-valprint.c (c_val_print): Fix test of extract_unsigned_integer
9932 result.
9933
6bcc772d
RO
99342010-01-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9935
9936 * configure.ac: Only use host_os part when disabling TUI on osf.
9937 Use test to check variables, prefix strings with x.
9938 * configure: Regenerate.
9939
9940 * solib-osf.c (osf_current_sos): Initialize tail.
9941
1c1238a5
TG
99422010-01-25 gingold <gingold@adacore.com>
9943
c8d5aac9
L
9944 * windows-nat.c (windows_continue): Use %x to print thread id.
9945 (get_windows_debug_event): Ditto.
1c1238a5 9946
0b92b5bb
TT
99472010-01-22 Tom Tromey <tromey@redhat.com>
9948
9949 PR symtab/11199:
9950 * dwarf2read.c (quirk_gcc_member_function_pointer): Change return
9951 type and arguments. Use smash_to_methodptr_type.
9952 (read_structure_type): Call quirk_gcc_member_function_pointer
9953 later.
9954 * gdbtypes.h (smash_to_methodptr_type): Declare.
9955 * gdbtypes.c (smash_to_methodptr_type): New function.
9956 (lookup_methodptr_type): Use it.
9957
0d5392b8
TT
99582010-01-21 Tom Tromey <tromey@redhat.com>
9959
9960 PR symtab/11198:
9961 * symtab.h (lookup_minimal_symbol_and_objfile): Declare.
9962 * minsyms.c (lookup_minimal_symbol_and_objfile): New function.
9963 * glibc-tdep.c (find_minsym_and_objfile): Remove.
9964 (glibc_skip_solib_resolver): Use
9965 lookup_minimal_symbol_and_objfile.
9966
e6d088ec
KT
99672010-01-21 Kai Tietz <kai.tietz@onevision.com>
9968
9969 * inflow.c (check_syscall): Guard by #if clause for GO32 and
9970 WIN32 targets.
9971
b966cb8a
TT
99722010-01-20 Tom Tromey <tromey@redhat.com>
9973
9974 PR backtrace/10770:
9975 * valarith.c (value_binop): Handle BINOP_GTR, BINOP_LEQ, and
9976 BINOP_GEQ. Handle BINOP_NOTEQUAL in the signed case.
9977 * dwarf2expr.c (new_dwarf_expr_context): Allocate
9978 dwarf_stack_values, not CORE_ADDRs.
9979 (execute_stack_op): Change DW_OP_div and comparison operators to
9980 use signed operands.
9981
3f81c18a
VP
99822010-01-20 Vladimir Prus <vladimir@codesourcery.com>
9983
9984 Per-inferior args and tty and environment.
9985
9986 * infcmd.c (inferior_args): Rename to ...
9987 (inferior_args_scratch): ... this.
9988 (inferior_io_terminal): Rename to ...
9989 (inferior_io_terminal_scratch): ... this.
9990 (inferior_argc, inferior_argv): Remove.
9991 (set_inferior_io_terminal, get_inferior_io_terminal): Store
9992 inside current_inferior().
9993 (set_inferior_tty_command, show_inferior_tty_command): New.
9994 (get_inferior_args, set_inferior_args): Store inside
9995 current_inferior().
9996 (notice_args_set): Likewise and rename to...
9997 (set_args_command): ... this.
9998 (set_inferior_args_vector): Likewise.
9999 (notice_args_read): Rename to...
10000 (show_args_command): ...new.
10001 (tty_command): Remove.
10002 (run_command_1): Don't free old args, as they are freed by
10003 set_inferior_arg now.
10004 (run_no_args_command): Likewise.
10005 (inferior_environ): Remove.
10006 (run_command_1): Use environment of the current inferior.
10007 (environment_info, set_environment_command)
10008 (unset_environment_command, path_info, path_command): Likewise.
10009 (_initialize_infcmd): Adjust for function and variable renames.
10010 Do not init inferior_environ.
10011 * inferior.h (set_inferior_arg): Adjust prototype.
10012 (struct inferior): New fields args, argc, argv, terminal, environment.
10013 (inferior_environ): Remove declaration.
10014 * inferior.c (free_inferior): Free new fields.
10015 (add_inferior_silent): Initialize 'environment' field.
10016 * main.c (captured_main): Set arguments only after the initial
10017 inferior has been created. Set set_inferior_io_terminal,
10018 not tty_command.
10019 * mi/mi-main.c (mi_cmd_env_path): Use environment of the current
10020 inferior.
10021 (_initialize_mi_cmd_env): Adjust for disappearance of global
10022 inferior_environ.
10023 * solib.c (solib_find): Use environment of the current inferior.
10024
d8b65138
JK
100252010-01-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10026
10027 * varobj.c (varobj_add_child, install_dynamic_child): Wrap into #if
10028 HAVE_PYTHON.
10029 (instantiate_pretty_printer): Move HAVE_PYTHON outside of the function.
10030
692465f1
JB
100312010-01-20 Joel Brobecker <brobecker@adacore.com>
10032
10033 Get rid of ada-lang.c:function_name_from_pc.
10034 * ada-lang.c: Add "stack.h" #include.
10035 (function_name_from_pc): Delete.
10036 (is_known_support_routine): Replace call to function_name_from_pc
10037 by call to find_frame_funname.
10038 (ada_unhandled_exception_name_addr_from_raise): Likewise.
10039
95519e0e
TT
100402010-01-19 Tom Tromey <tromey@redhat.com>
10041
10042 PR c++/11026:
10043 * dwarf2read.c (read_partial_die): Allocate partial DIE's name on
10044 objfile obstack.
10045
95c11dc7
TT
100462010-01-19 Tom Tromey <tromey@redhat.com>
10047
10048 * top.c (stop_sig, float_handler, do_nothing): Remove.
10049
a0f49112
JK
100502010-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10051
10052 * breakpoint.c (watchpoint_check): Check the call
10053 gdbarch_in_function_epilogue_p before calling frame_find_by_id.
10054 Extend the comment.
8d95cc3b 10055 * config/djgpp/fnchange.lst: Add translations for
a0f49112
JK
10056 watchpoint-cond-gone.exp, watchpoint-cond-gone.c and
10057 watchpoint-cond-gone-stripped.c.
10058
ceeb3d5a
TT
100592010-01-19 Tom Tromey <tromey@redhat.com>
10060
10061 PR c++/8000:
10062 * dwarf2read.c (partial_die_parent_scope): Put enumeration type
10063 into parent scope, and enumerator into grandparent scope.
10064
2b71fc8e
JB
100652010-01-19 Joel Brobecker <brobecker@adacore.com>
10066
10067 * NEWS: Add entry for "set/show ada trust-PAD-over-XVS" commands.
10068
03564ed9
JB
100692010-01-19 Joel Brobecker <brobecker@adacore.com>
10070
10071 * configure.host: Make x86_64-*-solaris2.1[0-9]* an alias of
10072 i[34567]86-*-solaris2.1[0-9]*.
10073 * configure.tgt: Likewise.
10074
fb2e7cb4
JB
100752010-01-19 Joel Brobecker <brobecker@adacore.com>
10076
10077 * NEWS: Document the source command enhancement allowing it
10078 to load Python scripts. Document the "set/show script-extension"
10079 commands.
10080
1cb5e2a4
JB
100812010-01-19 Joel Brobecker <brobecker@adacore.com>
10082
10083 Add -Wunused-function to compile flags.
10084 * configure.ac: Add -Wunused-function to build_warnings.
10085 * configure: Regenerate.
10086
0ec6cd0c
JB
100872010-01-19 Joel Brobecker <brobecker@adacore.com>
10088
10089 "delete" ada-lex.c:input function, not used.
10090 * ada-lex.l: #define YY_NO_INPUT.
10091
b74845da
JB
100922010-01-19 Joel Brobecker <brobecker@adacore.com>
10093
10094 Delete free_named_symtabs and associated cleanup.
10095 * symfile.h (free_named_symtabs): Delete declaration.
10096 * symfile.c: Remove some commented out code (clear_symtab_users_once).
10097 (cashier_psymtab): Comment function out.
10098 Delete declaration.
10099 (free_named_symtabs): Delete.
10100 * coffread.c (coff_end_symtab): Remove call to free_named_symtabs.
10101 * dbxread.c (end_psymtab): Likewise.
10102 * dwarf2read.c (process_psymtab_comp_unit): Ditto.
10103 * exec.c (exec_close_1): Ditto.
10104 * xcoffread.c (xcoff_end_psymtab): Likewise.
10105
65c06092
JB
101062010-01-19 Joel Brobecker <brobecker@adacore.com>
10107
10108 * stack.c (print_block_frame_labels): Comment function out.
10109
d5cd6034
JB
101102010-01-19 Joel Brobecker <brobecker@adacore.com>
10111
10112 Delete unused or undefined functions.
10113 * breakpoint.c (ep_parse_optional_filename): Delete.
10114 * dcache.c (dcache_write_line): Remove declaration.
10115 * infrun.c (build_infrun): Remove declaration.
10116 * tracepoint.c (tracepoint_save_command): Remove declaration.
10117 * linux-nat.c (init_lwp_list): Delete. No longer used.
10118 * event-loop.c (check_async_signal_handlers): Delete declaration.
10119 * infrun.c (init_execution_control_state): Delete.
10120 (proceed): Update comment to avoid mentioning
10121 init_execution_control_state.
10122 * target.c (kill_or_be_killed, nosupport_runtime): Delete.
10123 * ada-lang.c (ada_to_static_fixed_value): Delete.
10124 * scm-lang.c (evaluate_subexp_scm): Delete declaration.
10125 * cp-namespace.c (cp_copy_usings): Delete.
10126 * xml-syscall.c (xml_number_of_syscalls): Delete.
10127 * progspace.c (find_program_space_by_num): Delete.
10128 * inflow.c (handle_sigio): Delete declaration.
10129 * hppa-tdep.c (hppa_alignof): Delete.
10130 * mipsnbsd-tdep.c (mipsnbsd_sigtramp_offset)
10131 (mipsnbsd_core_osabi_sniffer): Delete.
10132
4e8f195d
TT
101332010-01-18 Tom Tromey <tromey@redhat.com>
10134
10135 PR c++/9680:
10136 * c-exp.y (REINTERPRET_CAST, DYNAMIC_CAST, STATIC_CAST)
10137 (CONST_CAST): New tokens.
10138 (exp): Add new productions.
10139 (ident_tokens): Add const_cast, dynamic_cast, static_cast, and
10140 reinterpret_cast.
10141 (is_cast_operator): New function.
10142 (yylex): Handle cast operators specially.
10143 * eval.c (evaluate_subexp_standard) <UNOP_DYNAMIC_CAST,
10144 UNOP_REINTERPRET_CAST>: New cases.
10145 * expprint.c (print_subexp_standard): Likewise.
10146 (op_name_standard): Likewise.
10147 (dump_subexp_body_standard): Likewise.
10148 * parse.c (operator_length_standard): Likewise.
10149 * expression.h (enum exp_opcode): New constants UNOP_DYNAMIC_CAST,
10150 UNOP_REINTERPRET_CAST.
10151 * gdbtypes.c (class_types_same_p): New function.
10152 (is_ancestor): Use it.
10153 (is_public_ancestor): New function.
10154 (is_unique_ancestor_worker): Likewise.
10155 (is_unique_ancestor): Likewise.
10156 * gdbtypes.h (class_types_same_p, is_public_ancestor)
10157 (is_unique_ancestor): Declare.
10158 * valops.c (value_reinterpret_cast): New function.
10159 (dynamic_cast_check_1): Likewise.
10160 (dynamic_cast_check_2): Likewise.
10161 (value_dynamic_cast): Likewise.
10162 * value.h (value_reinterpret_cast, value_dynamic_cast): Declare.
10163
d9c57d9f
JB
101642010-01-18 Joel Brobecker <brobecker@adacore.com>
10165
10166 Fix build failure when building without Python support.
10167 * python/python.c: Always include exceptions.h, even when HAVE_PYTHON
10168 is not defined.
10169
f80d3ff2
JB
101702010-01-18 Joel Brobecker <brobecker@adacore.com>
10171
10172 Use XVS field type instead of doing a parallel lookup.
10173 * ada-lang.c (ada_get_base_type): Follow the XVS field type
10174 if it is a reference type instead of doing a type lookup using
10175 the XVS field name.
10176
5bf03f13
JB
101772010-01-18 Joel Brobecker <brobecker@adacore.com>
10178
10179 Trust PAD types instead of using PAD___XVS.
10180 * ada-lang.c (trust_pad_over_xvs): New static variable.
10181 (ada_is_aligner_type): If !trust_pad_over_xvs and there is a
10182 parallel XVS type, follow the XVS type instead of the PAD type.
10183 (unwrap_value): Make sure that there is no parallel XVE type
10184 before returning the value as is.
10185 (set_ada_list, show_ada_list): New static variables.
10186 (set_ada_command, show_ada_command): New functions.
10187 (_initialize_ada_language): Add new "set/show ada" prefix commands.
10188 Add new "set/show ada trust-PAD-over-XVS" setting.
10189
973817a3
JB
101902010-01-18 Tom Tromey <tromey@redhat.com>
10191 Thiago Jung Bauermann <bauerman@br.ibm.com>
10192
10193 Allow "source" to load python scripts.
10194 * exceptions.h (enum errors): Add UNSUPPORTED_ERROR.
10195 * python/python.c (source_python_script): New function.
10196 * python/python.h (source_python_script): Add declaration.
10197 * cli/cli-cmds.c: #include exceptions.h and python/python.h.
10198 (script_ext_off, script_ext_soft, script_ext_strict)
10199 (script_ext_enums, script_ext_mode): New static constants.
10200 (show_script_ext_mode, find_and_open_script): New functions.
10201 (source_script): Enhance to handle Python scripts.
10202 (init_cli_cmds): Add set/show script-extension commands.
10203
98e03262
SS
102042010-01-16 Stan Shebs <stan@codesourcery.com>
10205
10206 * tracepoint.h (struct trace_status): Use unsigned long long
10207 instead of size_t.
10208 * tracepoint.c (trace_status_command): Fix printf directive.
10209 (trace_save_command): Check fwrite returns, fix printf directive.
10210 (trace_filename): New global.
10211 (tfile_open): Set it, check read returns.
10212 (tfile_close): Free trace_filename.
10213 (tfile_get_traceframe_address): Check read returns.
10214 (tfile_trace_find): Ditto.
10215 (tfile_fetch_registers): Ditto.
10216 (tfile_xfer_partial): Ditto.
10217 (tfile_get_trace_state_variable_value): Ditto.
10218
00bf0b85
SS
102192010-01-15 Stan Shebs <stan@codesourcery.com>
10220
10221 Add trace file support.
10222 * tracepoint.h (enum trace_stop_reason): New enum.
10223 (struct trace_status): New struct.
10224 (parse_trace_status): Declare.
10225 (struct uploaded_tp): Move here from remote.c,
10226 add fields for actions.
10227 (struct uploaded_tsv): New struct.
10228 * tracepoint.c (tfile_ops): New target vector.
10229 (trace_fd): New global.
10230 (tfile_open): New function.
10231 (tfile_close): New function.
10232 (tfile_files_info): New function.
10233 (tfile_get_trace_status): New function.
10234 (tfile_get_traceframe_address): New function.
10235 (tfile_trace_find): New function.
10236 (tfile_fetch_registers): New function.
10237 (tfile_xfer_partial): New function.
10238 (tfile_get_trace_state_variable_value): New function.
10239 (init_tfile_ops): New function.
10240 (_initialize_tracepoint): Call it, add tfile target.
10241 (trace_status): New global.
10242 (current_trace_status): New function.
10243 (trace_running_p): Remove, change all users to get from
10244 current_trace_status()->running.
10245 (get_trace_status): Remove.
10246 (trace_status_command): Call target_get_trace_status directly,
10247 report more detail including tracing stop reasons.
10248 (trace_find_command): Always allow tfind on a file.
10249 (trace_find_pc_command): Ditto.
10250 (trace_find_tracepoint_command): Ditto.
10251 (trace_find_line_command): Ditto.
10252 (trace_find_range_command): Ditto.
10253 (trace_find_outside_command): Ditto.
10254 (trace_frames_offset, cur_offset): Declare as off_t.
10255 (trace_regblock_size): Rename from reg_size, update users.
10256 (parse_trace_status): New function.
10257 (tfile_interp_line): New function.
10258 (disconnect_or_stop_tracing): Ensure current trace
10259 status before asking what to do.
10260 (stop_reason_names): New global.
10261 (trace_save_command): New command.
10262 (get_uploaded_tp): Move here from remote.c.
10263 (find_matching_tracepoint): Ditto.
10264 (merge_uploaded_tracepoints): New function.
10265 (parse_trace_status): Use stop_reason_names.
10266 (_initialize_tracepoint): Define tsave command.
10267 * target.h (target_ops): New fields to_save_trace_data,
10268 to_upload_tracepoints, to_upload_trace_state_variables,
10269 to_get_raw_trace_data, change to_get_trace_status
10270 to take a pointer to a status struct.
10271 (target_save_trace_data): New macro.
10272 (target_upload_tracepoints): New macro.
10273 (target_upload_trace_state_variables): New macro.
10274 (target_get_raw_trace_data): New macro.
10275 * target.c (update_current_target): Add new methods, change
10276 signature of to_get_trace_status.
10277 * remote.c (hex2bin): Make globally visible.
10278 (bin2hex): Ditto.
10279 (remote_download_trace_state_variable): Download name also.
10280 (remote_get_trace_status): Update parameter, use
10281 parse_trace_status.
10282 (remote_save_trace_data): New function.
10283 (remote_upload_tracepoints): New function.
10284 (remote_upload_trace_state_variables): New function.
10285 (remote_get_raw_trace_data): New function.
10286 (remote_start_remote): Use them.
10287 (_initialize_remote_ops): Add operations.
10288 * ax-gdb.c: Include breakpoint.h.
10289 * breakpoint.c (create_tracepoint_from_upload): Use
10290 break_command_really, return tracepoint, warn about unimplemented
10291 parts.
10292 * NEWS: Mention trace file addition.
10293
d904de5b
JK
102942010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10295
10296 Fix compilation warning on gcc-3.4.
10297 * exec.c (print_section_info): Move the `displacement' variable
10298 initialization to its declaration.
10299
64aa9731
JK
103002010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10301
10302 * gdb-gdb.py (StructMainTypePrettyPrinter): Fix TYPE_CODE_RANGE
10303 comparison.
10304
ca1f5def 103052010-01-15 Eric Botcazou <botcazou@adacore.com>
9f0dec2d
JB
10306
10307 "info tasks" broken by typedefs in ATCB type definitions.
10308 * ada-lang.c (ada_template_to_fixed_record_type_1): Add call to
10309 ada_check_typedef before retrieving the length of the type for
10310 regular fields.
10311
12ab9e09
JB
103122010-01-15 Joel Brobecker <brobecker@adacore.com>
10313
10314 Do not use name-based lookup for unconstrained packed arrays.
10315 * ada-lang.c (find_parallel_type_by_descriptive_type):
10316 Limit the fallback to name-based lookups to the case where
10317 the type is a constrained packed array.
10318
c389c3dc
JB
103192010-01-15 Joel Brobecker <brobecker@adacore.com>
10320
10321 Enhance gdb-gdb.py to handle main_type.type_specific.
10322 * gdb-gdb.py: Print the type-specific part of struct main_type.
10323
7991dee7
JK
103242010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
10325
10326 * configure.ac (AC_CHECK_FUNCS): Check for setrlimit and getrlimit.
10327 * configure: Regenerate.
10328 * config.in: Regenerate.
10329 * utils.c: Include sys/resource.h.
10330 (dump_core, can_dump_core): New.
10331 (internal_vproblem): Update the comment. Check can_dump_core while
10332 setting dump_core_p. Replace two abort calls by dump_core calls.
10333
93c26624
JK
103342010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10335 Eli Zaretskii <eliz@gnu.org>
10336
10337 * NEWS: Document the PIE support.
10338
55235ad7
JK
103392010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10340
10341 * linux-tdep.c: Remove includes gdbcore.h, observer.h and elf-bfd.h.
10342 (check_is_pie_binary, _initialize_linux_tdep): Remove.
10343
41752192
JK
103442010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10345
10346 * solib-svr4.c (svr4_exec_displacement): New comment for entry_point.
10347 Replace exec_entry_point call by bfd_get_start_address.
10348
9f2982ff
JK
103492010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10350
10351 Support Valgrind attachments broken by the PIE support.
10352 * auxv.c: Include gdbcore.h.
10353 (procfs_xfer_auxv): Make static. Reduce its comment. Drop its
10354 parameters ops, object and annex. Remove their assertions.
10355 (ld_so_xfer_auxv, memory_xfer_auxv): New function.
10356 * auxv.h (procfs_xfer_auxv): Remove comment. Rename to ...
10357 (memory_xfer_auxv): ... here.
10358 * linux-nat.c (linux_xfer_partial): Rename procfs_xfer_auxv to
10359 memory_xfer_auxv.
10360 * procfs.c (procfs_xfer_partial): Likewise.
10361 * solib-svr4.c (svr4_relocate_main_executable): New prototype.
10362 (svr4_special_symbol_handling): Call svr4_relocate_main_executable.
10363 (svr4_solib_create_inferior_hook): Conditionalize the
10364 svr4_relocate_main_executable call.
10365
61f0d762
JK
103662010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10367
10368 * solib-svr4.c (scan_dyntag): Remove variable dyn_addr. New variable
10369 target_section. Find SECT in current_target_sections, gdb_assert it.
10370 (elf_lookup_lib_symbol): Pass the binary file if given symfile_objfile.
10371 New variable abfd.
10372 * symtab.c (lookup_objfile_from_block): Return the binary file instead
10373 of separate debug info file.
10374
51bee8e9
JK
103752010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10376
10377 Support PIEs with no symfile_objfile.
10378 * exec.c (print_section_info <abfd == exec_bfd>): Relocate Entry point.
10379 * solib-svr4.c (svr4_relocate_main_executable <exec_bfd>): New block.
10380
b8040f19
JK
103812010-01-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10382
10383 * solib-svr4.c (svr4_relocate_main_executable): Move the static exec
10384 code part to ...
10385 (svr4_static_exec_displacement): ... a new function.
10386 (svr4_exec_displacement): New function.
10387 (svr4_relocate_main_executable): Call svr4_exec_displacement. Allocate
10388 new_offsets using alloca now. Remove variable old_chain and changed.
10389 Call objfile_relocate unconditionally now.
10390
eb90ce83
DE
103912010-01-14 Doug Evans <dje@google.com>
10392
10393 * gdbtypes.c (arch_flags_type): Fix comment.
10394 * gdbtypes.h (arch_composite_type): Fix comment.
10395
bdfed3bc
TG
103962009-01-14 Tristan Gingold <gingold@adacore.com>
10397
10398 * machoread.c (macho_add_oso_symfile): Add symfile_flags parameter.
10399 Call xstrdup for abfd->filename. Pass symfile_flags and objfile flags
10400 to symbol_file_add_from_bfd. Add OSO as separate objfile.
10401 (macho_oso_symfile): Add symfile_flags parameter. Pass it to
10402 macho_add_oso_symfile.
10403 (macho_symfile_read): Pass symfile_flags to macho_oso_symfile.
10404
1596ad23
JB
104052010-01-14 Joel Brobecker <brobecker@adacore.com>
10406
10407 Tru64: Dead threads are never deleted.
10408 * dec-thread.c (dec_thread_ptid_is_alive): New function.
10409 (dec_thread_count_gdb_threads): Fix counter increment.
10410 (dec_thread_add_gdb_thread): Fix *listp increment.
10411 (resync_thread_list): Fix bug in deletion of dead threads that
10412 caused all threads to be deleted, instead of just the dead ones.
10413
be759fcf
PM
104142010-01-13 Phil Muldoon <pmuldoon@redhat.com>
10415
10416 PR python/10705
10417
10418 * python/python-internal.h: Add lazy_string_object_type
10419 definition.
10420 (create_lazy_string_object, gdbpy_initialize_lazy_string)
10421 (gdbpy_is_lazystring, gdbpy_extract_lazy_string): Define.
10422 * python/py-value.c (valpy_lazy_string): New function.
10423 (convert_value_from_python): Add lazy string conversion.
10424 * python/py-prettyprint.c (pretty_print_one_value): Check if
10425 return is also a lazy string.
10426 (print_string_repr): Add lazy string printing branch.
10427 (print_children): Likewise.
10428 * python/py-lazy-string.c: New file. Implement lazy strings.
10429 * python/python.c (_initialize_python): Call
10430 gdbpy_initialize_lazy_string.
10431 * varobj.c (value_get_print_value): Add lazy string printing
10432 branch. Account for encoding.
10433 * c-lang.c (c_printstr): Account for new encoding argument. If
10434 encoding is NULL, find encoding suited for type, otherwise use
10435 user encoding.
10436 * language.h (language_defn): Add encoding argument.
10437 (LA_PRINT_STRING): Likewise.
10438 * language.c (unk_lang_printstr): Update to reflect new encoding
10439 argument to language_defn.
10440 * ada-lang.h (ada_printstr): Likewise.
10441 * c-lang.h (c_printstr): Likewise.
10442 * p-lang.h (pascal_printstr);
10443 * f-lang.c (f_printstr): Likewise.
10444 * m2-lang.c (m2_printstr): Likewise.
10445 * objc-lang.c (objc_printstr): Likewise.
10446 * p-lang.c (pascal_printstr): Likewise.
10447 * scm-lang.c (scm_printstr): Likewise.
10448 * c-valprint.c (c_val_print): Update LA_PRINT_STRING call for
10449 encoding argument.
10450 * ada-valprint.c (ada_printstr): Likewise.
10451 * f-valprint.c (f_val_print): Likewise
10452 * m2-valprint.c (m2_val_print): Likewise.
10453 * p-valprint.c (pascal_val_print): Likewise.
10454 * expprint.c (print_subexp_standard): Likewise.
10455 * valprint.c (val_print_string): Likewise.
10456 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-lazy-string.
10457 (SUBDIR_PYTHON_SRCS): Likewise.
10458 (py-lazy-string.o): New rule.
10459
1fe72117 104602010-01-13 Doug Evans <dje@google.com>
8eee9c5a
DE
10461
10462 * mi/mi-main.c (list_available_thread_groups): Avoid "may be used
10463 uninitialized" warning from gcc on local `tree'.
10464
dc146f7c
VP
104652010-01-13 Vladimir Prus <vladimir@codesourcery.com>
10466
10467 Implement core awareness.
10468
10469 * bcache.c (compare_ints): Remove
10470 (print_percentage): Use compare_positive_ints.
10471 * defs.h (compare_positive_ints): Declare.
10472 * linux-nat.h (struct lin_lwp): New field core.
10473 (linux_nat_core_of_thread_1): Declare.
10474 * linux-nat.c (add_lwp): Init the 'core' field.
10475 (linux_nat_wait_1): Record the core.
10476 (linux_nat_core_of_thread_1, linux_nat_core_of_thread): New.
10477 (linux_nat_add_target): Register the above.
10478 * linux-thread-db.c (update_thread_core): New.
10479 (thread_db_find_new_threads): Update core information for
10480 every thread.
10481 * remote.c (struct private_thread_info): New.
10482 (free_private_thread_info, demand_private_info): New.
10483 (PACKET_qXfer_threads, use_osdata_threads): New.
10484 (struct thread_item, threads_parsing_context
10485 (start_thread, end_thread, thread_attributes)
10486 (thread_children, threads_children, threads_elements): New.
10487 (remote_threads_info): Try qXfer:threads before anything
10488 else.
10489 (remote_protocol_packets): Register qXfer:threads.
10490 (remote_open_1): Init use_osdata_threads.
10491 (struct stop_reply): New field 'core'.
10492 (remote_parse_stop_reply): Parse core number.
10493 (process_stop_reply): Record core number.
10494 (remote_xfer_partial): Handle qXfer:threads.
10495 (remote_core_of_thread): New.
10496 (init_remote_ops): Register remote_core_of_thread.
10497 (_initialize_remote): Register qXfer:read.
10498 * target.c (target_core_of_thread): New
10499 * target.h (enum target_object): New value TARGET_OBJECT_THREADS.
10500 (struct target_ops): New field to_core_of_threads.
10501 (target_core_of_thread): Declare.
10502 * gdbthread.h (struct thread_info): New field private_dtor.
10503 * thread.c (print_thread_info): Report the core.
10504 * ui-out.c (MAX_UI_OUT_LEVELS): Increase.
10505 * utils.c (compare_positive_ints): New.
10506 * features/threads.dtd: New.
10507 * mi/mi-interp.c (mi_on_normal_stop): Report the core.
10508 * mi/mi-main.c (struct collect_cores_data, collect_cores)
10509 (do_nothing, free_vector_of_osdata_items)
10510 (splay_tree_int_comparator, free_splay_tree): New.
10511 (print_one_inferior_data): Implemented printing of selected
10512 inferiors. Collect and print cores.
10513 (output_cores): New.
10514 (mi_cmd_list_thread_groups): Support --recurse. Permit specifying
10515 thread groups together with --available.
10516
d30c5336
JK
105172010-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10518
10519 * configure: Regenerate (for _STRUCTURED_PROC).
10520
02893727
JB
105212010-01-12 Joel Brobecker <brobecker@adacore.com>
10522
10523 Delete dead function.
10524 * ada-lang.c (extract_string): Delete. No longer used.
10525
46ed2d6f
JB
105262010-01-12 Joel Brobecker <brobecker@adacore.com>
10527
10528 Fix -Wunused warning in dec-thread.c.
10529 * dec-thread.c (dec_thread_count_gdb_threads)
10530 (dec_thread_add_gdb_thread): Prevent -Wunused warning.
10531
606b8d1a
JB
105322010-01-12 Joel Brobecker <brobecker@adacore.com>
10533
10534 * ada-valprint.c (ada_print_floating): Remove trailing space.
10535
b4ba55a1
JB
105362010-01-12 Joel Brobecker <brobecker@adacore.com>
10537
10538 Add support for DW_AT_GNAT_descriptive_type.
10539 * gdbtypes.h (enum type_specific_kind): New enum.
10540 (struct main_type) [type_specific_field]: New component.
10541 [type_specific]: Add new component "gnat_stuff".
10542 (struct gnat_aux_type): New type.
10543 (INIT_CPLUS_SPECIFIC): Also set TYPE_SPECIFIC_FIELD (type).
10544 (HAVE_CPLUS_STRUCT): Also check TYPE_SPECIFIC_FIELD (type).
10545 (gnat_aux_default, allocate_gnat_aux_type): Add declaration.
10546 (INIT_GNAT_SPECIFIC, ALLOCATE_GNAT_AUX_TYPE, HAVE_GNAT_AUX_INFO)
10547 (TYPE_SPECIFIC_FIELD): New macros.
10548 (TYPE_CPLUS_SPECIFIC): Return cplus_struct_default if the given
10549 type does not hold any cplus-specific data.
10550 (TYPE_RAW_CPLUS_SPECIFIC): New macro.
10551 (TYPE_GNAT_SPECIFIC, TYPE_DESCRIPTIVE_TYPE): New macros.
10552 (TYPE_IS_OPAQUE): Use HAVE_CPLUS_STRUCT to check if type has
10553 cplus-specific data.
10554 * gdbtypes.c (allocate_cplus_struct_type): Minor stylistic rewrite.
10555 Set new component TYPE_SPECIFIC_FIELD (type).
10556 (gnat_aux_default): New constant.
10557 (allocate_gnat_aux_type): New function.
10558 (init_type): Add initialization the type-specific stuff for
10559 TYPE_CODE_FLT and TYPE_CODE_FUNC types.
10560 (print_gnat_stuff): New function.
10561 (recursive_dump_type): Use HAVE_CPLUS_STRUCT to check for cplus-
10562 specific data. Adjust code that prints the contents of the
10563 type-specific union using the TYPE_SPECIFIC_FIELD value.
10564 * dwarf2read.c (dwarf2_attach_fields_to_type): Do not allocate
10565 the type cplus stuff for Ada types.
10566 (dwarf2_add_member_fn, dwarf2_attach_fn_fields_to_type):
10567 Error out if these routines are called with an Ada type.
10568 (read_structure_type, read_array_type, read_subrange_type):
10569 Add call to set_descriptive_type.
10570 (set_die_type): Initialize the gnat-specific data if necessary.
10571 (need_gnat_info, die_descriptive_type, set_descriptive_type):
10572 New functions.
10573 * ada-lang.c (decode_constrained_packed_array_type): Use
10574 decode_constrained_packed_array_type instead of doing a standard
10575 lookup to locate a parallel type.
10576 (find_parallel_type_by_descriptive_type): New function.
10577 (ada_find_parallel_type_with_name): New function.
10578 (ada_find_parallel_type): Reimplement using
10579 ada_find_parallel_type_with_name.
10580 * ada-valprint.c (print_field_values): Use HAVE_CPLUS_STRUCT
10581 to check if type has a cplus stuff.
10582 * linespec.c (total_number_of_methods): Likewise.
10583 * mdebugread.c (new_type): Likewise.
10584
b0f02ee9
JK
105852010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10586
10587 * NEWS: Document the 0b binary number prefix parsing.
10588
b260e109
JK
105892010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10590
10591 * objfiles.c (objfile_relocate1): Change the return type to int.
10592 Describe the new return value. Return non-zero if data changed.
10593 (objfile_relocate): New variable changed. Set it. Call
10594 breakpoint_re_set depending on CHANGED.
10595
b5cfddf5
JK
105962010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10597
10598 Implement binary numbers parsing.
10599 * c-exp.y (parse_number): New case 'b' and 'B'.
10600
e0ae4240
JK
106012010-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
10602 Tristan Gingold <gingold@adacore.com>
10603
10604 * solib.c (info_sharedlibrary_command): Replace
10605 objfile_has_partial_symbols and objfile_has_full_symbols calls by
10606 objfile_has_symbols.
10607
6e0e5977
JB
106082010-01-10 Joel Brobecker <brobecker@adacore.com>
10609
10610 * NEWS: Document the improvements made to the mips-irix port.
10611
7348c5e1
JB
106122010-01-09 Joel Brobecker <brobecker@adacore.com>
10613
10614 Fix the documentation of valprint.c:value_print.
10615 * valprint.c (value_print): Update the function description to
10616 mention that the syntax of the output follows the current_language,
10617 not necessarily C.
10618
567995e1
JK
106192010-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10620
10621 Fix displacement of separate debug info files.
10622 * objfiles.c (objfile_relocate): Rename to ...
10623 (objfile_relocate1): ... here and make it static. Extend the comment.
10624 (objfile_relocate): New function.
10625 * solib-spu.c (spu_relocate_main_executable): Explicitly check if
10626 SYMFILE_OBJFILE is NULL. Remove variables objfile and old_chain.
10627 Remove following of SEPARATE_DEBUG_OBJFILE. new_offsets is now
10628 allocated using alloca.
10629 * symfile.c (copy_section_addr_info): Remove.
10630 (build_section_addr_info_from_objfile): Make it global. New variables
10631 addr_bit and mask, use them.
10632 * symfile.h (build_section_addr_info_from_objfile): New prototype.
10633 (copy_section_addr_info): Remove.
10634
6d8eadbd
JB
106352010-01-09 Joel Brobecker <brobecker@adacore.com>
10636
10637 Signal unwinder for mips-irix N32.
10638 * mips-irix-tdep.c: #include mips-tdep.h, trad-frame.h, and
10639 tramp-frame.h.
10640 (SIGTRAMP_FRAME_SIZE, SIGCONTEXT_PC_OFF, SIGCONTEXT_REGS_OFF)
10641 (SIGCONTEXT_FPREGS_OFF, SIGCONTEXT_FPCSR_OFF, SIGCONTEXT_HI_OFF)
8d95cc3b
PA
10642 (SIGCONTEXT_LO_OFF): New macros.
10643 (mips_irix_n32_tramp_frame_init): New function.
6d8eadbd
JB
10644 (mips_irix_n32_tramp_frame): New static constant.
10645 (mips_irix_init_abi): Prepend the mips_irix_n32_tramp_frame unwinder.
10646
27087a3d
JB
106472010-01-09 Joel Brobecker <brobecker@adacore.com>
10648
10649 Breakpoint in shared library does not work on mips-irix.
10650 * procfs.c: #include "observer.h".
10651 (procfs_inferior_created): New function, moving here the code
10652 which unsets the syssgi syscall-exit notifications.
10653 (procfs_create_inferior): Remove the code which unsets the syssgi
10654 syscall-exit notifications. It is too early to do this here.
10655 (_initialize_procfs): Attach the procfs_inferior_created observer.
10656
f08877ba
JB
106572010-01-09 Joel Brobecker <brobecker@adacore.com>
10658
10659 Wrong return convention for arrays (mips-irix).
10660 * mips-tdep.c (mips_n32n64_return_value): Arrays whose size is
10661 128 bits or smaller are returned the same way as structs
10662 and unions of the the same size.
10663
e4b97d48
JB
106642010-01-09 Joel Brobecker <brobecker@adacore.com>
10665
10666 Cannot set the PC on mips-irix.
10667 * irix5-nat.c (fill_gregset): Check regno against the raw PC
10668 register number, no the cooked one.
10669
11377e68
JB
106702010-01-09 Joel Brobecker <brobecker@adacore.com>
10671
10672 Error while loading core file on mips-irix.
10673 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing
10674 if debugging from a core file.
10675
b2391021
JB
106762010-01-09 Joel Brobecker <brobecker@adacore.com>
10677
10678 GDB hangs when attaching to process on mips-irix.
10679 * solib-irix.c (irix_solib_create_inferior_hook): Do nothing if
10680 attaching to a process.
10681
f2ec0ecf
JB
106822010-01-09 Joel Brobecker <brobecker@adacore.com>
10683
10684 Use the correct breakpoint instruction on mips-irix.
10685 * mips-tdep.c (mips_breakpoint_from_pc): Add new static variable
10686 containing the correct breakpoint instruction to use on mips-irix.
10687 Use it when the osabi is GDB_OSABI_IRIX.
10688
3c95f01c
JB
106892010-01-09 Joel Brobecker <brobecker@adacore.com>
10690
10691 -Wunused warning in procfs.c (mips-irix only).
10692 * procfs.c (gdb_praddset, gdb_prdelset): New macros. Use them
10693 throughout instead of using praddset and prdelset respectively.
10694
4b7703ad
JB
106952010-01-09 Joel Brobecker <brobecker@adacore.com>
10696
10697 GDB crash while stepping into function.
10698 * infrun.c (handle_inferior_event): Refetch the current frame
10699 after handling what.main_action, in case that pointer became
10700 dangling.
10701
12c89474
JB
107022010-01-09 Joel Brobecker <brobecker@adacore.com>
10703
10704 Fix build failure of solaris-hosted cross debuggers.
10705 * ada-valprint.c, parse.c: Include defs.h before including ctype.h.
10706
1a3fd262 107072010-01-09 Daniel Gutson <dgutson@codesourcery.com>
4c490650
JB
10708
10709 Fix build failure on sparc-solaris.
10710 * procfs.c: (procfs_do_thread_registers) Use elfcore_write_lwpstatus.
10711
75242ef4
JK
107122010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10713
10714 Move some symfile code into subroutines.
10715 * symfile.h (relative_addr_info_to_section_offsets)
10716 (addr_info_make_relative): New prototypes.
10717 * symfile.c (default_symfile_offsets): Move a part to ...
10718 (relative_addr_info_to_section_offsets): ... this new function.
10719 (default_symfile_offsets): Call it.
10720 (syms_from_objfile <!mainline && addrs && addrs->other[0].name>): Move
10721 this part to ...
10722 (addr_info_make_relative): ... this new function.
10723
268a4a75
JK
107242010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10725
10726 Add from_tty to solib_create_inferior_hook.
10727 * infcmd.c (post_create_inferior): Move solib_add after
10728 solib_create_inferior_hook. Pass from_tty to
10729 solib_create_inferior_hook. Call solib_add and SOLIB_ADD with
10730 0 from_tty and comment why.
10731 * infrun.c (follow_exec): Pass from_tty solib_create_inferior_hook as 0.
10732 * linux-nat.c (linux_child_follow_fork): Likewise.
10733 * nto-procfs.c (procfs_post_attach, procfs_create_inferior): Likewise.
10734 * solib-darwin.c (darwin_solib_create_inferior_hook): New parameter
10735 from_tty.
10736 * solib-frv.c (frv_solib_create_inferior_hook): Likewise.
10737 * solib-irix.c (irix_solib_create_inferior_hook): Likewise.
10738 * solib-null.c (null_solib_create_inferior_hook): Likewise.
10739 * solib-osf.c (osf_solib_create_inferior_hook): Likewise.
10740 * solib-pa64.c (pa64_solib_create_inferior_hook): Likewise.
10741 * solib-som.c (som_solib_create_inferior_hook): Likewise.
10742 * solib-spu.c (spu_solib_create_inferior_hook): New parameter from_tty.
10743 Pass it to svr4_so_ops.solib_create_inferior_hook.
10744 * solib-sunos.c (sunos_solib_create_inferior_hook): New parameter
10745 from_tty.
10746 * solib-svr4.c (enable_break): New parameter from_tty. Pass it to
10747 solib_add.
10748 (svr4_solib_create_inferior_hook): New parameter from_tty. Pass it to
10749 enable_break.
10750 * solib-target.c (solib_target_solib_create_inferior_hook): New
10751 parameter from_tty.
10752 * solib.c (solib_create_inferior_hook): New parameter from_tty. Pass
10753 it to ops->solib_create_inferior_hook.
10754 (reload_shared_libraries): Pass from_tty to solib_create_inferior_hook.
10755 Move solib_add after solib_create_inferior_hook, call it now with
10756 from_tty as 0. New comment there.
10757 * solib.h (solib_create_inferior_hook): New parameter from_tty.
10758 * solist.h (struct target_so_ops <solib_create_inferior_hook>):
10759 Likewise.
10760
cf00dfa7
VP
107612010-01-08 Vladimir Prus <vladimir@codesourcery.com>
10762
10763 Fix multiexec race.
10764 * infrun.c (handle_inferior_event): Use get_thread_regcache
10765 with events ptid, not get_current_regcache.
10766
f91e5ac3
JB
107672009-01-08 Joel Brobecker <brobecker@adacore.com>
10768
10769 GDB crash with empty executable name (MinGW).
10770 * source.c (openp): Add assert that parameter string is not NULL.
10771 if parameter string is an empty string, then return with a failure
10772 immediately.
10773
92b9ce5b
JB
107742009-01-08 Joel Brobecker <brobecker@adacore.com>
10775
10776 Get rid of support for VAX Floats.
10777 * ada-lang.h (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10778 (ada_vax_float_print_function): Delete.
10779 * ada-lang.c (ada_is_vax_floating_type, ada_vax_float_type_suffix)
10780 (ada_vax_float_print_function): Delete.
10781 * ada-typeprint.c (print_vax_floating_point_type): Delete.
10782 (ada_print_type): Remove support for VAX floats.
10783 * ada-valprint.c (ada_val_print_1): Remove support for VAX floats.
10784
268a4a75 107852010-01-08 Jan Kratochvil <jan.kratochvil@redhat.com>
d24d8548
JK
10786
10787 * stabsread.c (read_args): Handle zero arguments.
10788
f0f20949
JB
107892009-01-08 Joel Brobecker <brobecker@adacore.com>
10790
10791 Cannot find in-tree libiconv.a after reconfigure.
10792 * acinclude.m4 (AM_ICONV): If we find an in-tree libiconv.a
10793 that we can use, then cache the path to this archive.
10794 * configure: Regenerate.
10795
6b6218c5
SS
107962010-01-07 Stan Shebs <stan@codesourcery.com>
10797
35b1e5cc
SS
10798 Make tracepoint operations go through target vector.
10799 * target.h (enum trace_find_type): New enum.
10800 (struct target_ops): New fields to_trace_init,
10801 to_download_tracepoint, to_download_trace_state_variable,
10802 to_trace_set_readonly_regions, to_trace_start, to_get_trace_status,
10803 to_trace_stop, to_trace_find, to_get_trace_state_variable_value,
10804 to_set_disconnected_tracing.
10805 (target_trace_init): New macro.
10806 (target_download_tracepoint): New macro.
10807 (target_download_trace_state_variable): New macro.
10808 (target_trace_start): New macro.
10809 (target_trace_set_readonly_regions): New macro.
10810 (target_get_trace_status): New macro.
10811 (target_trace_stop): New macro.
10812 (target_trace_find): New macro.
10813 (target_get_trace_state_variable_value): New macro.
10814 (target_set_disconnected_tracing): New macro.
10815 * target.c (update_current_target): Inherit and set defaults for
10816 tracepoint operations.
10817 * tracepoint.c (default_collect): Make globally visible.
10818 (target_is_remote): Remove, along with all calls.
10819 (tvariables_info): Call target_get_trace_state_variable_value.
10820 (remote_set_transparent_ranges): Remove.
10821 (trace_start_command): Call target_trace_init,
10822 target_download_tracepoint, etc.
10823 (download_tracepoint): Remove.
10824 (trace_stop_command): Simplify.
10825 (stop_tracing): Call target_trace_stop.
10826 (get_trace_status): Call target_get_trace_status.
10827 (trace_status_command): Add case for targets that cannot trace.
10828 (finish_tfind_command): Change to take numerical arguments, call
10829 target_trace_find.
10830 (trace_find_command): Update call to finish_tfind_command.
10831 (trace_find_pc_command): Ditto.
10832 (trace_find_tracepoint_command): Ditto.
10833 (trace_find_line_command): Ditto.
10834 (trace_find_range_command): Ditto.
10835 (trace_find_outside_command): Ditto.
10836 (set_disconnected_tracing_value): Call
10837 target_set_disconnected_tracing.
10838 * remote.c: Add protocol encoding bits from tracepoint.c.
10839 (trace_error): Move from tracepoint.c.
10840 (remote_get_noisy_reply): Ditto.
10841 (free_actions_list_cleanup_wrapper): Ditto.
10842 (free_actions_list): Ditto.
10843 (remote_trace_init): New function.
10844 (remote_download_tracepoint): New function.
10845 (remote_download_trace_state_variable): New function.
10846 (remote_trace_set_readonly_regions): New function.
10847 (remote_trace_start): New function.
10848 (remote_get_trace_status): New function.
10849 (remote_trace_stop): New function.
10850 (remote_trace_find): New function.
10851 (remote_download_trace_state_variable): New function.
10852 (remote_set_disconnected_tracing): New function.
10853 (init_remote_ops): Add tracepoint operations.
10854
6b6218c5
SS
10855 * tracepoint.c (trace_dump_command): Don't decr_pc_after_break.
10856
089b4803
TG
108572010-01-07 Tristan Gingold <gingold@adacore.com>
10858
10859 * symfile.c (build_section_addr_info_from_objfile): New function.
10860 (symbol_file_add_separate): Don't use offsets from objfile but
10861 built an addr info.
10862
d5551862
SS
108632010-01-06 Stan Shebs <stan@codesourcery.com>
10864
10865 Support disconnected tracing.
10866 * infcmd.c (detach_command): Ask whether to stop tracing.
10867 * cli/cli-cmds.c (quit_command): Ditto.
10868 * breakpoint.h (struct breakpoint): New field number_on_target.
10869 * breakpoint.c (create_tracepoint_from_upload): New function.
10870 (get_tracepoint_by_number_on_target): New function.
10871 * remote.c (struct remote): New field disconnected_tracing.
10872 (remote_disconnected_tracing_feature): New function.
10873 (remote_protocol_features): Add DisconnectedTracing.
10874 (struct uploaded_tp): New struct.
10875 (uploaded_tps): New global.
10876 (get_uploaded_tp): New function.
10877 (find_matching_tracepoint): New function.
10878 (remote_get_tracing_state): New function.
10879 (remote_start_remote): Call it.
10880 * tracepoint.c (disconnected_tracing): New global.
10881 (trace_start_command): Initialize number_on_target.
10882 (stop_tracing): New function, split out from...
10883 (trace_stop_command): Call stop_tracing.
10884 (get_trace_status): New function, split out from...
10885 (trace_status_command): Call get_trace_status, add info on
10886 disconnection behavior.
10887 (disconnect_or_stop_tracing): New function.
10888 (finish_tfind_command): Translate from number on target.
10889 (trace_find_tracepoint_command): Translate to number on target.
10890 (send_disconnected_tracing_value): New function.
10891 (set_disconnected_tracing): New function.
10892 (_initialize_tracepoint): Add disconnected-tracing variable.
10893 * NEWS: Mention disconnected tracing.
10894
15d123c9
TG
108952010-01-06 Tristan Gingold <gingold@adacore.com>
10896
10897 * symtab.c (lookup_global_symbol_from_objfile): Rename objfile
10898 parameter to main_objfile. Iterate on all separate debug objfiles.
10899 * symfile.h (symbol_file_add_separate)
10900 (find_separate_debug_file_by_debuglink): Remove parameter names.
10901 * symfile.c (symbol_file_add_separate): Use add_separate_objfile.
10902 (reread_symbols): Use free_objfile_separate_debug.
10903 * objfiles.h (struct objfile): Add separate_debug_objfile_link.
10904 Adjust comment.
10905 (objfile_separate_debug_iterate, add_separate_debug_objfile)
10906 (free_objfile_separate_debug): New prototypes.
10907 * objfiles.c (objfile_separate_debug_iterate): New function.
10908 (add_separate_debug_objfile, free_objfile_separate_debug): New
10909 functions.
10910 (free_objfile): Use free_objfile_separate_debug. Adjust for
10911 multiple separate debug objfile.
10912 (objfile_has_symbols): Adjust comment. Iterate on all separate
10913 debug objfiles.
10914 * minsyms.c (lookup_minimal_symbol): Adjust for multiple separate
10915 debug objfile.
10916 (lookup_minimal_symbol_text): Ditto.
10917 (lookup_minimal_symbol_by_pc_name): Ditto.
10918 (lookup_minimal_symbol_solib_trampoline): Ditto.
10919 (lookup_minimal_symbol_by_pc_section_1): Iterate on all separate
10920 debug objfiles.
10921
7a697b8d
SS
109222010-01-05 Stan Shebs <stan@codesourcery.com>
10923
10924 Add fast tracepoints.
10925 * arch-utils.h (default_fast_tracepoint_valid_at): Declare.
10926 * arch-utils.c (default_fast_tracepoint_valid_at): New function.
10927 * breakpoint.h (enum bptype): Add bp_fast_tracepoint.
10928 * breakpoint.c (tracepoint_type): New function.
10929 (ALL_TRACEPOINTS): Use it.
10930 (should_be_inserted): Ditto.
10931 (bpstat_check_location): Ditto.
10932 (print_one_breakpoint_location): Ditto.
10933 (user_settable_breakpoint): Ditto.
10934 (set_breakpoint_location_function): Ditto.
10935 (disable_breakpoints_in_shlibs): Ditto.
10936 (delete_trace_command): Ditto.
10937 (print_it_typical): Add bp_fast_tracepoint case.
10938 (bpstat_what): Ditto.
10939 (print_one_breakpoint_location): Ditto.
10940 (allocate_bp_location): Ditto.
10941 (mention): Ditto.
10942 (breakpoint_re_set_one): Ditto.
10943 (disable_command): Ditto.
10944 (enable_command): Ditto.
10945 (check_fast_tracepoint_sals): New function.
10946 (break_command_really): Call it.
10947 (ftrace_command): New function.
10948 (_initialize_breakpoint): Add ftrace command.
10949 * gdbarch.sh (fast_tracepoint_valid_at): New.
10950 * gdbarch.h, gdbarch.c: Regenerate.
10951 * i386-tdep.c (i386_fast_tracepoint_valid_at): New function.
10952 (i386_gdbarch_init): Use it.
10953 * remote.c (struct remote_state): New field fast_tracepoints.
10954 (PACKET_FastTracepoints): New packet config type.
10955 (remote_fast_tracepoint_feature): New function.
10956 (remote_protocol_features): Add FastTracepoints.
10957 (remote_supports_fast_tracepoints): New function.
10958 (_initialize_remote): Add FastTracepoints.
10959 * tracepoint.c (download_tracepoint): Add fast tracepoint option.
10960 * NEWS: Mention fast tracepoints.
10961
737a160e
JB
109622010-01-06 Joel Brobecker <brobecker@adacore.com>
10963
10964 * gdb-gdb.py: New file.
10965
ce6cca6d
MS
109662010-01-05 Michael Snyder <msnyder@vmware.com>
10967
10968 * infrun.c (handle_inferior_event): Fix typo in comment.
10969
0d15807d
JK
109702010-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10971
10972 * symfile.c (syms_from_objfile): Remove the !MAINLINE conditional.
10973
7803799a
UW
109742010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10975
c8d5aac9 10976 * features/Makefile (WHICH): Add s390-linux32, s390-linux64,
7803799a
UW
10977 and s390x-linux64.
10978 (s390-linux32-expedite): Define.
10979 (s390-linux64-expedite): Define.
10980 (s390x-linux64-expedite): Define.
10981 * features/s390-acr.xml: New file.
10982 * features/s390-fpr.xml: New file.
10983 * features/s390-core32.xml: New file.
10984 * features/s390-core64.xml: New file.
10985 * features/s390x-core64.xml: New file.
10986 * features/s390-linux32.xml: New file.
10987 * features/s390-linux64.xml: New file.
10988 * features/s390x-linux64.xml: New file.
10989 * features/s390-linux32.c: New generated file.
10990 * features/s390-linux64.c: New generated file.
10991 * features/s390x-linux64.c: New generated file.
10992
10993 * regformats/s390-linux32.dat: New generated file.
10994 * regformats/s390-linux64.dat: New generated file.
10995 * regformats/s390x-linux64.dat: New generated file.
10996 * regformats/reg-s390.dat: Remove.
10997 * regformats/reg-s390x.dat: Remove.
10998
10999 * s390-nat.c: Include "auxv.h" and <elf.h>.
11000 (HWCAP_S390_HIGH_GPRS): Define if undefined.
11001 (s390_target_wordsize): New function.
11002 (s390_auxv_parse): Likewise.
11003 (s390_get_hwcap): Likewise.
11004 (s390_read_description): Likewise.
11005 (_initialize_s390_nat): Install s390_auxv_parse and
11006 s390_read_description.
11007
11008 * s390-tdep.c: Include "features/s390-linux32.c",
11009 "features/s390-linux64.c", and "features/s390x-linux64.c".
11010 (struct gdbarch_tdep): Add gpr_full_regnum, pc_regnum, and cc_regnum.
11011 (s390_register_call_saved): New function.
11012 (s390_register_name): Remove.
11013 (s390_register_type): Remove.
11014 (s390_dwarf_regmap): Add lower half GPR pseudo DWARF CFI regnums.
11015 (s390_dwarf_reg_to_regnum): Remap GPR regnums to full GPRs.
11016 (s390_adjust_frame_regnum): Remap GPR regnums to lower halves for CFI.
11017 (s390_pseudo_register_name): New function.
11018 (s390_pseudo_register_type): New function.
11019 (s390_pseudo_register_read): Handle both 32-bit and 64-bit cases.
11020 Handle full GPR pesudos and varying pseudo register numbers.
11021 (s390_pseudo_register_write): Likewise
11022 (s390x_pseudo_register_read): Remove.
11023 (s390x_pseudo_register_write): Likewise.
11024 (s390_register_group): Remove.
11025 (s390_pseudo_register_group): New function.
11026 (s390_regmap_gregset): Add GPR upper halves.
11027 (s390x_regmap_gregset): Likewise.
11028 (s390_regmap_fpregset): Likewise.
11029 (s390_regmap_upper): New global variable.
11030 (s390_upper_regset): New global variable.
11031 (s390_upper_regset_sections): New global variable.
11032 (s390_regset_from_core_section): Handle GPR upper halves.
11033 (s390_core_read_description): New function.
11034 (s390_prologue_frame_unwind_cache): Set up ABI call-saved/clobbered
11035 register information. Handle varying pseudo register numbers.
11036 (s390_backchain_frame_unwind_cache): Likewise.
11037 (s390_frame_prev_register): Unwind full GPRs to show lower halves.
11038 (s390_stub_frame_unwind_cache): Handle varying pseudo register numbers.
11039 (s390_sigtramp_frame_unwind_cache): Unwind PSWM and PSWA as well as
11040 PC and CC pseudos. Unwind upper halves and full GPRs as appropriate.
11041 Handle varying pseudo register numbers.
11042 (s390_unwind_pc): Handle varying pseudo register numbers.
11043 (s390_dwarf2_prev_register): New function.
11044 (s390_dwarf2_frame_init_reg): Set up ABI call-saved/clobbered
11045 register information. Handle varying pseudo register numbers.
11046 Install s390_dwarf2_prev_register to unwind full GPRs.
11047 (s390_gdbarch_init): Handle target descriptions. Assign varying
11048 pseudo register numbers. Install s390_adjust_frame_regnum.
11049 (_initialize_s390_tdep): Initialize target descriptions.
11050
11051 * s390-tdep.h (S390_R0_UPPER_REGNUM .. S390_R15_UPPER_REGNUM): Define.
11052 (S390_NUM_REGS): Redefine to include upper half registers.
11053 (S390_PC_REGNUM, S390_CC_REGNUM): Remove.
11054 (S390_NUM_PSEUDO_REGS, S390_NUM_TOTAL_REGS): Likewise.
11055 (tdesc_s390_linux32): Add declaration.
11056 (tdesc_s390_linux64): Likewise.
11057 (tdesc_s390x_linux64): Likewise.
11058
1b1818e4
UW
110592010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11060
11061 * regset.h (struct core_regset_section): Add HUMAN_NAME.
11062 * i386-linux-tdep.c (i386_linux_regset_sections): Fill in HUMAN_NAME.
11063 * ppc-linux-tdep.c (ppc_linux_vsx_regset_sections): Likewise.
11064 (ppc_linux_vmx_regset_sections): Likewise.
11065 (ppc_linux_fp_regset_sections): Likewise.
11066
11067 * corelow.c (get_core_register_section): Constify arguments.
11068 (get_core_registers): Use gdbarch_core_regset_sections instead
11069 of hard-coded platform-specific register section names.
11070
dcbf108f
UW
110712010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11072
11073 * dwarf2loc.c (read_pieced_value): If a piece occupies part of
b3f41522 11074 a register, assume the least-significant part is used.
dcbf108f
UW
11075 (write_pieced_value): Likewise.
11076
704e9165
UW
110772010-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11078
11079 * printcmd.c: Include "arch-utils.h".
11080 (do_one_display): Re-parse expression if current architecture changed.
11081
c54eabfa
JK
110822010-01-03 Jan Kratochvil <jan.kratochvil@redhat.com>
11083 Joel Brobecker <brobecker@adacore.com>
11084
11085 * gdbtypes.c (check_typedef): New comment on type length.
11086 * value.c (allocate_value_lazy): Remove the unused atype variable. New
11087 comment on type length.
11088 (value_primitive_field): Keep the original TYPE value, new comment.
11089
50cb2941
JK
110902010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11091
11092 * cli/cli-script.c (process_next_line): Rename p1 as p_end and p2 as
11093 p_start. Change != comparisons to > and < comparisons.
11094
be66db07
JK
110952010-01-01 Jan Kratochvil <jan.kratochvil@redhat.com>
11096
11097 * cli/cli-script.c (process_next_line): Check P2 overrun.
11098
abd775ce
JB
110992009-01-01 Joel Brobecker <brobecker@adacore.com>
11100
11101 Update the copyright hearder to add year 2010 for most GDB files.
11102
6479260d
JB
111032009-01-01 Joel Brobecker <brobecker@adacore.com>
11104
11105 Fix build failure in inf-ptrace.c.
11106 * inf-ptrace.c (inf_ptrace_follow_fork): Fix typo.
11107
4a70f654
JB
111082010-01-01 Joel Brobecker <brobecker@adacore.com>
11109
11110 * top.c (print_gdb_version): Update copyright year.
11111
595939de 111122010-01-01, 10 Joel Brobecker <brobecker@adacore.com>
b9ee2233
JB
11113
11114 Fix break *FUN'address thread NUM.
11115 * ada-lex.l (task): Expand rule to also match the thread keyword.
11116
70575d34
JB
111172010-01-01 Joel Brobecker <brobecker@adacore.com>
11118
11119 Fix break *FUN'address task NUM.
11120 * ada-lex.l (task): New rule.
11121 * ada-lang.c (valid_task_id): Make sure the Ada task list has
11122 been built before using it.
11123
e1e4d4a4 11124For older changes see ChangeLog-2009.
c906108c
SS
11125\f
11126Local Variables:
11127mode: change-log
11128left-margin: 8
11129fill-column: 74
11130version-control: never
57da7796 11131coding: utf-8
c906108c 11132End:
This page took 2.404028 seconds and 4 git commands to generate.