2012-11-07 Pedro Alves <palves@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
892a8570
PA
12012-11-07 Pedro Alves <palves@redhat.com>
2
3 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
4 Committee.
5
719502e9
PM
62012-11-07 Pierre Muller <muller@sourceware.org>
7
8 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
9 File already uses "gdb_dirent.h" header.
10
ed86b350
YQ
112012-11-07 Yao Qi <yao@codesourcery.com>
12
13 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
14 tracepoint_count'.
15
9a4f1e4f
TT
162012-11-06 Tom Tromey <tromey@redhat.com>
17
18 * target.h (inferior_has_forked, inferior_has_vforked)
19 (inferior_has_execd, inferior_has_called_syscall): Remove
20 declarations.
21
0316657e
PM
222012-11-06 Pierre Muller <muller@sourceware.org>
23
24 * remote.c (remote_insert_hw_breakpoint): ARI fix,
25 add missing internalization markup.
26
f6592439
PA
272012-11-06 Pedro Alves <palves@redhat.com>
28
29 PR gdb/14810
30
31 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
32
01f2564a
PM
332012-11-06 Pierre Muller <muller@sourceware.org>
34
35 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
36 is not executable.
37
f37c4431
JB
382012-11-05 Joel Brobecker <brobecker@adacore.com>
39
40 * gnulib/update-gnulib.sh: New script.
41
550889c3
JB
422012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
43
44 * MAINTAINERS: Update my email address.
45
954b50b3
TT
462012-11-05 Tom Tromey <tromey@redhat.com>
47
48 * frame.c (put_frame_register): Don't use temporary buffer.
49
68c9da30
PA
502012-11-05 Pedro Alves <palves@redhat.com>
51
52 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
53 child. Clear 'pending_detach'.
54 * infrun.c (handle_vfork_child_exec_or_exit): Clear
55 'pending_detach' in the vfork parent.
56
80626a55
DE
572012-11-05 Doug Evans <dje@google.com>
58
59 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
60 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
61 * dwarf2read.c: #include "elf-bfd.h".
62 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
63 (dwop_section_names): Renamed from dwo_section names. All uses
64 updated. Add entries for .debug_cu_index, .debug_tu_index.
65 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
66 All uses updated.
67 (struct dwp_sections): New type.
68 (struct virtual_dwo_sections): New type.
69 (struct dwp_hash_table): New type.
70 (struct dwp_file): New type.
71 (init_cutu_and_read_dies): Ensure DWO info/types section has been
72 read in. Handle DWOs coming from DWP files.
73 (lookup_dwo_file_slot): New function.
74 (dwarf2_locate_dwo_sections): Move definition closer to use.
75 (create_dwo_debug_info_hash_table_reader): Renamed from
76 create_debug_info_hash_table_reader. All callers updated.
77 (create_dwo_debug_info_hash_table): Renamed from
78 create_debug_info_hash_table. All callers updated.
79 (create_dwp_hash_table): New function.
80 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
81 (lookup_dwo_in_dwp): New function.
82 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
83 is_dwp. All callers updated.
84 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
85 (open_and_init_dwo_file): Renamed from init_dwo_file.
86 All callers updated.
87 (lookup_dwo_file): Delete.
88 (dwarf2_locate_dwp_sections): New function.
89 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
90 (allocate_dwp_loaded_cutus_table): New function.
91 (open_and_init_dwp_file): New function.
92 (lookup_dwo_cutu): New function.
93 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
94
6f6484cd
YQ
952012-11-03 Yao Qi <yao@codesourcery.com>
96
97 Fix PR gdb/14617.
98 * breakpoint.c (trace_pass_set_count): Call
99 observer_notify_breakpoint_modified instead of
100 observer_notify_tracepoint_modified.
101 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
102
b45627a0
TT
1032012-11-02 Tom Tromey <tromey@redhat.com>
104
105 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
106 argument to complete_on_enum.
107
d4fb63e1
TT
1082012-11-02 Tom Tromey <tromey@redhat.com>
109
110 * configure: Rebuild.
111 * configure.ac (build_warnings): Add -Wempty-body.
112 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
113 * remote.c (handle_notification): Use braces for empty 'else' body.
114 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
115 'else' body.
116 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
117 'else' body.
118 * solib-som.c (som_relocate_section_addresses): Use braces
119 for empty 'else' body.
120 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
121 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
122
f50f4e56
PA
1232012-11-02 Pedro Alves <palves@redhat.com>
124
125 PR gdb/14766
126
127 * infrun.c (handle_inferior_event)
128 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
129 null_ptid before handling a vfork child exec or exit. Switch to
130 the event ptid afterwards.
131
f0559fff
YQ
1322012-11-02 Yao Qi <yao@codesourcery.com>
133
134 * std-operator.def: Remove OP_LABELED.
135 * eval.c: Remove the declaration of 'get_label'.
136 (get_label): Remove.
137 (evaluate_struct_tuple): Remove code handling OP_LABELED.
138 Update comment.
139 Remove local variable 'variantno' and related code.
140 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
141 with 'fieldno'.
142 * expprint.c (print_subexp_standard): Likewise.
143 (dump_subexp_body_standard): Likewise.
144 * parse.c (operator_length_standard): Likewise.
145
e5496e3e
PM
1462012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
147
148 Incorporate ARI web page generator into GDB sources.
149 * contrib/ari/create-web-ari-in-src.sh: New file.
150 * contrib/ari/gdb_ari.sh: New file.
151 * contrib/ari/gdb_find.sh: New file.
152 * contrib/ari/update-web-ari.sh: New file.
153
c66fb220
TT
1542012-10-31 Tom Tromey <tromey@redhat.com>
155
156 * gdbarch.c: Rebuild.
157 * gdbarch.sh: Remove references to gdbarch_swap.
158 * corelow.c (core_open): Remove obsolete comment.
159
2f27adfe
AB
1602012-10-31 Andrew Burgess <aburgess@broadcom.com>
161
162 PR cli/14772
163 * c-typeprint.c (c_print_type): Don't print a space for vector
164 types, this is handled within the suffix.
165 (c_type_print_varspec_suffix): Add a space to vector suffix.
166
144db827
PA
1672012-10-26 Pedro Alves <palves@redhat.com>
168
169 * amd64-tdep.c (amd64_relocate_instruction): Use
170 store_unsigned_integer instead of memcpy.
171 * i386-tdep.c (i386_relocate_instruction): Ditto.
172
940c3c06
PA
1732012-10-26 Pedro Alves <palves@redhat.com>
174
175 * infrun.c (handle_inferior_event): Merge handling of
176 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
177 switch case.
178
47b19065
PA
1792012-10-26 Pedro Alves <palves@redhat.com>
180
181 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
182 Remove comment.
183
87d2d2a4
PA
1842012-10-26 Pedro Alves <palves@redhat.com>
185
186 * target.c (target_waitstatus_to_string): Handle
187 TARGET_WAITKIND_VFORK_DONE.
188
fed708ed
PA
1892012-10-26 Pedro Alves <palves@redhat.com>
190
191 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
192 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
193
2590b645
JB
1942012-10-24 Tristan Gingold <gingold@adacore.com>
195
196 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
197 Add comments.
198
bed0c243
JB
1992012-10-24 Joel Brobecker <brobecker@adacore.com>
200
201 * ravenscar-thread.c (ravenscar_wait): Only update the list
202 of threads and inferior_ptid if the inferior is still alive.
203
f69c91ad
JB
2042012-10-24 Joel Brobecker <brobecker@adacore.com>
205
206 * ada-lang.c (is_known_support_routine): Use lbasename when
207 matching the symtab's filename against
208 known_runtime_file_name_patterns.
209
d99dcf51
JB
2102012-10-24 Joel Brobecker <brobecker@adacore.com>
211
212 * ada-lang.c (ada_same_array_size_p): New function.
213 (ada_promote_array_of_integrals): New function.
214 (coerce_for_assign): Add handling of arrays where the elements
215 are integrals of a smaller size than the size of the target
216 array element type.
217
32560274
JB
2182012-10-24 Joel Brobecker <brobecker@adacore.com>
219
220 * doublest.c (convert_doublest_to_floatformat): Fix comparison
221 against maximum exponent value.
222
5a04cc98
JB
2232012-10-24 Joel Brobecker <brobecker@adacore.com>
224
225 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
226 "unwind-seh.c".
227
5ded5331
JB
2282012-10-24 Joel Brobecker <brobecker@adacore.com>
229
230 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
231 strip typedef layer when computing the fixed type's field type,
232 only when computing its size.
233
2445fd7b
MK
2342012-10-24 Mark Kettenis <kettenis@gnu.org>
235
236 PR gdb/12783
237 * i386-tdep.c (i386_return_value): Handle complex double and long
238 double.
239
8f205f9c
JB
2402012-10-24 Joel Brobecker <brobecker@adacore.com>
241
242 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
243 New local variable args_len.
244 Quote the name of the executable when computing the command line.
245
7f7930dd
MK
2462012-10-23 Mark Kettenis <kettenis@gnu.org>
247
248 PR gdb/12796
249 PR gdb/12798
250 PR gdb/12800
251 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
252 AMD64_FTAG_REGNUM.
253 * amd64-tdep.c (amd64_classify): Classify complex types.
254 (amd64_return_value): Handle the COMPLEX_X87 class.
255
38a69d0a
JB
2562012-10-23 Joel Brobecker <brobecker@adacore.com>
257
258 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
259 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
260
83ab93c6
JB
2612012-10-23 Joel Brobecker <brobecker@adacore.com>
262
263 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
264 function.
265 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
266 to amd64_windows_auto_wide_charset.
267
f6fbab7d
YQ
2682012-10-23 Yao Qi <yao@codesourcery.com>
269
270 * event-top.c (mark_async_signal_handler_wrapper): Remove.
271 * event-top.h: Remove its declaration.
272 (async_request_quit): Call mark_async_signal_handler instead of
273 mark_async_signal_handler_wrapper.
274 (async_do_nothing, async_disconnect): Likewise.
275 (async_stop_sig): Likewise.
276 * remote.c (handle_remote_sigint): Likewise.
277 (handle_remote_sigint_twice): Likewise.
278
05fa9251
YQ
2792012-10-23 Yao Qi <yao@codesourcery.com>
280
281 * event-top.c (sigint_token, sighup_token): Replace 'void *'
282 with 'static struct async_signal_handler *'.
283 (sighup_token, sigquit_token, sigstp_token): Likewise.
284
08af7a40
AA
2852012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
286
287 * gdbarch.sh (function_list): Use 'pstring' when printing
288 a variable which could return NULL.
289 * gdbarch.c: Regenerate.
290
beb4b03c
JB
2912012-10-10 Joel Brobecker <brobecker@adacore.com>
292 Tom Tromey <tromey@redhat.com>
293
294 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
295 inneffective if condition by gdb assertion. Add function
296 description comment.
297
a5b12627
JB
2982012-10-19 Joel Brobecker <brobecker@adacore.com>
299
300 * parser-defs.h (struct exp_descriptor): Document constraint
301 on return value for "op_name" callbacks.
302
0b0865da
TT
3032012-10-18 Tom Tromey <tromey@redhat.com>
304
305 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
306 * symtab.c (iterate_over_some_symtabs): Constify.
307 * source.h (symtab_to_fullname): Return 'const char *'.
308 * source.c (symtab_to_fullname): Return 'const char *'.
309 * python/py-symtab.c (stpy_fullname): Constify.
310 * cli/cli-cmds.c (edit_command): Constify.
311 * breakpoint.c (print_breakpoint_location)
312 (update_static_tracepoint): Constify.
313
94b0e70d
TT
3142012-10-18 Tom Tromey <tromey@redhat.com>
315
316 * breakpoint.c (compare_breakpoints): Fix comparison.
317
fff10684
TT
3182012-10-18 Tom Tromey <tromey@redhat.com>
319
320 * valprint.c (generic_emit_char, generic_printstr): Pass size of
321 gdb_wchar_t to convert_between_encodings.
322
8de0566d
YQ
3232012-10-17 Yao Qi <yao@codesourcery.com>
324
325 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
326 more parameter 'inferior'.
327 * corefile.c (write_memory_with_notification): Caller update.
328
329 * mi/mi-cmd-var.c: Include "mi-main.h".
330 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
331 to 1 and restore it later.
332 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
333 and "data-write-memory-bytes.
334 * mi/mi-interp.c: Include objfiles.h.
335 (mi_interpreter_init): Call observer_attach_memory_changed.
336 (mi_memory_changed): New.
337 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
338 New field.
339
340 * NEWS: Mention new MI notification "memory-changed".
341
6235cdd1
JK
3422012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
343
344 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
345
07540c15
DE
3462012-10-15 Doug Evans <dje@google.com>
347
348 New option -nh: inhibit loading of ~/.gdbinit.
349 * NEWS: Mention -nh.
350 * main.c (captured_main): Recognize and process -nh.
351 (print_gdb_help): Mention -nh.
352 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
353
eab09350
L
3542012-10-15 H.J. Lu <hongjiu.lu@intel.com>
355
356 PR backtrace/14646
357 PR gdb/14647
358 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
359 pc_regnum_from_eax.
360 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
361 nor pc_regnum_from_eax.
362 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
363 nor pc_regnum_from_eax.
364
9e3a7d65
JK
3652012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
366
367 Fix entry values resolving in inlined frames.
368 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
369 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
370 entries of FRAME.
371
c83393b9
JB
3722012-10-15 Joel Brobecker <brobecker@adacore.com>
373
374 * configure.ac: Build with -DMS_WIN64 if building with Python
375 enabled using GCC on amd64-windows.
376 * configure: Regenerate.
377
801e4185
TT
3782012-10-15 Tom Tromey <tromey@redhat.com>
379
380 PR python/14635:
381 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
382 to Py_None.
383
74f910c8
TT
3842012-10-15 Tom Tromey <tromey@redhat.com>
385
386 PR python/14634:
387 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
388
2a7c8fd5
AB
3892012-10-11 Andrew Burgess <aburgess@broadcom.com>
390
391 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
392 reset thread numbering back to 1.
393
7c09e5a0
DE
3942012-10-11 Doug Evans <dje@google.com>
395
396 PR breakpoints/14643.
397 * linespec.c (struct ls_parser): New member keyword_ok.
398 (linespec_lexer_lex_string): Add comment.
399 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
400 for one.
401 (parse_linespec): Set keyword_ok.
402
a1855c1d
DE
4032012-10-10 Doug Evans <dje@google.com>
404
844226d6
DE
405 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
406 "0x" prefix on address in log message.
407
a1855c1d
DE
408 * dwarf2read.c (read_1_byte): Add const to buf parameter.
409 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
410 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
411 (lookup_dwo_file): Add const to dwo_name parameter.
412 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
413
2e24f4aa
JK
4142012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
415
416 Fix crash during stepping on ppc32.
417 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
418 SYM.
419
aa14df25
DE
4202012-10-03 Doug Evans <dje@google.com>
421
422 PR symtab/14601
423 * buildsym.c (buildsym_init): Reset using_directives to NULL.
424
3d468296
AB
4252012-10-02 Andrew Burgess <aburgess@broadcom.com>
426
427 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
428 output and use uint32_t not long to ensure 4 byte size.
429
8f0ee2eb
JB
4302012-10-02 Joel Brobecker <brobecker@adacore.com>
431
432 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
433 unref'ed it.
434
b3dc46ff
AB
4352012-10-01 Andrew Burgess <aburgess@broadcom.com>
436
437 * target.c (simple_search_memory): Include access length in
438 warning message.
439
f712f01f
EBM
4402012-09-28 Nathan Miller <nathanm2@us.ibm.com>
441 Edjunior Machado <emachado@linux.vnet.ibm.com>
442
443 PR gdb/13989
444 * solib.c (solib_find): Prevent GDB from loading native libraries when
445 debugging a cross-target corefile.
446
39181896
PA
4472012-09-28 selven <pcthegreat@gmail.com>
448
449 Make definition match declaration.
450
451 * regcache.c (regcache_register_status): Change return type to
452 enum register_status.
453
4c2786ba
YQ
4542012-09-28 Yao Qi <yao@codesourcery.com>
455
456 * mi/mi-main.c (mi_cmd_data_write_memory): Call
457 write_memory_with_notification instead of write_memory.
458 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
459 instead of target_write_memory.
460
1ae0c35e
YQ
4612012-09-28 Yao Qi <yao@codesourcery.com>
462
463 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
464 when the length of content is not an even number.
465
7977e5d2
TT
4662012-09-27 Tom Tromey <tromey@redhat.com>
467
468 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
469 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
470
807160da
JB
4712012-09-27 Joel Brobecker <brobecker@adacore.com>
472
473 * sol-thread.c (sol_thread_fetch_registers)
474 (sol_thread_store_registers): Delete commented out code.
475
43c75337
JB
4762012-09-27 Joel Brobecker <brobecker@adacore.com>
477
478 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
479 Move these functions to sparc-sol-thread.c.
480 * sparc-sol-thread.c: New file.
481 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
482 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
483 configurations.
484 * configure: Regenerate.
485
d292a972
JB
4862012-09-27 Joel Brobecker <brobecker@adacore.com>
487
488 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
489 Remove commented-out code.
490
8c3da003
JB
4912012-09-27 Joel Brobecker <brobecker@adacore.com>
492
493 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
494 Enable this code for sparc hosts only.
495
f00482b6
JB
4962012-09-27 Joel Brobecker <brobecker@adacore.com>
497
498 * procfs.h (procfs_find_LDT_entry): Add declaration.
499 * sol-thread.c (ps_lgetLDT): Delete local declaration of
500 function procfs_find_LDT_entry.
501
337c776f
JB
5022012-09-27 Joel Brobecker <brobecker@adacore.com>
503
504 * procfs.c (proc_get_LDT_entry): Make static.
505
1a04d88f
JB
5062012-09-27 Joel Brobecker <brobecker@adacore.com>
507
508 * procfs.c (proc_find_memory_regions): Fix declaration.
509
bad43aa5
SP
5102012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
511
512 * amd64-tdep.c (amd64_return_value): Revert previous change
513 that used TYPE_LENGTH directly.
514 * bfin-tdep.c (bfin_extract_return_value): Likewise.
515 (bfin_store_return_value): Likewise.
516 * cris-tdep.c (cris_store_return_value): Likewise.
517 (cris_extract_return_value): Likewise.
518 * h8300-tdep.c (h8300_extract_return_value): Likewise.
519 * hppa-tdep.c (hppa64_return_value): Likewise.
520 * lm32-tdep.c (lm32_store_return_value): Likewise.
521 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
522 * spu-tdep.c (spu_value_from_register): Likewise.
523 * vax-tdep.c (vax_return_value): Likewise.
524
63375b74
SP
5252012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
526
527 * gdbtypes.c (lookup_array_range_type): Expand parameters
528 LOW_BOUND and HIGH_BOUND to LONGEST.
529 (lookup_string_range_type): Likewise.
530 * gdbtypes.h (lookup_array_range_type): Likewise.
531 (lookup_string_range_type): Likewise.
532 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
533 Expand HIGHBOUND to ssize_t.
534 (value_string): Likewise.
535 * value.h (value_cstring): Expand parameter LEN to ssize_t.
536 (value_string): Likewise.
537
19ca11c5
YQ
5382012-09-27 Yao Qi <yao@codesourcery.com>
539
540 PR breakpoints/13898
541 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
542 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
543 per breakpoint type.
544
92107356
PM
5452012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
546
547 * procfs.c: Add gdb_bfd header.
548 * rs6000-nat.c: Likewise.
549 * solib-pa64.c: Likewise.
550 * spu-linux-nat.c: Likewise.
551 * windows-nat.c: Likewise.
552
9742094a
TT
5532012-09-26 Tom Tromey <tromey@redhat.com>
554
555 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
556
0971de02
TT
5572012-09-26 Tom Tromey <tromey@redhat.com>
558
559 * dwarf2read.c (mark_common_block_symbol_computed): New function.
560 (read_common_block): Handle child DIEs with
561 DW_AT_data_member_location.
562 (new_symbol_full): Add special case for common blocks.
563
4357ac6c
TT
5642012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
565 Tom Tromey <tromey@redhat.com>
566
567 * dwarf2read.c (read_common_block): Rewrite.
568 (new_symbol_full): Handle DW_TAG_common_block.
569 * f-lang.c (head_common_list, find_common_for_function):
570 Remove.
571 * f-lang.h (struct common_entry, struct saved_f77_common,
572 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
573 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
574 BLANK_COMMON_NAME_LOCAL): Remove.
575 (struct common_block): New.
576 * f-valprint.c (list_all_visible_commons): Remove.
577 (info_common_command_for_block): New function.
578 (info_common_command): Use it.
579 * stack.c (iterate_over_block_locals): Special case for
580 COMMON_BLOCK_DOMAIN.
581 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
582 constant.
583 (struct general_symbol_info) <value.common_block>: New field.
584 (SYMBOL_VALUE_COMMON_BLOCK): New define.
585
965f07a8
TT
5862012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
587 Tom Tromey <tromey@redhat.com>
588
589 * f-lang.c (allocate_saved_bf_node,
590 allocate_saved_function_node, allocate_saved_f77_common_node,
591 allocate_common_entry_node, tail_common_list, current_common,
592 saved_bf_list, saved_bf_list_end, current_head_bf_list,
593 tmp_bf_ptr, add_common_block, add_common_entry,
594 find_first_common_named, patch_common_entries,
595 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
596 global_remote_debug, get_bf_for_fcn, saved_function_list,
597 saved_function_list_end, clear_function_list, struct saved_fcn,
598 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
599 SAVED_BF, SAVED_BF_PTR): Remove.
600 * f-lang.h (tail_common_list, current_common,
601 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
602 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
603 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
604 real_main_c_value): Remove.
605 * f-valprint.c (there_is_a_visible_common_named): Remove.
606
6f380991
AB
6072012-09-26 Andrew Burgess <aburgess@broadcom.com>
608
609 * breakpoint.c (update_global_location_list): Ignore previous
610 duplicate status of a breakpoint when starting a new scan for
611 duplicate breakpoints.
612
9ead7ae4 6132012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 614 PR breakpoints/14419
2536b51c
YQ
615 * arm-tdep.c (arm_skip_prologue): Extending producer check to
616 support LLVM compiler.
9ead7ae4 617
8f8a23a2
SP
6182012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
619
620 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
621 * bfin-tdep.c (bfin_extract_return_value): Likewise.
622 (bfin_store_return_value): Likewise.
623 * cris-tdep.c (cris_store_return_value): Likewise.
624 (cris_extract_return_value): Likewise.
625 * h8300-tdep.c (h8300_extract_return_value): Likewise.
626 * hppa-tdep.c (hppa64_return_value): Likewise.
627 * lm32-tdep.c (lm32_store_return_value): Likewise.
628 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
629 * spu-tdep.c (spu_value_from_register): Likewise.
630 * vax-tdep.c (vax_return_value): Likewise.
631
d7019589
SP
6322012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
633
634 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
635 parameter LEN to ssize_t.
636
744a8059
SP
6372012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
638
639 * ada-valprint.c (ada_val_print_1): Eliminate single-use
640 variable LEN.
641 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
642 directly.
643 (alpha_store_return_value): Likewise.
644 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
645 (amd64_push_arguments): Likewise.
646 * ax-gdb.c (gen_trace_static_fields): Likewise.
647 (gen_traced_pop): Likewise.
648 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
649 * breakpoint.c (update_watchpoint): Likewise.
650 * findcmd.c (parse_find_args): Use local variable for type
651 instead of length.
652 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
653 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
654 (h8300_store_return_value): Likewise.
655 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
656 Use i386_darwin_arg_type_alignment directly.
657 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
658 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
659 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
660 (m68hc11_extract_return_value): Likewise.
661 * mep-tdep.c (mep_push_dummy_call): Likewise.
662 * printcmd.c (float_type_from_length): Likewise.
663 * s390-tdep.c (s390_value_from_register): Likewise.
664 * stack.c (read_frame_arg): Likewise.
665 * tracepoint.c (encode_actions_1): Likewise.
666 * valops.c (value_fetch_lazy): Use local variable for type
667 instead of length. Use TYPE_LENGTH directly.
668 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
669
a4b411d6
JB
6702012-09-25 Joel Brobecker <brobecker@adacore.com>
671
672 * symtab.c (skip_prologue_sal): Fix typo in comment.
673
11dba07a
JB
6742012-09-25 Joel Brobecker <brobecker@adacore.com>
675
676 * linespec.c (create_sals_line_offset): Fix typo in comment.
677
318102b9
SP
6782012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
679
680 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
681 use plongest to print the array size.
682
b4aa388a
SP
6832012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
684
685 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
686 * p-valprint.c (pascal_type_print_base): Likewise.
687
84cebc4a
YQ
6882012-09-22 Yao Qi <yao@codesourcery.com>
689
690 * remote.c (remote_get_trace_status): Remove setting default
691 values of fields of 'ts'.
692
04e7407c
JK
6932012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
694
695 Fix internal error on canonicalization of clang types.
696 * cp-name-parser.y (operator): New comment at make_operator call for
697 new, delete, new[] and delete[].
698 (exp): Use "sizeof ". Add new comment at make_operator call.
699
9bf4bce9
JK
7002012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
701
702 Fix disassemble without parameters in tailcall frame.
703 * cli/cli-cmds.c (disassemble_current_function): Use
704 get_frame_address_in_block.
705
1c5b7826
TT
7062012-09-21 Tom Tromey <tromey@redhat.com>
707
708 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
709 TYPE_CODE_UNION>: Unify, removing a goto.
710
62a49610
TT
7112012-09-21 Tom Tromey <tromey@redhat.com>
712
713 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
714
2603f7ee
AB
7152012-09-21 Andrew Burgess <aburgess@broadcom.com>
716
717 * findvar.c (read_frame_register_value): Mark the result value as
718 optimized out if any of the input registers have been optimized out.
719
810849a3
AS
7202012-09-21 Andreas Schwab <schwab@linux-m68k.org>
721
722 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
723
0953dec1
SP
7242012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
725
726 * eval.c (evaluate_subexp_standard): Eliminate single-use
727 variable LOWER.
728
82a90ccf
YQ
7292012-09-21 Yao Qi <yao@codesourcery.com>
730
731 * mi/mi-interp.c: Declare mi_record_changed.
732 (mi_interpreter_init): Call observer_attach_record_changed.
733 (mi_record_changed): New.
734 * record.c (record_open): Call observer_notify_record_changed.
735 (cmd_record_stop): Call observer_notify_record_changed.
736 * NEWS: Mention it.
737
d7de8e3c
TT
7382012-09-20 Tom Tromey <tromey@redhat.com>
739
740 * NEWS: Update.
741 * python/python.c (finalize_python): New function.
742 (_initialize_python): Make a final cleanup.
743
43c7c83d
DE
7442012-09-19 Doug Evans <dje@google.com>
745
746 * buildsym.h (param_symbols): Delete, unused.
747 (context_stack): Delete member "params", unused.
748 * buildsym.c (push_context): Update.
749 * dwarf2read.c (read_func_scope): Update.
750
aa9259cc
TS
7512012-09-19 Thomas Schwinge <thomas@codesourcery.com>
752
a6521d9a
TS
753 * sh-tdep.c (sh_register_convert_to_virtual)
754 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
755 all callers. Just do a memcpy if not the little-endian case.
756
f92589cb
TS
757 * h8300-tdep.c (h8300_gdbarch_init): Invoke
758 set_gdbarch_double_format and set_gdbarch_long_double_format.
759 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
760 set_gdbarch_double_format.
761 * sh-tdep.c (sh_gdbarch_init): Likewise.
762
aa9259cc
TS
763 * NEWS: Document the removal of SH's 'regs' command.
764 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
765 command.
766
c1d780c2
SDJ
7672012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
768
769 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
770 `jump'.
771
4ae24af0
JB
7722012-09-18 Joel Brobecker <brobecker@adacore.com>
773
774 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
775 language when iterating over symbols.
776
bb25a15c
YQ
7772012-09-18 Yao Qi <yao@codesourcery.com>
778
779 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
780 (mi_interpreter_init): Call observer_attach_tsv_created and
781 observer_attach_tsv_deleted.
782 (mi_tsv_created, mi_tsv_deleted): New.
783 * tracepoint.c (delete_trace_state_variable): Call
784 observer_notify_tsv_deleted.
785 (trace_variable_command): Call observer_notify_tsv_created.
786 (delete_trace_variable_command): Call
787 observer_notify_tsv_deleted.
788 (create_tsv_from_upload): Call observer_notify_tsv_created.
789 * NEWS: Mention it.
790
201b4506
YQ
7912012-09-18 Yao Qi <yao@codesourcery.com>
792
793 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
794 if traceframe changed.
795 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
796 "trace-find".
797 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
798 (mi_interpreter_init): Hook mi_traceframe_changed to observer
799 'traceframe_changed'.
800 (mi_traceframe_changed): New.
801 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
802 New field.
803 * NEWS: Mention the new MI notification.
804
eaeb12db
MW
8052012-09-17 Mike Wrighton <wrighton@codesourcery.com>
806
807 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
808
6e3c039e
JK
8092012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
810
811 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
812 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
813 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
814 Extend code also for PaX support. Convert all gdb_assert to warning
815 calls.
816
9a950c7c
JK
8172012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
818
819 Implement auto-load user conveniences suggested by Doug Evans.
820 * auto-load.c: Include top.h.
821 (file_is_auto_load_safe): New variable advice_printed. Print advice.
822 (_initialize_auto_load): New variable scripts_directory_help. Mention
823 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
824 scripts-directory. Document in online help one can use also files for
825 set auto-load safe-path.
826 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
827 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
828
deec9a9d
SP
8292012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
830
831 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
832 of LEN.
833
354ecfd5
SP
8342012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
835
836 * m2-valprint.c (m2_print_array_contents): Eliminate variable
837 ELTLEN and use TYPE_LENGTH directly.
838 (m2_val_print): Likewise.
839 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
840 variable LEN and use TYPE_LENGTH directly.
841 (m68k_svr4_store_return_value): Likewise.
842 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
843 ARGLEN and use TYPE_LENGTH directly.
844 (mips_o64_push_dummy_call): Likewise.
845 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
846 variable LENGTH and use TYPE_LENGTH directly.
847 (s390_function_arg_float): Likewise.
848 (s390_function_arg_integer): Likewise.
849 (s390_push_dummy_call): Likewise.
850 (s390_return_value_convention): Likewise.
851 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
852 TYPE_LENGTH directly.
853
6fc1c773
YQ
8542012-09-17 Yao Qi <yao@codesourcery.com>
855
856 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
857 Update comment to add_setshow_integer_cmd.
858 * cli/cli-setshow.c (do_set_command): Handle case
859 'var_zuinteger_unlimited'.
860 (do_show_command): Likewise.
861 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
862 for command 'remotetimeout'.
863 * command.h (enum var_types): New zuinteger_unlimited. Update comment
864 to var_integer.
865 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
866 for command 'set listsize'.
867
6acef6cd
SP
8682012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
869
870 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
871 variable LEN.
872
1ab3b62c
JK
8732012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
874
875 PR 14119
876 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
877 (frame_pop): Drop also TAILCALL_FRAME frames.
878 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
879
acf9414f
JK
8802012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
881 Pedro Alves <palves@redhat.com>
882
883 PR 14548
884 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
885 function start if we are already at function start. Both for
886 reverse-next and for reverse-step into function without line number
887 info.
888
193facb3
JK
8892012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
890
891 Code cleanup - rename 'inline' depth to 'artificial' depth.
892 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
893 frame_id_artificial_p, extend the comment.
894 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
895 * frame.c (fprint_frame_id): Rename at a user, change debug output
896 text to "artificial=".
897 (skip_inlined_frames): Rename to ...
898 (skip_artificial_frames): ... here. Extend the comment.
899 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
900 (frame_id_inlined_p): Rename to ...
901 (frame_id_artificial_p): ... here. Rename at a user.
902 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
903 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
904 at a user.
905 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
906 Extend the comment.
907 (frame_id_inlined_p): Rename to ...
908 (frame_id_artificial_p): ... here.
909 * inline-frame.c (inline_frame_this_id): Rename at a user.
910
42056501
AB
9112012-09-14 Andrew Burgess <aburgess@broadcom.com>
912
913 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
914 vector variables using vector_size syntax rather than array
915 syntax.
916
84c47588
SP
9172012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
918
919 * valarith.c (value_concat): Replace unsafe ALLOCA with
920 XMALLOC/XFREE.
921
f4045bcb
PA
9222012-09-14 Pedro Alves <palves@redhat.com>
923
924 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
925
63b46266
YPK
9262012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
927
928 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
929 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
930 data-directory as appropriate.
931
ddd7a8e7
SP
9322012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
933
934 * printcmd.c (ui_printf): Eliminate single-use variable
935 PARAM_LEN.
936
d649a38e
YQ
9372012-09-14 Yao Qi <yao@codesourcery.com>
938 Pedro Alves <palves@redhat.com>
939
940 * valops.c (value_assign): Move observer_notify_target_changed
941 below to replace reinit_frame_cache.
942
b9516fa1
YPK
9432012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
944
945 Refactor Python "gdb" module into a proper Python package, by
946 introducing a new "_gdb" module for code implemented in C, and
947 using reload/__import__ instead of exec.
948 * python/lib/gdb/__init__.py: Import * from _gdb.
949 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
950 prompt_hook, sys.argv): Moved from finish_python_initialization.
951 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
952 (packages, auto_load_packages): New list and function replacing
953 module_dict and auto-loading code, using __file__ instead of
954 gdb.PYTHONDIR and reload/__import__ instead of exec.
955 (GdbSetPythonDirectory): Replacing function of the same name
956 from finish_python_initialization, using reload/__import__ instead
957 of exec, as well as call auto_load_packages.
958 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
959 gdb_python_module and not gdb_module.
960 * python/python-internal.h (gdb_python_module): Declare.
961 * python/python.c (gdb_python_module): New global.
962 (before_prompt_hook): Check gdb_python_module and not gdb_module.
963 (_initialize_python): Rename gdb module to _gdb.
964 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
965 (finish_python_initialization): Move Python code to
966 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
967 __main__.
968
aa0fbdd8
PA
9692012-09-13 Pedro Alves <palves@redhat.com>
970
971 * Makefile.in (COMMON_OBS): Add registry.o.
972 * registry.c: New file.
973 * registry.h (struct registry_container): Declare.
974 (registry_data_callback): New typedef.
975 (struct registry_data, struct registry_data_registration, struct
976 registry_data_registry): New type.
977 (register_data_with_cleanup, registry_alloc_data)
978 (registry_callback_adaptor, registry_clear_data)
979 (registry_container_free_data, registry_set_data, registry_data):
980 Declare.
981 (DEFINE_REGISTRY): Refactor structures and functions as shims over
982 the new common structures and functions.
983 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
984 callback typedefs.
985
42b5c53d
MW
9862012-09-12 Mike Wrighton <wrighton@codesourcery.com>
987
988 * remote.c (remote_insert_hw_breakpoint): Throw exception if
989 there is an error inserting hardware breakpoints and use the
990 error message from the target.
991
992 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
993 Catch this exception and print the error message contained within. Do not
994 print the default hardware error breakpoint message in this case.
995
a1b64ce1
DE
9962012-09-12 Doug Evans <dje@google.com>
997
998 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
999 cu == NULL.
1000
83a788b8
DE
10012012-09-11 Doug Evans <dje@google.com>
1002
1003 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1004 .gdb_index symbol attributes if there are none.
1005
d9eaeb59
JB
10062012-09-11 Joel Brobecker <brobecker@adacore.com>
1007
1008 * symtab.h (struct minimal_symbol) [has_size]: New field.
1009 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1010 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1011 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1012 minimal symbols if the symbol's size is actually known.
1013 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1014 of msymbol's size field. Add comment.
1015 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1016 SET_MSYMBOL_SIZE to set the minimal symbol size.
1017
a83e9154
JB
10182012-09-11 Joel Brobecker <brobecker@adacore.com>
1019
1020 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1021 minimal_symbol struct object, rather than setting some of its
1022 fields one by one.
1023
350b1b26
AB
10242012-09-11 Andrew Burgess <aburgess@broadcom.com>
1025
1026 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1027 passed_a_ptr flag when displaying typedef types.
1028
2fa15f23
JB
10292012-09-10 Joel Brobecker <brobecker@adacore.com>
1030
1031 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1032 the optimized_out flag is preserved.
1033
5152ff90
AG
10342012-09-10 Anthony Green <green@moxielogic.com>
1035
1036 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1037 prologue changes in GCC.
1038
5b4f6e25
KS
10392012-09-10 Keith Seitz <keiths@redhat.com>
1040
1041 PR gdb/13483
1042 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1043 (BOOL_CONVERSION_BADNESS): ... this.
1044 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1045 (rank_one_type): Allow all boolean conversions
1046 permitted by the standard.
1047
f1070426
TT
10482012-09-06 Tom Tromey <tromey@redhat.com>
1049
1050 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1051 Don't decref py_objfile.
1052
a8db4212
YPK
10532012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1054
1055 Do not enable -lmcheck by default when Python is enabled with
1056 threading support.
1057 * configure.ac: (python_has_threads) New variable, by testing
1058 if WITH_THREAD is defined in Python.h.
1059 Move --enable-lmcheck after --with-python.
1060 Do not enable -lmcheck by default if python_has_threads=yes.
1061 Warn if --enable-lmcheck and python_has_threads=yes.
1062 * configure: Regenerate.
1063
648beb2b
YQ
10642012-08-31 Yao Qi <yao@codesourcery.com>
1065
1066 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1067 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1068 Update some commands.
1069 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1070 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1071 to 1.
1072
ef07a9f7
YQ
10732012-08-31 Yao Qi <yao@codesourcery.com>
1074
1075 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1076
fda395cf
YPK
10772012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1078
1079 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1080
8efd8e78
DE
10812012-08-29 Doug Evans <dje@google.com>
1082
1083 * main.c (print_gdb_help): Remove reference to
1084 --use-deprecated-index-sections.
1085
883b9c6c
YQ
10862012-08-28 Yao Qi <yao@codesourcery.com>
1087
1088 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1089 (init_cmds): Call add_setshow_uinteger_cmd for command
1090 'max-user-call-depth'.
1091 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1092 declaration of 'max_user_call_depth'.
1093 * frame.c (backtrace_limit): Add 'unsigned'.
1094 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1095 'limit'.
1096 * remote.c (remoteaddresssize): Add 'unsigned'.
1097 (remote_address_masked): Change local var 'address_size' to
1098 'unsigned'.
1099 (_initialize_remote): Call add_setshow_uinteger_cmd for
1100 'remoteaddresssize'.
1101 * top.c (history_size): Add 'unsigned'.
1102 (show_commands): Change local variables to 'unsigned'.
1103 (set_history_size_command): Don't check history_size is negative.
1104 Adjust the condition to call unstifle_history and set history_size
1105 to UNIT_MAX.
1106
1292279a
PA
11072012-08-28 Pedro Alves <palves@redhat.com>
1108
1109 PR gdb/14428
1110
1111 * infcmd.c (default_print_one_register_info): New, factored out
1112 from default_print_registers_info.
1113 (default_print_registers_info): Use it. Mark value unavailable if
1114 necessary.
1115 (registers_info): Print user registers with
1116 default_print_one_register_info.
1117
f629cd75
L
11182010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1119
1120 PR tui/14486
1121 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1122 is not NULL before referencing it.
1123
1c8cdcb1
JK
11242012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1127 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1128 original PC for it.
1129
e9687799
JK
11302012-08-27 Eli Zaretskii <eliz@gnu.org>
1131 Jan Kratochvil <jan.kratochvil@redhat.com>
1132
1133 * auto-load.c (auto_load_objfile_script): Rename to ...
1134 (auto_load_objfile_script_1): ... here, change variable realname to
1135 parameter realname, document it, add return value, add variable retval.
1136 (auto_load_objfile_script): New function.
1137
7afa1642
JK
11382012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1139
1140 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1141 followed by a whitespace.
1142
dc7650b8
JK
11432012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1144
28e66c70 1145 PR gdb/14494.
dc7650b8
JK
1146 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1147 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1148 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1149 here.
1150
1591a1e8
PA
11512012-08-27 Wei-cheng Wang <cole945@gmail.com>
1152
1153 * memattr.c (create_mem_region): Fix memory region overlapping
1154 checking.
1155
ecfb0d68
SP
11562012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1157
1158 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1159 with xmalloc/cleanup.
1160 * mt-tdep.c (mt_push_dummy_call): Likewise.
1161 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1162 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1163
8c56c1b9
YQ
11642012-08-24 Yao Qi <yao@codesourcery.com>
1165
1166 * jv-exp.y (push_expression_name): Add "." at the end of error
1167 message.
1168
e3480f4a
YPK
11692012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1170
1171 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
1172 * python/python.c (_initialize_python): Update documentation.
1173
dfbd5e7b
PA
11742012-08-23 Pedro Alves <palves@redhat.com>
1175
1176 * infrun.c (_initialize_infrun) <handle command help text>:
1177 Mention that multiple signals are supported.
1178
2edda2ff
PA
11792012-08-23 Pedro Alves <palves@redhat.com>
1180
1181 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1182 string.
1183
8d735b87
YQ
11842012-08-23 Yao Qi <yao@codesourcery.com>
1185
1186 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1187 (tfind_1): Don't call registers_changed, set_traceframe_num,
1188 and clear_traceframe_info.
1189 Call set_current_traceframe.
1190 (set_current_traceframe): call set_traceframe_num.
1191
c5d9b215
SDJ
11922012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1193
1194 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1195 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1196
037bbc8e
YPK
11972012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1198
1199 Enable readline in Python in a GDB-specific way and block the
1200 standard Python readline module to prevent conflicts with GDB.
1201 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1202 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1203 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1204 * python/py-gdb-readline.c: New file.
1205 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1206 prototype.
1207 * python/python.c (_initialize_python): Call
1208 gdbpy_initialize_gdb_readline.
1209
406b1477
KS
12102012-08-22 Keith Seitz <keiths@redhat.com>
1211
1212 * defs.h: Include build-gnulib/config.h
1213
6ca1b147
JM
12142012-08-22 Joseph Myers <joseph@codesourcery.com>
1215
1216 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1217 and blx pc.
1218
8315665e
YPK
12192012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1220
1221 Add a new "python-interactive" command that starts a standard
1222 Python interactive prompt with "pi" as alias, and add "py" as
1223 an alias to "python".
1224 * NEWS: Mention the new commands.
8315665e
YPK
1225 * python/python.c (eval_python_command): New function.
1226 (python_interactive_command): For "python-interactive" with
1227 arguments, call eval_python_command. For "python-interactive"
1228 without arguments, call PyRun_InteractiveLoop.
1229 (_initialize_python): Add "python-interactive" command with
1230 "pi" as alias, and add "py" as an alias to "python".
1231
522002f9
TT
12322012-08-22 Tom Tromey <tromey@redhat.com>
1233
1234 * defs.h (quit_flag): Don't declare.
1235 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1236 (QUIT): Use new functions.
1237 * event-top.c (command_handler): Use clear_quit_flag.
1238 (handle_sigint): Use set_quit_flag.
1239 (async_request_quit): Use check_quit_flag. Don't check
1240 immediate_quit.
1241 * exceptions.c (throw_exception): Use clear_quit_flag.
1242 * main.c (captured_main): Use clear_quit_flag.
1243 * python/python.c (clear_quit_flag, set_quit_flag)
1244 (check_quit_flag): New functions.
1245 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1246 clear_quit_flag.
1247 * remote.c (remote_wait_as): Use check_quit_flag,
1248 clear_quit_flag.
1249 (remote_start_remote): Call QUIT.
1250 * symfile.c (load_progress): Use check_quit_flag.
1251 * top.c (command_loop): Use clear_quit_flag.
1252 (command_line_input): Call QUIT.
1253 * utils.c (quit_flag): Conditionally define.
1254 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1255 functions.
1256 (prompt_for_continue): Call QUIT. Use quit, not
1257 async_request_quit.
1258 * remote-mips.c (mips_expect_timeout): Call QUIT.
1259 * monitor.c (monitor_expect): Call QUIT.
1260
b583003e
TT
12612012-08-22 Tom Tromey <tromey@redhat.com>
1262
1263 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1264 (async_init_signals): Update.
1265 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1266 (SIGWINCH_HANDLER_BODY): Remove.
1267
e1507e95
TT
12682012-08-22 Tom Tromey <tromey@redhat.com>
1269
1270 * jit.c (jit_object_close_impl): Don't malloc the objfile
1271 name.
1272 * objfiles.c (allocate_objfile): Don't malloc the objfile
1273 name.
1274 (free_objfile): Don't free the objfile name.
1275 * objfiles.h (struct objfile) <name>: Update comment.
1276 * symfile.c (reread_symbols): Fix reference counting. Don't
1277 malloc objfile name.
1278
1c00ec6b
TT
12792012-08-22 Tom Tromey <tromey@redhat.com>
1280
1281 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1282 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1283 (symfile_bfd_open): Likewise.
1284 (generic_load): Likewise.
1285 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1286 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1287 gdb_bfd_open.
1288 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1289 Use gdb_bfd_open.
1290 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1291 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1292 (pmon_load_fast): Likewise.
1293 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1294 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1295 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1296 (macho_check_dsym): Likewise.
1297 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1298 (m32r_upload_command): Likewise.
1299 * gdb_bfd.h (gdb_bfd_cache): Declare.
1300 * gdb_bfd.c (struct gdb_bfd_data): New.
1301 (gdb_bfd_cache): New global.
1302 (struct gdb_bfd_cache_search): New.
1303 (hash_bfd): New function.
1304 (eq_bfd): Likewise.
1305 (gdb_bfd_open): Likewise.
1306 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1307 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1308 gdb_bfd_data.
1309 * exec.c (exec_file_attach): Use gdb_bfd_open.
1310 * dsrec.c (load_srec): Use gdb_bfd_open.
1311
6532ff36
TT
13122012-08-22 Tom Tromey <tromey@redhat.com>
1313
1314 * dwarf2read.c (macro_start_file): Update.
1315 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1316 (free_objfile_per_bfd_storage): Destroy macro_cache.
1317 (allocate_objfile, free_objfile): Update.
1318 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1319 New field.
1320 (struct objfile) <macro_cache>: Remove.
1321 * symfile.c (reread_symbols): Update.
1322 * symmisc.c (print_symbol_bcache_statistics): Update.
1323 (print_objfile_statistics): Update.
1324
706e3705
TT
13252012-08-22 Tom Tromey <tromey@redhat.com>
1326
1327 * elfread.c (elf_symtab_read): Update.
1328 * objfiles.c (objfiles_bfd_data): New global.
1329 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1330 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1331 (allocate_objfile, free_objfile): Update.
1332 (_initialize_objfiles): Initialize objfiles_bfd_data.
1333 * objfiles.h (struct objfile_per_bfd_storage): New.
1334 (struct objfile) <per_bfd>: New field.
1335 <filename_cache>: Remove.
1336 (set_objfile_per_bfd): Declare.
1337 * symfile.c (reread_symbols): Update. Call
1338 set_objfile_per_bfd.
1339 (allocate_symtab): Update.
1340 * symmisc.c (print_symbol_bcache_statistics): Update.
1341 (print_objfile_statistics): Print the size of the BFD obstack.
1342
e992eda4
TT
13432012-08-22 Tom Tromey <tromey@redhat.com>
1344
1345 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1346 * gdb_bfd.c: Use DEFINE_REGISTRY.
1347 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1348 (gdb_bfd_ref): Call bfd_alloc_data.
1349 (gdb_bfd_unref): Call bfd_free_data.
1350
6b81941e
TT
13512012-08-22 Tom Tromey <tromey@redhat.com>
1352
1353 * registry.h (struct registry_fields): New.
1354 (REGISTRY_FIELDS): Redefine.
1355 (REGISTRY_ACCESS_FIELD): New macro.
1356 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1357 functions.
1358
8e260fc0
TT
13592012-08-22 Tom Tromey <tromey@redhat.com>
1360
1361 * auto-load.c (_initialize_auto_load): Update.
1362 * solib-svr4.c (_initialize_svr4_solib): Update
1363 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1364 * solib-darwin.c (_initialize_darwin_solib): Update.
1365 * registry.h: New file.
1366 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1367 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1368 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1369 (register_program_space_data_with_cleanup)
1370 (register_program_space_data, program_space_alloc_data)
1371 (clear_program_space_data, set_program_space_data)
1372 (program_space_data): Don't declare.
1373 * progspace.c: Use DEFINE_REGISTRY.
1374 (struct program_space_data, struct
1375 program_space_data_registration, struct
1376 program_space_data_registry, program_space_data_registry)
1377 (register_program_space_data_with_cleanup)
1378 (register_program_space_data, program_space_alloc_data)
1379 (program_space_free_data, clear_program_space_data)
1380 (set_program_space_data, program_space_data): Remove.
1381 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1382 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1383 (register_objfile_data_with_cleanup, register_objfile_data)
1384 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1385 declare.
1386 * objfiles.c: Use DEFINE_REGISTRY.
1387 (struct objfile_data, struct objfile_data_registration, struct
1388 objfile_data_registry, objfile_data_registry)
1389 (register_objfile_data_with_cleanup, register_objfile_data)
1390 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1391 (set_objfile_data, objfile_data): Remove.
1392 (_initialize_objfiles): Update.
1393 * jit.c (_initialize_jit): Update.
1394 * inflow.c (_initialize_inflow): Update.
1395 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1396 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1397 (register_inferior_data_with_cleanup, register_inferior_data)
1398 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1399 declare.
1400 * inferior.c: Use DEFINE_REGISTRY.
1401 (struct inferior_data, struct inferior_data_registration, struct
1402 inferior_data_registry, inferior_data_registry)
1403 (register_inferior_data_with_cleanup, register_inferior_data)
1404 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1405 (set_inferior_data, inferior_data): Remove.
1406 * auxv.c (_initialize_auxv): Update.
1407 * ada-lang.c (_initialize_ada_language): Update.
1408 * breakpoint.c (_initialize_breakpoint): Update.
1409 * i386-nat.c (i386_use_watchpoints): Update.
1410
ed9eebaf
TT
14112012-08-22 Tom Tromey <tromey@redhat.com>
1412
1413 * exec.c (exec_close, exec_file_attach): Update.
1414 (add_to_section_table): Initialize 'key' field.
1415 (add_target_sections, remove_target_sections): Add 'key' argument.
1416 * exec.h (add_target_sections, remove_target_sections): Add
1417 'key' argument.
1418 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1419 (reload_shared_libraries_1): Update.
1420 * target.h (struct target_section) <key>: New field.
1421
2f2e97fa
TT
14222012-08-22 Tom Tromey <tromey@redhat.com>
1423
1424 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1425
b3dbbd6f
PM
14262012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1427
1428 * symfile.c (allocate_symtab): Use host_address_to_string
1429 function instead of cast of pointer to long which is not
1430 compatible with x86_64-w64-mingw32 build.
1431
f94363d7
AP
14322012-08-19 Andrew Pinski <apinski@cavium.com>
1433
1434 * mips-tdep.c (is_octeon): New function.
1435 (is_octeon_bbit_op): New function.
1436 (mips32_next_pc): Handle Octeon's bbit instructions.
1437 (mips32_instruction_has_delay_slot): Likewise.
1438
78a59c2f
AP
14392012-08-19 Andrew Pinski <apinski@cavium.com>
1440
1441 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1442 before the function.
1443
4f5bcb50
AP
14442012-08-19 Andrew Pinski <apinski@cavium.com>
1445
1446 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1447
e5afdbd7
KS
14482012-08-19 Keith Seitz <keiths@redhat.com>
1449
1450 PR c++/14365
1451 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1452 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1453
13c9750e
EZ
14542012-08-18 Eli Zaretskii <eliz@gnu.org>
1455
1456 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1457 The typo broke "make TAGS".
1458
db761810 14592012-08-17 Joel Brobecker <brobecker@adacore.com>
1460
1461 GDB 7.5 released.
1462
a451cb65
KS
14632012-08-17 Keith Seitz <keiths@redhat.com>
1464
1465 PR c++/13356
1466 * gdbtypes.c (strict_type_checking): New variable.
1467 (show_strict_type_checking): New function.
1468 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1469 if strict type checking is disabled.
1470 (_initialize_gdbtypes): Add "check type" subcommand.
1471 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1472
14732012-08-17 Keith Seitz <keiths@redhat.com>
1474
1475 * language.h (type_mode): Remove.
1476 (type_check): Remove.
1477 (struct language_defn): Remove la_type_check.
1478 (STRICT_TYPE): Remove unused macro.
1479 (type_error): Remove.
1480 * language.c (set_type_range_case): Renamed to ...
1481 (set_range_case): ... this. Update all callers.
1482 Remove type_mode/type_check.
1483 (type_mode): Remove.
1484 (type_check): Remove.
1485 (show_type_command): Remove.
1486 (set_type_command): Remove.
1487 (language_info): Remove type checking output.
1488 (type_error): Remove unused function.
1489 (range_error): Update comment.
1490 (unknown_language_defn): Remove la_type_check.
1491 (auto_language_defn): Likewise.
1492 (local_language_defn): Likewise.
1493 (_initialize_language): Remove "check type" subcommand.
1494 * ada-lang.c (ada_language_defn): Remove la_type_check.
1495 * c-lang.c (c_language_defn): Likewise.
1496 (cplus_language_defn): Likewise.
1497 (asm_language_defn): Likewise.
1498 (minimal_language_defn): Likewise.
1499 * d-lang.c (d_language_defn): Likewise.
1500 * f-lang.c (f_language_defn): Likewise.
1501 * go-lang.c (go_language_defn): Likewise.
1502 * jv-lang.c (java_language_defn): Likewise.
1503 * m2-lang.c (m2_language_defn): Likewise.
1504 * objc-lang.c (objc_language_defn): Likewise.
1505 * opencl-lang.c (opencl_language_defn): Likewise.
1506 * p-lang.c (pascal_language_defn): Likewise.
1507
dbf6a605
MF
15082012-08-16 Mike Frysinger <vapier@gentoo.org>
1509
1510 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1511
973e3cf7
JB
15122012-08-16 Joel Brobecker <brobecker@adacore.com>
1513
1514 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1515 New function.
1516 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1517 using the regache. Use ia64_hpux_get_register_from_save_state_t
1518 to access the bsp and bspstore registers if not.
1519
d80ee84f
JB
15202012-08-16 Joel Brobecker <brobecker@adacore.com>
1521
1522 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1523 * breakpoint.c (detach_breakpoints): Change pid parameter into
1524 a ptid. Adjust code accordingly.
1525 * infrun.c (handle_inferior_event): Delete variable child_pid.
1526 Update call to detach_breakpoints to pass the child ptid for
1527 fork events.
1528 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1529 assert that inferior_ptid's lwp is zero.
1530 (linux_handle_extended_wait): Update call to detach_breakpoints.
1531 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1532 detach_breakpoints.
1533
2dcc6086
JB
15342012-08-16 Joel Brobecker <brobecker@adacore.com>
1535
1536 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1537 parent, only call detach_breakpoints if tts.tts_event ==
1538 TTEVT_VFORK.
1539
0c92d8c1
JB
15402012-08-16 Joel Brobecker <brobecker@adacore.com>
1541
1542 * dwarf2-frame.c (dwarf2_frame_cache): Use
1543 get_frame_address_in_block instead of get_frame_pc as
1544 the bound for executing the frame's FDE.
1545
6b1755ce
YQ
15462012-08-16 Yao Qi <yao@codesourcery.com>
1547
1548 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1549 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1550 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1551 (c_type_print_varspec_suffix): Likewise.
1552 * eval.c (evaluate_subexp_standard): Likewise.
1553 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1554 (f_type_print_varspec_suffix): Likewise.
1555 * gdbtypes.c (is_scalar_type): Likewise.
1556 (recursive_dump_type): Likewise.
1557 * infcall.c (value_arg_coerce): Likewise.
1558 * m2-valprint.c (m2_val_print): Likewise.
1559 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1560 (pascal_type_print_varspec_suffix): Likewise.
1561 (pascal_type_print_base): Likewise.
1562 * p-valprint.c (pascal_val_print): Likewise.
1563 (pascal_val_print): Likewise.
1564 * valops.c (value_slice): Likewise.
1565 * valprint.c (scalar_type_p): Likewise.
1566 * valarith.c (value_bitstring_subscript): Remove.
1567 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1568 Remove comment on TYPE_CODE_BITSTRING.
1569
1570 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1571 TYPE_CODE_BITSTRING.
1572
1573 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1574 slot 0.
1575
8acc4065
YQ
15762012-08-16 Yao Qi <yao@codesourcery.com>
1577
1578 * tracepoint.c (trace_find_none_command): Remove.
1579 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1580
8128fd8e
YQ
15812012-08-16 Yao Qi <yao@codesourcery.com>
1582
1583 * remote.c (handle_notification): Remove parameter 'length'.
1584 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1585
2873700e
KS
15862012-08-15 Keith Seitz <keiths@redhat.com>
1587
1588 * gdbtypes.c (opaque_type_resolution): Make static.
1589 Add missing comment.
1590 (overload_debug): Add missing comment.
1591 (show_opaque_type_resolution): Likewise.
1592 (show_overload_debug): Likewise.
1593 (print_bit_vector): Remove unnecessary forward declaration.
1594 (print_arg_types): Likewise.
1595 (dump_fn_fieldlists): Likewise.
1596 (print_cplus_stuff): Likewise.
1597
b82d08cd
TT
15982012-08-15 Tom Tromey <tromey@redhat.com>
1599
1600 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1601 (gdb_bfd_ref): Initialize new field.
1602 (gdb_bfd_unref): Unref the archive BFD.
1603 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1604 parent archive.
1605
db6573d6
TT
16062012-08-15 Tom Tromey <tromey@redhat.com>
1607
1608 PR python/14387:
1609 * python/py-bpevent.c (create_breakpoint_event_object): Update
1610 comment.
1611 * python/py-event.c (evpy_add_attribute): Update comment.
1612 * python/py-exitedevent.c (create_exited_event_object): Fix
1613 reference counting and error handling.
1614 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1615 Fix reference counting.
1616 * python/py-signalevent.c (create_signal_event_object): Fix
1617 reference counting and error handling.
1618 * python/py-stopevent.c (emit_stop_event): Fix reference
1619 counting.
1620 * python/py-threadevent.c (get_event_thread): Return a
1621 borrowed reference.
1622 * python/py-type.c (convert_field): Fix reference counting.
1623
a036ba48
TT
16242012-08-15 Tom Tromey <tromey@redhat.com>
1625
1626 * dwarf2read.c (dwarf_decode_macro_bytes)
1627 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1628 as hash key.
1629
486c7739
MF
16302012-08-14 Mike Frysinger <vapier@gentoo.org>
1631
1632 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1633 stepi, nexti, finish, next, step, jump, and continue commands.
1634 * infrun.c (_initialize_infrun): Update help text for the handle
1635 command.
1636
4cf93a03
DE
16372012-08-14 Doug Evans <dje@google.com>
1638
70b099cf
DE
1639 * gdbtypes.c (struct extra): Delete, unused.
1640
5212577a
DE
1641 * gdbtypes.c: Whitespace cleanup.
1642 (address_space_name_to_int): Remove "extern" from definition.
1643 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1644
4cf93a03
DE
1645 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1646 TYPE_POINTER_TYPE (type).
1647
3756ef7e
GB
16482012-08-14 Gary Benson <gbenson@redhat.com>
1649
1650 * solib-svr4.c (svr4_free_library_list): Use free_so.
1651
40d72643
MF
16522012-08-13 Mike Frysinger <vapier@gentoo.org>
1653
1654 * .gitignore: Add go-exp.c.
1655
f47f77df
DE
16562012-08-13 Doug Evans <dje@google.com>
1657
1658 * value.c (show_convenience): Tweak comment.
1659 (_initialize_values): Mention convenience functions in the help text
1660 for "show convenience".
1661
7507c54a
YQ
16622012-08-13 Yao Qi <yao@codesourcery.com>
1663
1664 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1665 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1666 TERNOP_SLICE_COUNT.
1667 * eval.c (evaluate_subexp_standard): Likewise.
1668 * expprint.c (print_subexp_standard): Likewise.
1669 (dump_subexp_body_standard): Likewise.
1670 * parse.c (operator_length_standard): Likewise.
1671
5cad9736
YQ
16722012-08-13 Yao Qi <yao@codesourcery.com>
1673
1674 * std-operator.def: Remove OP_BITSTRING.
1675 * breakpoint.c (watchpoint_exp_is_const): Update.
1676 * eval.c (evaluate_subexp_standard): Remove handling to
1677 OP_BITSTRING.
1678 * expprint.c (print_subexp_standard): Likewise.
1679 (dump_subexp_body_standard): Likewise.
1680 * parse.c (operator_length_standard): Likewise.
1681 * valops.c (value_bitstring): Remove.
1682 * value.h: Remove the declaration of 'value_bitstring'.
1683
bad7670a
SDJ
16842012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1685
1686 * linespec.c (find_methods): Remove unused variables `i1' and
1687 `name_len'.
1688 (decode_line_full): Likewise for `arg_start'.
1689
d9dce7fa
SDJ
16902012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1691
1692 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1693 (zlib_decompress_section): Likewise for `section_data'.
1694 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1695
a72c3253
DE
16962012-08-10 Doug Evans <dje@google.com>
1697
1698 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1699 * NEWS: Document them.
1700 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1701 function/strfns.py.
1702 * python/py-type.c (typy_array_1): New function.
1703 (typy_array): Call it.
1704 (typy_vector): New function.
1705 (type_object_methods): Add "vector".
1706 * python/lib/gdb/function/__init__.py: New file.
1707 * python/lib/gdb/function/strfns.py: New file.
1708
200bc880
SP
17092012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1710
1711 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1712 for TYPE_FIELD_BITPOS.
1713 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1714
de0bea00
MF
17152012-08-10 Mike Frysinger <vapier@gentoo.org>
1716
1717 PR cli/10436:
1718 * common/vec.h (VEC_merge): Define.
1719 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1720 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1721 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1722 * completer.c: Include gdb_signals.h.
1723 (signal_completer): Define.
1724 * completer.h (signal_completer): Add prototype.
1725 * infcmd.c (_initialize_infcmd): Assign the command
1726 completer for "signal" to handle_completer.
1727 * infrun.c: Include completer.h.
1728 (handle_completer): Define.
1729 (_initialize_infrun): Declare a new local variable c. Store the
1730 result of add_com("handle") to it. Assign the command
1731 completer for "handle" to handle_completer.
1732
5b9afe8a
YQ
17332012-08-09 Yao Qi <yao@codesourcery.com>
1734
1735 * cli/cli-decode.c (set_cmd_prefix): New.
1736 (lookup_cmd_for_prefixlist): New.
1737 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1738 of each cmd_list_element in *prefixlist.
1739 (add_setshow_cmd_full): set_cmd_prefix.
1740 (add_alias_cmd): Likewise.
1741 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1742 Declare 'auto_boolean_enums'.
1743 * cli/cli-setshow.c: Include "observer.h".
1744 (notify_command_param_changed_p): New.
1745 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1746 Remove 'static'.
1747 (do_setshow_command): Split it to ...
1748 (do_set_command, do_show_command): ... them. New.
1749 (do_set_command): Call observer_notify_command_param_changed if
1750 notify_command_param_changed_p returns true.
1751 (cmd_show_list): Caller update.
1752 * auto-load.c (set_auto_load_cmd): Likewise.
1753 * remote.c (show_remote_cmd): Likewise.
1754 * cli/cli-setshow.h: Update declarations.
1755 * top.c (execute_command): Call do_set_command and do_show_command.
1756
1757 * NEWS: Mention new MI notification.
1758 * mi/mi-interp.c: Declare mi_command_param_changed.
1759 (mi_interpreter_init): Attach mi_command_param_changed to
1760 observer command_param_changed.
1761 (mi_command_param_changed): New.
1762 Remove mi_suppress_breakpoint_notifications.
1763 Define global variable mi_suppress_notification.
1764 (mi_breakpoint_created): Update.
1765 (mi_breakpoint_deleted): Likewise.
1766 (mi_breakpoint_modified): Likewise.
1767 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1768 'gdb-set' and set mi_suppress_notification.
1769 * mi/mi-main.h: (mi_suppress_notification): New struct.
1770
1969df89
JK
17712012-08-09 Andreas Tobler <andreast@fgznet.ch>
1772 Jan Kratochvil <jan.kratochvil@redhat.com>
1773
1774 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1775
8bfd80db
YQ
17762012-08-09 Yao Qi <yao@codesourcery.com>
1777
1778 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1779 (skiplist): Move it to skip.c.
1780 (init_cmd_lists): Remove code setting enablebreaklist and
1781 skiplist to NULL.
1782 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1783 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1784 skiplist.
1785 * gdbcmd.h: Likewise.
1786 * skip.c (_initialize_step_skip): Move 'skiplist' from
1787 cli/cli-cmds.c.
1788
28578e6b
YQ
17892012-08-09 Yao Qi <yao@codesourcery.com>
1790
1791 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1792 * gnu-nat.c, symfile.c: Likewise.
1793
260c0b2a
DE
17942012-08-08 Aaron Gamble <agamble@google.com>
1795
1796 * utils.c (prompt_for_continue_wait_time): New static global.
1797 (make_command_stats_cleanup): Initialize it.
1798 (report_command_stats): Subtract time waiting for user.
1799 (prompt_for_continue): Track time waiting for user.
1800 (defaulted_query): Track time waiting for user.
1801
4f485ebc
DE
18022012-08-08 Doug Evans <dje@google.com>
1803
1804 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1805 UNOP_MEMVAL_TYPE.
1806 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1807 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1808 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1809 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1810 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1811 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1812 elt.
1813 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1814 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1815 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1816 (dump_prefix_expression): Handle OP_TYPE.
1817
2acf2b39
KS
18182012-08-08 Keith Seitz <keiths@redhat.com>
1819
1820 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1821 addr_start.
1822
e6712ff1
DE
18232012-08-08 Doug Evans <dje@google.com>
1824
1825 * linux-thread-db.c: #include "gdb_vecs.h".
1826 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1827 updated.
1828 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1829 (thread_db_load_search): Use a vector to iterate over path elements.
1830 Handle text appearing after "$pdir".
1831
1832 * gdb_string.h: Moved to ...
1833 * common/gdb_string.h: ... here.
1834 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1835 gdb_string.h and gdb_assert.h.
1836
ab854e54
YQ
18372012-08-08 Yao Qi <yao@codesourcery.com>
1838
1839 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1840 (tic6x_value_to_register): Likewise.
1841 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1842 and set_gdbarch_value_to_register.
1843
4f69f4c2
JK
18442012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1845 Jean-Marc Saffroy <saffroy@gmail.com>
1846
1847 PR 11804
1848 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1849 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1850 * gcore.c (gcore_create_callback): New function comment. Add modified
1851 parameter. Only write modified regions. Set SEC_READONLY exactly
1852 according to MODIFIED.
1853 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1854 the passed modified value to FUNC.
1855 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1856 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1857 first. New variables modified and has_anonymous. Parse the lines of
1858 smaps file. Add the passed MODIFIED value to FUNC.
1859 * procfs.c (find_memory_regions_callback): Add the passed modified
1860 value.
1861
78ac5f83
TT
18622012-08-06 Tom Tromey <tromey@redhat.com>
1863
1864 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1865 (dwarf2_frame_cache): Use it.
1866 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1867 cache initialization constraint.
1868
2c12abee
TT
18692012-08-06 Tom Tromey <tromey@redhat.com>
1870
1871 PR python/14386:
1872 * varobj.c (update_dynamic_varobj_children): Don't call
1873 PyIter_Check.
1874
4979d7f0
TT
18752012-08-06 Tom Tromey <tromey@redhat.com>
1876
1877 PR cli/14392:
1878 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1879
f3c8a52a
JK
18802012-08-06 Nathaniel Flath <flat0103@gmail.com>
1881
1882 * NEWS: New entry for 'cd' default parameters.
1883 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1884
5a1cf4d6
TT
18852012-08-03 Tom Tromey <tromey@redhat.com>
1886
1887 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1888 return.
1889
7c3270ae
UW
18902012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1891
1892 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1893 to attempting lseek/write.
1894 (inf_child_fileio_pread): Likewise for pread.
1895
ccce17b0
YQ
18962012-08-02 Yao Qi <yao@codesourcery.com>
1897
1898 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1899 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1900 add_setshow_zinteger_cmd.
1901 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1902 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1903 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1904 instead of add_setshow_zinteger_cmd.
1905 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1906 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1907 instead of add_setshow_zinteger_cmd.
1908 * frame.c (frame_debug): Add 'unsigned'.
1909 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1910 add_setshow_zinteger_cmd.
1911 * frame.h: Update the declaration of 'frame_debug'.
1912 * gdbtypes.c (overload_debug): Add 'unsigned'.
1913 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1914 add_setshow_zinteger_cmd.
1915 * inferior.h: Update declaration of 'debug_infrun'.
1916 * infrun.c (debug_infrun): Add 'unsigned'.
1917 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1918 add_setshow_zinteger_cmd.
1919 * jit.c (jit_debug): Add 'unsigned'.
1920 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1921 add_setshow_zinteger_cmd.
1922 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1923 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1924 instead of add_setshow_zinteger_cmd.
1925 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1926 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1927 add_setshow_zinteger_cmd.
1928 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1929 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1930 instead of add_setshow_zinteger_cmd.
1931 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1932 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1933 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1934 intead of add_setshow_zinteger_cmd.
1935 * mips-tdep.c (mips_debug): Add 'unsigned'.
1936 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1937 instead of add_setshow_zinteger_cmd.
1938 * monitor.c (monitor_debug): Add 'unsigned'.
1939 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1940 add_setshow_zinteger_cmd.
1941 * observer.c (observer_debug): Add 'unsigned'.
1942 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1943 add_setshow_zinteger_cmd.
1944 * parse.c (expressiondebug): Add 'unsigned'.
1945 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1946 add_setshow_zinteger_cmd.
1947 * record.c (record_debug): Add 'unsigned'.
1948 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1949 add_setshow_zinteger_cmd.
1950 * record.h: Update the declaration of 'record_debug'.
1951 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1952 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1953 add_setshow_zinteger_cmd.
1954 * serial.c (global_serial_debug_p): Add 'unsigned'.
1955 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1956 add_setshow_zinteger_cmd.
1957 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1958 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1959 add_setshow_zinteger_cmd.
1960 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1961 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1962 add_setshow_zinteger_cmd.
1963 * target.c (targetdebug): Add 'unsigned'.
1964 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1965 add_setshow_zinteger_cmd.
1966 * valops.c (overload_debug): Add 'unsigned'.
1967 * varobj.c (varobjdebug): Add 'unsigned'.
1968 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1969 add_setshow_zinteger_cmd.
1970 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1971 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1972 instead of add_setshow_zinteger_cmd.
1973
1974 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1975 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1976 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1977 instead of add_setshow_zinteger_cmd.
1978 * gdbarch.c, gdbarch.h: Re-generated.
1979
95b07c96
YQ
19802012-08-02 Yao Qi <yao@codesourcery.com>
1981
1982 * nto-tdep.c: Don't include cli/cli-decode.h and
1983 cli/cli-cmds.h.
1984 (_initialize_nto_tdep): Remove.
1985 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1986 Remove field.
1987 Remove macro nto_internal_debugging.
1988
57295b0b
RH
19892012-08-01 Richard Henderson <rth@redhat.com>
1990
1991 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1992 (mep-*-*) [gdb_target_obs]: Likewise.
1993
f782ad9b
AS
19942012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1995
1996 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1997 linux_get_siginfo_type.
1998
a14dd77e
JK
19992012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2000
2001 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2002 AT_ENTRY_POINT.
2003 (call_function_by_hand) <ON_STACK>: Call write_memory with
2004 gdbarch_breakpoint_from_pc, if possible.
2005 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2006 here.
2007
1467929f
YQ
20082012-07-31 Yao Qi <yao@codesourcery.com>
2009
2010 * tracepoint.c: Add 'static' for some variables.
2011
70976b65
YQ
20122012-07-31 Yao Qi <yao@codesourcery.com>
2013
2014 * go32-nat.c: Declare _initialize_go32_nat.
2015 * ser-go32.c: Declare _initialize_ser_dos.
2016 * top.c (do_chdir_cleanup): Add 'static'.
2017
eff9c3e6
KS
20182012-07-30 Keith Seitz <keiths@redhat.com>
2019
2020 * linespec.c (linespec_lex_number): A number followed
2021 by quotes is a valid number, too.
2022
728400d7
TT
20232012-07-30 Tom Tromey <tromey@redhat.com>
2024
2025 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2026
fcf303ab
UW
20272012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2028
2029 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2030 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2031
4e969b4f
AB
20322012-07-30 Andrew Burgess <aburgess@broadcom.com>
2033
2034 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2035 invalid or reevaluated to prevent prevent references to possibly
2036 delete'd type objects being left in the varobj.
2037
c4bfde41
JK
20382012-07-27 Tom Tromey <tromey@redhat.com>
2039 Jan Kratochvil <jan.kratochvil@redhat.com>
2040
2041 * copying.awk: Print buffer-read-only and vi ro markers.
2042 * copying.c: Rebuild.
2043 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2044 * gdbarch.c, gdbarch.h: Rebuild.
2045 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2046 buffer-read-only and vi ro markers.
2047 * features/arm-with-iwmmxt.c: Rebuild.
2048 * features/arm-with-m-fpa-layout.c: Rebuild.
2049 * features/arm-with-m-vfp-d16.c: Rebuild.
2050 * features/arm-with-m.c: Rebuild.
2051 * features/arm-with-neon.c: Rebuild.
2052 * features/arm-with-vfpv2.c: Rebuild.
2053 * features/arm-with-vfpv3.c: Rebuild.
2054 * features/i386/amd64-avx-linux.c: Rebuild.
2055 * features/i386/amd64-avx.c: Rebuild.
2056 * features/i386/amd64-linux.c: Rebuild.
2057 * features/i386/amd64.c: Rebuild.
2058 * features/i386/i386-avx-linux.c: Rebuild.
2059 * features/i386/i386-avx.c: Rebuild.
2060 * features/i386/i386-linux.c: Rebuild.
2061 * features/i386/i386-mmx-linux.c: Rebuild.
2062 * features/i386/i386-mmx.c: Rebuild.
2063 * features/i386/i386.c: Rebuild.
2064 * features/i386/x32-avx-linux.c: Rebuild.
2065 * features/i386/x32-avx.c: Rebuild.
2066 * features/i386/x32-linux.c: Rebuild.
2067 * features/i386/x32.c: Rebuild.
2068 * features/mips-dsp-linux.c: Rebuild.
2069 * features/mips-linux.c: Rebuild.
2070 * features/mips64-dsp-linux.c: Rebuild.
2071 * features/mips64-linux.c: Rebuild.
2072 * features/rs6000/powerpc-32.c: Rebuild.
2073 * features/rs6000/powerpc-32l.c: Rebuild.
2074 * features/rs6000/powerpc-403.c: Rebuild.
2075 * features/rs6000/powerpc-403gc.c: Rebuild.
2076 * features/rs6000/powerpc-405.c: Rebuild.
2077 * features/rs6000/powerpc-505.c: Rebuild.
2078 * features/rs6000/powerpc-601.c: Rebuild.
2079 * features/rs6000/powerpc-602.c: Rebuild.
2080 * features/rs6000/powerpc-603.c: Rebuild.
2081 * features/rs6000/powerpc-604.c: Rebuild.
2082 * features/rs6000/powerpc-64.c: Rebuild.
2083 * features/rs6000/powerpc-64l.c: Rebuild.
2084 * features/rs6000/powerpc-7400.c: Rebuild.
2085 * features/rs6000/powerpc-750.c: Rebuild.
2086 * features/rs6000/powerpc-860.c: Rebuild.
2087 * features/rs6000/powerpc-altivec32.c: Rebuild.
2088 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2089 * features/rs6000/powerpc-altivec64.c: Rebuild.
2090 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2091 * features/rs6000/powerpc-cell32l.c: Rebuild.
2092 * features/rs6000/powerpc-cell64l.c: Rebuild.
2093 * features/rs6000/powerpc-e500.c: Rebuild.
2094 * features/rs6000/powerpc-e500l.c: Rebuild.
2095 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2096 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2097 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2098 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2099 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2100 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2101 * features/rs6000/powerpc-vsx32.c: Rebuild.
2102 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2103 * features/rs6000/powerpc-vsx64.c: Rebuild.
2104 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2105 * features/rs6000/rs6000.c: Rebuild.
2106 * features/s390-linux32.c: Rebuild.
2107 * features/s390-linux32v1.c: Rebuild.
2108 * features/s390-linux32v2.c: Rebuild.
2109 * features/s390-linux64.c: Rebuild.
2110 * features/s390-linux64v1.c: Rebuild.
2111 * features/s390-linux64v2.c: Rebuild.
2112 * features/s390x-linux64.c: Rebuild.
2113 * features/s390x-linux64v1.c: Rebuild.
2114 * features/s390x-linux64v2.c: Rebuild.
2115 * features/tic6x-c62x-linux.c: Rebuild.
2116 * features/tic6x-c62x.c: Rebuild.
2117 * features/tic6x-c64x-linux.c: Rebuild.
2118 * features/tic6x-c64x.c: Rebuild.
2119 * features/tic6x-c64xp-linux.c: Rebuild.
2120 * features/tic6x-c64xp.c: Rebuild.
2121
826f0041
TT
21222012-07-27 Tom Tromey <tromey@redhat.com>
2123
2124 * c-exp.y (classify_name): Avoid assignment in condition.
2125
84552b16
PA
21262012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2127
2128 * amd64-windows-tdep.c: Include "frame.h".
2129 (amd64_windows_skip_trampoline_code): New function.
2130 (amd64_windows_init_abi): Add trampoline registration.
2131
a8a64aa8
YQ
21322012-07-27 Yao Qi <yao@codesourcery.com>
2133
2134 * tracepoint.c (cur_traceframe_number): Remove.
2135 (set_tfile_traceframe): Remove.
2136 (tfile_trace_find, tfile_fetch_registers): Update callers.
2137 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2138 (tfile_open, tfile_trace_find): Likewise.
2139
d99067cb
YQ
21402012-07-27 Yao Qi <yao@codesourcery.com>
2141
2142 * thread.c (switch_to_thread): Don't call registers_changed.
2143
f2e8016f
TT
21442012-07-26 Tom Tromey <tromey@redhat.com>
2145
f782ad9b
AS
2146 * Makefile.in (SFILES): Remove objc-exp.y.
2147 (YYFILES): Remove objc-exp.c.
2148 (YYOBJ): Remove objc-exp.o.
2149 (local-maintainer-clean): Don't mention objc-exp.c.
2150 * c-exp.y: Include objc-lang.h.
2151 (%union) <class>: New field.
2152 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2153 (exp): Clone subscript production for OBJC_LBRAC. Add various
2154 Objective C productions.
2155 (msglist, msgarglist, msgarg): New productions.
2156 (array_mod, func_mod, operator): Clone productions for
2157 OBJC_LBRAC.
2158 (parse_string_or_char): Handle '@' strings.
2159 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2160 (classify_name): Check la_name_of_this. Recognize ObjC class
2161 names.
2162 * objc-exp.y: Remove.
2163 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2164 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 2165
f66713d2
JK
21662012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2167
2168 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2169
7cfe01b4
JK
21702012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2171
2172 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2173 and decrement.
2174
5ba19b4c
TT
21752012-07-26 Tom Tromey <tromey@redhat.com>
2176
2177 * copying.c: Rebuild.
2178 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2179 'no_class'.
2180
27618ce4
TT
21812012-07-26 Tom Tromey <tromey@redhat.com>
2182
2183 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2184 immediate_quit.
2185 (print_objfile_statistics): Likewise.
2186 (maintenance_print_symbols): Likewise.
2187 (maintenance_print_msymbols): Likewise.
2188 (maintenance_print_objfiles): Likewise.
2189 * psymtab.c (print_partial_symbols): Call QUIT.
2190 (maintenance_print_psymbols): Likewise. Don't modify
2191 immediate_quit.
2192 * copying.c (show_copying_command): Don't modify immediate_quit.
2193 (show_warranty_command): Likewise.
2194 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2195
dd3818c8
KS
21962012-07-26 Keith Seitz <keiths@redhat.com>
2197
2198 * linespec.c (linespec_lexer_lex_number): The input
2199 is also a valid number if the next character is a comma
2200 or colon.
2201
23a80689
JB
22022012-07-26 Joel Brobecker <brobecker@adacore.com>
2203
2204 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2205 configure options.
2206
29f77997
TG
22072012-07-26 Tristan Gingold <gingold@adacore.com>
2208
2209 * machoread.c: Include gdb_bfd.h.
2210
a55c1f32
TG
22112012-07-26 Tristan Gingold <gingold@adacore.com>
2212
2213 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2214 offset.
2215
56eb65bd
SP
22162012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2217
2218 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2219 SIZE to size_t.
2220 (dwarf2_evaluate_loc_desc): Likewise.
2221 (dwarf2_loc_desc_needs_frame): Likewise.
2222 (locexpr_describe_location_1): Likewise.
2223 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2224 size_t.
2225 (struct dwarf2_loclist_baton): Likewise.
2226 * dwarf2read.c (struct dwarf_block): Likewise.
2227 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2228 (decode_locdesc): Expand SIZE and I to size_t.
2229
aec8845c
JK
22302012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2231
2232 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2233
33d7655b
JB
22342012-07-25 Joel Brobecker <brobecker@adacore.com>
2235
2236 * doublest.c (convert_doublest_to_floatformat): If the exponent
2237 is too small, treat the value as zero. If the exponent is too
2238 large, treat the value as infinity.
2239
a22d44ff
JB
22402012-07-25 Joel Brobecker <brobecker@adacore.com>
2241
2242 * configure.ac: Add --enable-lmcheck configure option.
2243 * configure: Regenerate.
2244
d6b28940
TT
22452012-07-25 Tom Tromey <tromey@redhat.com>
2246
f782ad9b
AS
2247 * NEWS: Mention maint info bfds.
2248 * gdb_bfd.c (all_bfds): New global.
2249 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2250 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2251 New functions.
d6b28940 2252
6e73ba20
RC
22532012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2254
2255 * configure.tgt: Add v850*-*-rtems*.
2256
d560eebd
TT
22572012-07-25 Tom Tromey <tromey@redhat.com>
2258
2259 * macrotab.c (macro_bcache_str): Remove cast.
2260
d7cbec71
HZ
22612012-07-25 Hui Zhu <hui_zhu@mentor.com>
2262
2263 * linespec.c (linespec_lexer_lex_number): Update comments,
2264 change the return and add check to make sure the input is
2265 the decimal numbers.
2266 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2267 false, call linespec_lexer_lex_string.
2268
882f447f
TT
22692012-07-24 Tom Tromey <tromey@redhat.com>
2270
2271 * symfile.c (symbol_file_add): Don't open BFD twice.
2272
53ab4066 22732012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2274
2275 * breakpoint.c (create_breakpoint): Store condition for pending
2276 breakpoints.
2277
108fb0f7
AS
22782012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2279
2280 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2281 (m68k_return_value): Handle complex types like structures.
2282 (m68k_svr4_return_value): Likewise.
2283
1634dcbe
JK
22842012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2285
2286 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2287 parameters to bfd_get_section_name.
2288
e2d12c21
YQ
22892012-07-24 Yao Qi <yao@codesourcery.com>
2290
2291 * cli/cli-setshow.c: Handle case 'var_uinteger'
2292 and 'var_zuninteger' together. Handle case 'var_integer' and
2293 'var_zinteger' together.
2294
64b92e45
KS
22952012-07-23 Keith Seitz <keiths@redhat.com>
2296
2297 * linespec.c (convert_linespec_to_sal): Don't add
2298 any symbols to the result vector if symbol_to_sal
2299 returns zero.
2300
0f5f4ffe
KS
23012012-07-23 Keith Seitz <keiths@redhat.com>
2302
2303 * linespec.c (decode_objc): Record the function name
2304 in the linespec.
2305
da1cc82f
TT
23062012-07-23 Tom Tromey <tromey@redhat.com>
2307
2308 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2309 counting.
2310 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2311 (map_vmap): Acquire a reference to the BFD.
2312
6c18f3e0
SP
23132012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2314
2315 * p-valprint.c (pascal_object_print_value): Replace potentially
2316 unsafe alloca with xmalloc/xfree.
2317 * valops.c (search_struct_method): Likewise.
2318
695c3173
TT
23192012-07-23 Tom Tromey <tromey@redhat.com>
2320
2321 * solib-svr4.c (enable_break): Update.
2322 * bfd-target.h (target_bfd_reopen): Update documentation.
2323
08d2cd74
TT
23242012-07-23 Tom Tromey <tromey@redhat.com>
2325
2326 * symfile.c (separate_debug_file_exists): Update.
2327 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2328 (reread_symbols): Update.
2329 * elfread.c (build_id_verify): Update.
2330 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2331 bfd_open_maybe_remote.
2332
596f7d67
TT
23332012-07-23 Tom Tromey <tromey@redhat.com>
2334
2335 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2336
8ac244b4
TT
23372012-07-23 Tom Tromey <tromey@redhat.com>
2338
2339 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2340 and 'abfd'.
2341 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2342 and 'abfd'.
2343 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2344 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2345 'abfd'.
2346 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2347 * objfiles.c (allocate_objfile): Acquire a new reference.
2348 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2349 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2350 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2351 a cleanup for 'nbfd'.
2352 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2353 for 'nbfd'.
2354 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2355 make a cleanup for 'abfd'.
2356 (symbol_file_add): Make a BFD cleanup.
2357
64c31149
TT
23582012-07-23 Tom Tromey <tromey@redhat.com>
2359
2360 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2361 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2362 * corelow.c (core_open): Use gdb_bfd_fopen.
2363 * dsrec.c (load_srec): Use gdb_bfd_openr.
2364 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2365 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2366 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2367 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2368 (gdb_bfd_fdopenr): New functions.
2369 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2370 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2371 (gdb_bfd_fdopenr): Declare.
2372 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2373 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2374 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2375 gdb_bfd_openr_next_archived_file.
2376 (macho_check_dsym): Use gdb_bfd_openr.
2377 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2378 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2379 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2380 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2381 gdb_bfd_openr.
2382 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2383 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2384 gdb_bfd_openr_next_archived_file.
2385 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2386 Use gdb_bfd_openr.
2387 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2388 gdb_bfd_openr.
2389 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2390 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2391 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2392 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2393 (symfile_bfd_open): Use gdb_bfd_fopen.
2394 (generic_load): Use gdb_bfd_openr.
2395 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2396
520b0001
TT
23972012-07-23 Tom Tromey <tromey@redhat.com>
2398
2399 * bfd-target.c (target_bfd_reopen): Update.
2400 * cli/cli-dump.c (bfd_openr_with_cleanup)
2401 (bfd_openw_with_cleanup): Update.
2402 * corelow.c (core_open): Update.
2403 * dsrec.c (load_srec): Update.
2404 * exec.c (exec_file_attach): Update.
2405 * gcore.c (create_gcore_bfd): Update.
2406 * gdb_bfd.c (gdb_bfd_ref): Return void.
2407 (gdb_bfd_open): Update.
2408 * gdb_bfd.h (gdb_bfd_ref): Return void.
2409 Update comments.
2410 * jit.c (jit_bfd_try_read_symtab): Update.
2411 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2412 * machoread.c (macho_symfile_read_all_oso): Update.
2413 (macho_check_dsym): Update.
2414 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2415 * remote-m32r-sdi.c (m32r_load): Update.
2416 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2417 * rs6000-nat.c (add_vmap): Update.
2418 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2419 Update.
2420 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2421 * solib-spu.c (spu_bfd_open): Update.
2422 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2423 * spu-linux-nat.c (spu_bfd_open): Update.
2424 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2425 (generic_load): Update.
2426 * windows-nat.c (windows_make_so): Update.
2427
2322ff16
SP
24282012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2429
2430 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2431
3def0b36
PA
24322012-07-20 Jeff Kenton <jkenton@tilera.com>
2433
2434 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2435 SIGTRAMP_FRAME unwinding.
2436
e615022a
DE
24372012-07-20 Doug Evans <dje@google.com>
2438
2439 * NEWS: Document new options "set/show use-deprecated-index-sections",
2440 and delete reference to --use-deprecated-index-sections.
2441 * symfile.h (use_deprecated_index_sections): Delete.
2442 * dwarf2read.c (use_deprecated_index_sections): Make static.
2443 (read_index_from_section): Update wording of how to load
2444 deprecated index sections.
2445 (_initialize_dwarf2_read): New options
2446 "set/show use-deprecated-index-sections".
2447 * main.c (captured_main): Delete --use-deprecated-index-sections.
2448
64776a0b
PA
24492012-07-20 Pedro Alves <palves@redhat.com>
2450
2451 PR threads/11692
2452 PR gdb/12203
2453
2454 * infrun.c (handle_inferior_event) <new thread>: Don't special
2455 case minus_one_ptid.
2456 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2457 * linux-thread-db.c (thread_get_info_callback): Don't return early
2458 if the thread is zombie.
2459 (thread_from_lwp): Change return type to void. Rewrite stale
2460 comment.
2461 (attach_thread): Don't return early if the thread is zombie,
2462 instead set its "dying" flag.
2463 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2464 (find_new_threads_callback): Don't return early if the thread is
2465 zombie.
2466
09826ec5
PA
24672012-07-20 Pedro Alves <palves@redhat.com>
2468
2469 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2470 * target.c (target_wait): Likewise.
2471 (str_comma_list_concat_elem, do_option, target_options_to_string):
2472 New functions.
2473 * target.h (target_options_to_string): Declare.
2474
f7a35f02
TT
24752012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2476 Tom Tromey <tromey@redhat.com>
2477
2478 * dwarf2read.c (dwarf_decode_macros)
2479 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2480 DW_MACRO_GNU_transparent_include_alt>: New cases.
2481 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2482 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2483
b81e1ee0
TT
24842012-07-20 Tom Tromey <tromey@redhat.com>
2485
2486 * dwarf2read.c (try_open_dwo_file): Don't call
2487 gdb_bfd_stash_filename.
2488
99c1624c
PA
24892012-07-20 Pedro Alves <palves@redhat.com>
2490
2491 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2492 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2493 (i386_process_record): Tweak description comments.
2494
4ffa4fc7
PA
24952012-07-20 Pedro Alves <palves@redhat.com>
2496
2497 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2498 (i386_process_record): Use record_read_memory.
2499 * record.c (record_read_memory): New function.
2500 (record_arch_list_add_mem, record_exec_insn): Use
2501 record_read_memory.
2502 * record.h (record_read_memory): Declare.
2503
c24343e2
YQ
25042012-07-20 Yao Qi <yao@codesourcery.com>
2505
2506 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2507 NULL for xfree.
2508
90f47860
PA
25092012-07-19 Pedro Alves <palves@redhat.com>
2510
2511 * record.c (record_resume): Ask the target beneath to report all
2512 signals.
2513
01093045
DE
25142012-07-19 Doug Evans <dje@google.com>
2515
2516 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2517 there's no section at address zero.
2518 (dwarf2_record_block_ranges): Ditto.
2519
a7c3d162
YQ
25202012-07-19 Yao Qi <yao@codesourcery.com>
2521
2522 * command.h, remote.c: Fix a typo in comment.
2523
608b4967
TT
25242012-07-19 Tom Tromey <tromey@redhat.com>
2525
2526 PR exp/13206:
2527 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2528 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2529 OP_DECLTYPE>: New cases.
2530 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2531 (type_exp): Add new productions.
2532 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2533 and decltype.
2534 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2535 New case.
2536 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2537 OP_DECLTYPE>: New case.
2538 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2539 New case.
2540 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2541 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2542
274b54d7
TT
25432012-07-19 Tom Tromey <tromey@redhat.com>
2544
2545 * c-exp.y (enum token_flags): New.
2546 (struct token) <cxx_only>: Remove.
2547 <flags>: New field.
2548 (tokentab3, tokentab2, ident_tokens): Update.
2549 (lex_one_token): Update. Handle FLAG_SHADOW.
2550
9eaf6705
TT
25512012-07-19 Tom Tromey <tromey@redhat.com>
2552
2553 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2554 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2555 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2556 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2557 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2558 type_exp production where appropriate.
2559 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2560 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2561 <UNOP_MEMVAL_TYPE>: New case.
2562 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2563 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2564 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2565 <UNOP_MEMVAL_TYPE>: New case.
2566 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2567 UNOP_REINTERPRET_CAST>: Update.
2568 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2569 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2570 UNOP_REINTERPRET_CAST>: Update.
2571 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2572 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2573 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2574 constants.
2575
6ace3df1
YQ
25762012-07-19 Yao Qi <yao@codesourcery.com>
2577 Jan Kratochvil <jan.kratochvil@redhat.com>
2578
2579 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2580 and case 'var_optional_filename' together.
2581 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2582 instead of add_setshow_optional_filename_cmd for setshow command
2583 'args'. Set completer for 'set args'.
2584
48faced0
DE
25852012-07-18 Doug Evans <dje@google.com>
2586
2587 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2588 * common/gdb_vecs.c: New file, contents from utils.c.
2589 * common/host-defs.h: New file, contents from defs.h.
2590 * utils.h: New file, contents from defs.h.
2591 * defs.h: Move all declarations of objects defined in utils.c
2592 to utils.h (except QUIT() and related).
2593 #include "utils.h", "host-defs.h".
2594 * probe.h (probe_p): Move here from gdb_vecs.h.
2595 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2596 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2597 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2598 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2599 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2600 (COMMON_OBS): Add gdb_vecs.o.
2601 (gdb_vecs.o): New rule.
2602
66f1999b
KS
26032012-07-18 Keith Seitz <keiths@redhat.com>
2604
2605 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2606 parameter. If non-zero, use SYMNAME as the canonical name
2607 for the SaL.
2608 Update all callers.
2609 (convert_linespec_to_sals): Use add_sal_to_sals for
2610 expressions, too.
2611 (decode_line_full): No need to "fill in missing canonical names"
2612 anymore. Simply make cleanups for the allocated names.
2613
5d94e27b
KS
26142012-07-18 Keith Seitz <keiths@redhat.com>
2615
2616 * linespec.c (struct linespec): Constify expression,
2617 source_filename, function_name, and label_name.
2618 (symbol_not_found_error): Make all parameters const.
2619 (linespec_parser_delete): No need to check for NULL
2620 when using xfree. Cast const char * to char * for xfree.
2621
af4908ba
KS
26222012-07-18 Keith Seitz <keiths@redhat.com>
2623
2624 * breakpoint.c (invalid_thread_id_error): New function.
2625 (find_condition_and_thread): Use invalid_thread_id_error.
2626 (watch_command_1): Likewise.
2627
853254db
TT
26282012-07-18 Tom Tromey <tromey@redhat.com>
2629
2630 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2631 * contrib/cc-with-tweaks.sh: New file.
2632
2ec9a5e0
TT
26332012-07-18 Tom Tromey <tromey@redhat.com>
2634
2635 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2636 (locate_dwz_sections): Recognize .gdb_index.
2637 (create_cus_from_index_list): New function.
2638 (create_cus_from_index): Use it. Handle .dwz data.
2639 (read_index_from_section): New function, extracted from
2640 dwarf2_read_index.
2641 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2642 if needed.
2643
36586728
TT
26442012-07-18 Tom Tromey <tromey@redhat.com>
2645
2646 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2647 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2648 <is_dwz>: New field.
2649 (struct dwz_file): New.
2650 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2651 (locate_dwz_sections, dwarf2_get_dwz_file)
2652 (get_abbrev_section_for_cu): New functions.
2653 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2654 (read_and_check_type_unit_head): Add abbrev_section argument.
2655 (create_debug_types_hash_table): Update.
2656 (init_cutu_and_read_dies): Use proper abbrev section.
2657 (init_cutu_and_read_dies_no_follow): Likewise.
2658 (set_partial_user): Do nothing if PST==NULL.
2659 (read_comp_units_from_section): New function.
2660 (create_all_comp_units): Use it.
2661 (scan_partial_symbols, partial_die_parent_scope): Update.
2662 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2663 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2664 (find_partial_die): Add offset_in_dwz argument. Update.
2665 (guess_partial_die_structure_name, fixup_partial_die): Update.
2666 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2667 DW_FORM_GNU_strp_alt.
2668 (read_indirect_string_from_dwz): New function.
2669 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2670 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2671 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2672 (follow_die_offset): Add offset_in_dwz argument.
2673 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2674 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2675 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2676 Handle new macro forms.
2677 (dwarf_decode_macros): Update.
2678 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2679 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2680 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2681 (create_debug_types_hash_table): Use correct abbrev section.
2682 (get_debug_line_section): New function.
2683 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2684 (process_full_comp_unit): Pass 'required' argument to
2685 end_symtab_get_static_block.
2686 * buildsym.h (end_symtab_get_static_block): Update.
2687 * buildsym.c (end_symtab_get_static_block): Add 'required'
2688 argument.
2689 (end_symtab, end_expandable_symtab): Update.
2690
4bf44c1c
TT
26912012-07-18 Tom Tromey <tromey@redhat.com>
2692
2693 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2694 (pagesize): Remove.
2695 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2696 (zlib_decompress_section): Remove.
2697 (dwarf2_read_section): Use gdb_bfd_map_section.
2698 (munmap_section_buffer): Remove.
2699 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2700 munmap_section_buffer.
2701 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2702 (struct gdb_bfd_section_data): New.
2703 (free_one_bfd_section): New function.
2704 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2705 (get_section_descriptor, zlib_decompress_section)
2706 (gdb_bfd_map_section): New functions.
2707 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2708
bb397797
TT
27092012-07-18 Tom Tromey <tromey@redhat.com>
2710
2711 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2712
6ec53d05
TT
27132012-07-18 Tom Tromey <tromey@redhat.com>
2714
2715 * gdb_bfd.c (struct gdb_bfd_data): New.
2716 (gdb_bfd_cache): New global.
2717 (struct gdb_bfd_cache_search): New.
2718 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2719 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2720 * gdb_bfd.h (gdb_bfd_open): Declare.
2721
f9a062ff
TT
27222012-07-18 Tom Tromey <tromey@redhat.com>
2723
2724 * utils.c (make_cleanup_bfd_unref): Rename from
2725 make_cleanup_bfd_close.
2726 * defs.h (make_cleanup_bfd_unref): Rename from
2727 make_cleanup_bfd_close.
2728 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2729 (bfd_openw_with_cleanup): Update.
2730 * corelow.c (core_open): Update.
2731 * dsrec.c (load_srec): Update.
2732 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2733 * remote-m32r-sdi.c (m32r_load): Update.
2734 * remote-mips.c (mips_load_srec): Update.
2735 (pmon_load_fast): Update.
2736 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2737 Update.
2738 (darwin_bfd_open): Update.
2739 * solib.c (solib_bfd_fopen): Update.
2740 * symfile-mem.c (symbol_file_add_from_memory): Update.
2741 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2742 (symfile_bfd_open): Update.
2743 (generic_load): Update.
2744
d6ad71ba
TT
27452012-07-18 Tom Tromey <tromey@redhat.com>
2746
2747 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2748 (pmon_load_fast): Likewise.
2749 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2750 (m32r_upload_command): Likewise.
2751 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2752 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2753 Use make_cleanup_bfd_close.
2754
a4453b7e
TT
27552012-07-18 Tom Tromey <tromey@redhat.com>
2756
2757 * symfile.c (symfile_bfd_open): Don't copy name. Call
2758 gdb_bfd_stash_filename.
2759 (load_command): Open the new BFD before freeing the old.
2760 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2761 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2762 Call gdb_bfd_stash_filename.
2763 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2764 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2765 gdb_bfd_stash_filename.
2766 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2767 Free found_pathname.
2768 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2769 gdb_bfd_stash_filename.
2770 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2771 * machoread.c (macho_add_oso_symfile): Call
2772 gdb_bfd_stash_filename.
2773 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2774 gdb_bfd_stash_filename.
2775 (macho_check_dsym): Don't copy filename. Call
2776 gdb_bfd_stash_filename.
2777 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2778 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2779 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2780 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2781 * exec.c (exec_close): Don't free the BFD's filename.
2782 (exec_file_attach): Don't copy the filename. Call
2783 gdb_bfd_stash_filename.
2784 * corelow.c (core_close): Don't free the BFD's filename.
2785 (core_open): Call gdb_bfd_stash_filename.
2786 * corefile.c (reopen_exec_file): Remove #if 0 code.
2787 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2788 pathname.
2789 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2790
cbb099e8
TT
27912012-07-18 Tom Tromey <tromey@redhat.com>
2792
2793 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2794 gdb_bfd_unref.
2795 (free_dwo_file): Use gdb_bfd_unref.
2796 * cli/cli-dump.c: Include gdb_bfd.h.
2797 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2798 (bfd_openr_with_cleanup): Likewise.
2799 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2800 gdb_bfd_unref.
2801 * utils.c: Include gdb_bfd.h.
2802 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2803 * symfile.c: Include gdb_bfd.h.
2804 (separate_debug_file_exists): Use gdb_bfd_unref.
2805 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2806 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2807 (generic_load): Use gdb_bfd_ref.
2808 (reread_symbols): Use gdb_bfd_unref.
2809 * symfile-mem.c: Include gdb_bfd.h.
2810 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2811 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2812 * solib.c: Include gdb_bfd.h.
2813 (solib_bfd_fopen): Use gdb_bfd_ref.
2814 (solib_bfd_open): Use gdb_bfd_unref.
2815 (free_so_symbols): Use gdb_bfd_unref.
2816 (reload_shared_libraries_1): Use gdb_bfd_unref.
2817 * solib-spu.c: Include gdb_bfd.h.
2818 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2819 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2820 gdb_bfd_unref.
2821 * solib-frv.c: Include gdb_bfd.h.
2822 (enable_break2): Use gdb_bfd_unref.
2823 * solib-dsbt.c: Include gdb_bfd.h.
2824 (enable_break2): Use gdb_bfd_unref.
2825 * solib-darwin.c: Include gdb_bfd.h.
2826 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2827 gdb_bfd_unref.
2828 (darwin_bfd_open): Use gdb_bfd_unref.
2829 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2830 * remote-mips.c: Include gdb_bfd.h.
2831 (mips_load_srec): Use gdb_bfd_ref.
2832 (pmon_load_fast): Use gdb_bfd_ref.
2833 * remote-m32r-sdi.c: Include gdb_bfd.h.
2834 (m32r_load): Use gdb_bfd_ref.
2835 * record.c: Include gdb_bfd.h.
2836 (record_save_cleanups): Use gdb_bfd_unref.
2837 (cmd_record_save): Use gdb_bfd_unref.
2838 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2839 gdb_bfd_unref.
2840 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2841 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2842 * objfiles.c: Include gdb_bfd.h.
2843 (free_objfile): Use gdb_bfd_unref.
2844 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2845 gdb_bfd.c.
2846 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2847 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2848 (macho_check_dsym): Likewise.
2849 * m32r-rom.c: Include gdb_bfd.h.
2850 (m32r_load): Use gdb_bfd_ref.
2851 (m32r_upload_command): Use gdb_bfd_ref.
2852 * jit.c: Include gdb_bfd.h.
2853 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2854 * gdb_bfd.h: New file.
2855 * gdb_bfd.c: New file.
2856 * gcore.c: Include gdb_bfd.h.
2857 (create_gcore_bfd): Use gdb_bfd_ref.
2858 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2859 (gcore_command): Use gdb_bfd_unref.
2860 * exec.c: Include gdb_bfd.h.
2861 (exec_close): Use gdb_bfd_unref.
2862 (exec_close_1): Use gdb_bfd_unref.
2863 (exec_file_attach): Use gdb_bfd_ref.
2864 * elfread.c: Include gdb_bfd.h.
2865 (build_id_verify): Use gdb_bfd_unref.
2866 * dsrec.c: Include gdb_bfd.h.
2867 (load_srec): Use gdb_bfd_ref.
2868 * corelow.c: Include gdb_bfd.h.
2869 (core_close): Use gdb_bfd_unref.
2870 (core_open): Use gdb_bfd_ref.
2871 * bfd-target.c: Include gdb_bfd.h.
2872 (target_bfd_xclose): Use gdb_bfd_unref.
2873 (target_bfd_reopen): Use gdb_bfd_ref.
2874 * Makefile.in (SFILES): Add gdb_bfd.c.
2875 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2876 (COMMON_OBS): Add gdb_bfd.o.
2877
ed1d1739
KS
28782012-07-18 Keith Seitz <keiths@redhat.com>
2879
2880 * breakpoint.c (find_condition_and_thread): Initialize
2881 TASK and REST.
2882 (create_breakpiont): find_condition_and_thread will now
2883 initialize COND_STRING, THREAD, and REST (and TASK).
2884 (addr_string_to_sals): Likewise.
2885
eab402df
PA
28862012-07-18 Pedro Alves <palves@redhat.com>
2887
2888 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2889 Pull the single step breakpoints out of the target.
2890
2b963b68
SDJ
28912012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2892
2893 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2894 * stap-probe.c (compile_probe_arg): Likewise.
2895
6bac7473
SDJ
28962012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2897
2898 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2899 (elf_compile_to_ax): Likewise.
2900 * infrun.c (insert_exception_resume_from_probe): Likewise.
2901 (check_exception_resume): Remove `objfile' variable.
2902 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2903 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2904 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2905 (compare_entries): Rename to...
2906 (compare_probes): ...this. Adjust function to work with
2907 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2908 respectively.
2909 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2910 `VEC (probe_p) *'.
2911 (print_ui_out_info): Adjust argument to be `struct probe *'.
2912 (info_probes_for_ops): Adjust internal computations to use
2913 `VEC (probe_p) *'.
2914 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2915 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2916 gen_info_probes_table_values>: Remove `objfile' argument.
2917 (struct probe) <objfile>: New field.
2918 (find_probe_by_pc): Remove `objfile' argument.
2919 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2920 (stap_get_probe_argument_count): Likewise.
2921 (stap_get_arg): Likewise.
2922 (stap_evaluate_probe_argument): Likewise.
2923 (stap_compile_to_ax): Likewise.
2924 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2925 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2926 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2927 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2928 sym_compile_to_ax>: Likewise.
2929
3347eb1a 29302012-07-18 Terry Guo <terry.guo@arm.com>
2931
2932 PR 14329
2933 * defs.h (GDB_MI_MSG_WIDTH): New.
2934 * ser_base (ser_base_read_error_fd): New function.
2935 (do_ser_base_readchar): Poll error file descriptor as well as
2936 standard output.
f782ad9b 2937 (generic_readchar): Refactor error handling.
3347eb1a 2938
80c8d323
JB
29392012-07-18 Joel Brobecker <brobecker@adacore.com>
2940
2941 * NEWS: Create a new section for the next release branch.
2942 Rename the section of the current branch, now that it has
2943 been cut.
2944
b45a0664 29452012-07-18 Joel Brobecker <brobecker@adacore.com>
2946
2947 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2948 * version.in: Bump version to 7.5.50.20120718-cvs.
2949
09cf2b22
KS
29502012-07-17 Keith Seitz <keiths@redhat.com>
2951
2952 * linespec.c (linespec_parse_line_offset): Make parameter
2953 const.
2954
8f043999
JK
29552012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2956
2957 PR 11914
2958 * f-valprint.c (info_common_command): New variable frame_id.
2959 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2960 * printcmd.c (print_variable_and_value): Extend function comment.
2961 Add comment for invalidated FRAME.
2962 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2963 FI form FRAME_ID after each print_frame_local_vars.
2964 (struct print_variable_and_value_data): Change frame to frame_id.
2965 (do_print_variable_and_value): New variable frame, initialize it from
2966 p->frame_id. Add comment for invalidated FRAME.
2967 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2968 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2969 for invalidated FRAME.
2970
ae5e0686
MK
29712012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2972 Pedro Alves <palves@redhat.com>
2973
2974 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2975 loop.
2976
5049c5be
TT
29772012-07-16 Tom Tromey <tromey@redhat.com>
2978
2979 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2980
2908cac6
DE
29812012-07-15 Doug Evans <dje@google.com>
2982
094b34ac
DE
2983 * dwarf2read.c (stmt_list_hash): New struct.
2984 (type_unit_group): Embed "per_cu" member, remove pointer.
2985 New union member "t", move member "tus" into it, all uses updated.
2986 New member "hash", replaces member "line_offset, all uses updated.
2987 (quick_file_names): Replace member "offset" with "hash", all uses
2988 updated.
2989 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2990 (hash_file_name_entry, eq_file_name_entry): Call them.
2991 (hash_type_unit_group, eq_type_unit_group): Ditto.
2992 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2993 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2994 (dw2_get_file_names): Update.
2995 (create_type_unit_group): Replace "per_cu" arg with "cu".
2996 All callers updated. Fix "quick" (.gdb_index) handling.
2997 (get_type_unit_group): Replace "per_cu" arg with "cu".
2998 All callers updated.
2999 (build_type_unit_groups): Don't reset tu_stats.
3000
2908cac6
DE
3001 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3002 "tab_cur_size". Change member "tab" to be a htab_t.
3003 (create_filename_seen_cache): Update.
3004 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3005 (filename_seen): Update.
3006
a2b6eff5
DE
30072012-07-13 Doug Evans <dje@google.com>
3008
3009 * symtab.c (filename_seen): Update comment.
3010
4359dff1
JK
30112012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3012 Doug Evans <dje@google.com>
3013
3014 * buildsym.c (end_symtab_1): Split it to ...
3015 (end_symtab_get_static_block): ... this ...
3016 (end_symtab_from_static_block): ... and this function.
3017 (end_symtab, end_expandable_symtab): Call them.
3018 * buildsym.h (end_symtab_get_static_block)
3019 (end_symtab_from_static_block): New declarations.
3020 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3021 Set its valid CU ranges.
3022
a24f71ab
JK
30232012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3024
3025 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3026 DW_OP_GNU_parameter_ref.
3027
d76b7dbc
JK
30282012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3029
3030 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3031 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3032
9fdc877b
DE
30332012-07-13 Doug Evans <dje@google.com>
3034
3035 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3036 (filename_seen_cache): New struct.
3037 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3038 (create_filename_seen_cache): New function.
3039 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3040 (filename_seen): Delete arg "first". New arg "cache". All callers
3041 updated.
3042 (output_source_filename_data): New struct.
3043 (output_source_filename): Delete arg "first". New arg "data".
3044 All callers updated.
3045 (sources_info): Delete local "first". New locals "data", "cleanups".
3046 Rewrite to use filename_seen_cache.
3047 (add_partial_filename_data): Delete member "first". New member
3048 "filename_seen_cache". All uses updated.
3049 (make_source_files_completion_list): Rewrite to use
3050 filename_seen_cache.
3051
f80c6f3f
DE
30522012-07-12 Doug Evans <dje@google.com>
3053
3054 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3055
0bfa869d
DE
30562012-07-10 Doug Evans <dje@google.com>
3057
f4dc4d17
DE
3058 PR gdb/13498
3059 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3060 all_type_unit_groups, type_unit_groups, tu_stats.
3061 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3062 All uses updated. Add type_unit_group to union "s".
3063 (type_unit_group): New struct.
3064 (IS_TYPE_UNIT_GROUP): New macro.
3065 (abbrev_table): Delete unused member "section".
3066 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3067 (dw2_get_cu): Assert not used with type_unit_group.
3068 (dw2_get_primary_cu): New function.
3069 (dw2_build_type_unit_groups_reader): New function.
3070 (dw2_build_type_unit_groups): New function.
3071 (dw2_get_file_names): Assert not called on type units.
3072 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3073 Redo loop to iterate over type unit groups instead of type units.
3074 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3075 (read_abbrev_offset): New function.
3076 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3077 updated.
3078 (create_partial_symtab): New function.
3079 (process_psymtab_comp_unit_reader): Assert not used with type units.
3080 Call create_partial_symtab.
3081 (process_psymtab_type_unit): Delete.
3082 (hash_type_unit_group, eq_type_unit_group): New functions.
3083 (allocate_type_unit_groups_table): New function.
3084 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3085 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3086 (create_type_unit_group, get_type_unit_group): New functions.
3087 (tu_abbrev_offset): New struct.
3088 (sort_tu_by_abbrev_offset): New function.
3089 (add_type_unit_group_to_table): New function.
3090 (build_type_unit_groups): New function.
3091 (build_type_psymtabs_reader): New function.
3092 (build_type_psymtab_dependencies): New function.
3093 (build_type_psymtabs): Rewrite.
3094 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3095 is seen in a type unit.
3096 (process_queue): Move symtab expansion debugging printfs here.
3097 Call process_full_type_unit for type units.
3098 (compute_symtab_includes): Assert not called for type units.
3099 (process_cu_includes): Don't call compute_symtab_includes for
3100 type units.
3101 (process_full_type_unit): New function.
3102 (process_imported_unit_die): Flag an error if called for type units.
3103 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3104 updated. Assert not called for type units.
3105 (read_file_scope): Call dwarf2_start_symtab.
3106 (setup_type_unit_groups): New function.
3107 (read_type_unit_scope): Rewrite.
3108 (abbrev_table_read_table): Initialize abbrev_table->offset.
3109 (abbrev_table_free_cleanup): New function.
3110 (dwarf2_start_symtab): New function.
3111 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3112 * buildsym.c (finish_block_internal): New arg "expandable".
3113 All callers updated.
3114 (start_symtab): Move most contents to ...
3115 (restart_symtab): ... here. New function.
3116 (reset_symtab_globals): New function.
3117 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3118 Call reset_symtab_globals.
3119 (end_symtab, end_expandable_symtab): New functions.
3120 (set_missing_symtab, augment_type_symtab): New functions.
3121 * buildsym.h (end_expandable_symtab): Declare.
3122 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
3123 * psympriv.h (struct partial_symtab): New member "anonymous".
3124 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3125 anonymous psymtabs.
3126 (read_psymtabs_with_filename): Ditto.
3127 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3128 (expand_symtabs_matching_via_partial): Ditto.
3129 (dump_psymtab): Update.
0bfa869d
DE
3130 * dictionary.c (dict_add_pending): New function.
3131 * dictionary.h (dict_add_pending): Declare.
3132
45e58e77
DE
31332012-07-09 Doug Evans <dje@google.com>
3134
b74db436
DE
3135 * buildsym.c (start_subfile): Remove unnecessary check for
3136 name == NULL.
3137
fd55216c
DE
3138 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3139
6721b2ec
DE
3140 * dwarf2read.c (load_full_type_unit): Simplify.
3141
b4dd5633
DE
3142 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3143 to struct signatured_type **. All uses updated.
3144
45e58e77
DE
3145 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3146 All callers updated.
3147
e314d629
TT
31482012-07-09 Tom Tromey <tromey@redhat.com>
3149
3150 * c-exp.y (check_parameter_typelist): New function.
3151 (parameter_typelist): Call it.
3152 * eval.c (make_params): Handle '(void)' case.
3153 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3154 '(void)' case.
3155
aa7c7447
JK
31562012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3157
3158 * common/linux-ptrace.c: Include gdb_assert.h.
3159 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3160 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3161 stdint.h.
3162 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3163 functions.
3164 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3165 * linux-nat.c (linux_child_post_attach)
3166 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3167
889003ed
JK
31682012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3169
3170 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3171 nptl <2.7 bug workaround for core files.
3172
da559b09
JK
31732012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3174
3175 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3176 clearing.
3177 (save_siginfo): Remove.
3178 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3179 call.
3180 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3181 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3182 * linux-nat.h (struct lwp_info): Remove field siginfo.
3183
f865ee35
JK
31842012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3185
3186 Code cleanup for the next patch.
3187 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3188 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3189 call for it.
3190 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3191 (ia64_linux_stopped_data_address):
3192 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3193 the return value.
3194 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3195 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3196 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3197 call for it.
3198
76b83c51
JK
31992012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3200
3201 PR 14321
3202 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3203 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3204
a6fb9c08
TT
32052012-07-06 Tom Tromey <tromey@redhat.com>
3206
3207 * c-exp.y (DOTDOTDOT): New token.
3208 (func_mod, exp): Use parameter_typelist.
3209 (parameter_typelist): New production.
3210 (tokentab3): Add "..." token.
3211 * eval.c (make_params): Handle varargs.
3212 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3213 varargs.
3214
71918a86
TT
32152012-07-06 Tom Tromey <tromey@redhat.com>
3216
3217 PR exp/9608:
3218 * c-exp.y (%union) <tvec>: Change type.
3219 (func_mod): Now uses <tvec> type.
3220 (exp): Update for tvec change.
3221 (direct_abs_decl): Push the typelist.
3222 (func_mod): Return a typelist.
3223 (nonempty_typelist): Update for tvec change.
3224 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3225 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3226 * parse.c (pop_type_list): New function.
3227 (push_typelist): New function.
3228 (follow_types): Handle tp_function_with_arguments.
3229 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3230 (enum type_pieces) <tp_function_with_arguments>: New constant.
3231 (union type_stack_elt) <typelist_val>: New field.
3232 (push_typelist): Declare.
3233
fcde5961
TT
32342012-07-06 Tom Tromey <tromey@redhat.com>
3235
3236 * c-exp.y (%union) <type_stack>: New field.
3237 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3238 (ptr_operator_ts): New production.
3239 (ptype): Update.
3240 * parse.c (type_stack_reserve): New function.
3241 (check_type_stack_depth): Use it.
3242 (pop_type_stack, append_type_stack, push_type_stack)
3243 (get_type_stack, type_stack_cleanup): New functions.
3244 (follow_types): Handle tp_type_stack.
3245 (_initialize_parse): Simplify initialization.
3246 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3247 constant.
3248 (union type_stack_elt) <stack_val>: New field.
3249 (get_type_stack, append_type_stack, push_type_stack)
3250 (type_stack_cleanup): Declare.
3251
1a7d0ce4
TT
32522012-07-06 Tom Tromey <tromey@redhat.com>
3253
3254 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3255 Remove.
3256 (struct type_stack): New.
3257 * parse.c (type_stack, type_stack_size, type_stack_depth):
3258 Remove.
3259 (type_stack): New global.
3260 (parse_exp_in_context, check_type_stack_depth)
3261 (insert_into_type_stack, insert_type, push_type, push_type_int)
3262 (insert_type_address_space, pop_type, pop_type_int)
3263 (_initialize_parse): Update.
3264
16d01384
TT
32652012-07-06 Tom Tromey <tromey@redhat.com>
3266
3267 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3268 Remove %type.
3269
9bfc60bf
SP
32702012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3271
3272 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3273
d5161074
SP
32742012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3275 Jan Kratochvil <jan.kratochvil@redhat.com>
3276
3277 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3278 alloca with xmalloc/xfree.
3279
a74bc576
SP
32802012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3281
3282 * MAINTAINERS (Write After Approval): Add myself to the list.
3283
667e0a4b
DE
32842012-07-05 Doug Evans <dje@google.com>
3285
3286 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3287
34b536a8
HZ
32882012-07-05 Hui Zhu <hui_zhu@mentor.com>
3289
3290 * ax-gdb.c (cli/cli-utils.h): New include.
3291 (linespec.h): Ditto.
3292 (agent_eval_command_one): New function.
3293 (agent_command_1): Ditto.
3294 (agent_command): Call function agent_command_1.
3295 (agent_eval_command): Ditto.
3296 (_initialize_ax_gdb): Change help for "maint agent"
3297 and "maint agent-eval".
3298
e6f0bce7
HZ
32992012-07-05 Hui Zhu <hui_zhu@mentor.com>
3300
3301 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3302 * cli/cli-utils.c (check_for_argument): New function.
3303 * cli/cli-utils.h (check_for_argument): Ditto.
3304
1b3371b1
L
33052012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3306
3307 * NEWS: Mention x32 ABI support.
3308
23e2d720
L
33092012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3310
3311 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3312 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3313
3314 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3315 and pc_regnum_from_eax to -1. Update SP regnum from
3316 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3317 needed.
3318
3319 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3320 pc_regnum_from_eax.
3321
836bf454
JK
33222012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3323
3324 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3325 * dwarf2expr.h: Include gdbtypes.h.
3326 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3327 these forward declarations.
3328 (cu_offset, sect_offset): Move these ...
3329 * gdbtypes.h: Remove include dwarf2expr.h.
3330 (cu_offset, sect_offset): ... here.
3331
1e55e04f
L
33322012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3333
3334 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3335 (amd64_linux_sigtramp_code): This.
3336 (amd64_x32_linux_sigtramp_code): New.
3337 (LINUX_SIGTRAMP_LEN): Updated.
3338 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3339
7d0e21ad
JK
33402012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3341
3342 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3343
8775fd2d
JK
33442012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3345
3346 * config.in: Regenerate.
3347 * configure: Regenerate.
3348 * configure.ac: Remove check for gnu/libc-version.h.
3349 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3350 gnu/libc-version.h.
3351 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3352 variables libc_version, libc_major and libc_minor. Replace sscanf by
3353 inferior_has_bug. Extend the comment.
3354
fcb44371
JK
33552012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3356
3357 * linux-thread-db.c (inferior_has_bug): New function.
3358 (thread_db_find_new_threads_silently): Return boolean as checked by
3359 inferior_has_bug, describe it in the comments.
3360 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3361 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3362 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3363 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3364 if UNTIL_NO_NEW,
3365
09406207
DE
33662012-07-02 Doug Evans <dje@google.com>
3367
0907af0c
DE
3368 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3369 related to queue management.
3370
09406207
DE
3371 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3372 instead of "debug dwarf2-die" in debugging printfs.
3373 (create_debug_info_hash_table_reader): Ditto.
3374 (create_debug_info_hash_table): Ditto.
3375 (init_dwo_file): Ditto.
3376 (init_cutu_and_read_dies): Add debugging printf.
3377 (init_cutu_and_read_dies_no_follow): Ditto.
3378 (process_psymtab_comp_unit_reader): Ditto.
3379
d3ce09f5
SS
33802012-07-02 Stan Shebs <stan@codesourcery.com>
3381
3382 Add target-side support for dynamic printf.
3383 * NEWS: Mention the additional style.
3384 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3385 (struct bp_location): New field cmd_bytecode.
3386 * breakpoint.c: Include format.h.
3387 (disconnected_dprintf): New global.
3388 (parse_cmd_to_aexpr): New function.
3389 (build_target_command_list): New function.
3390 (insert_bp_location): Call it.
3391 (remove_breakpoints_pid): Skip dprintf breakpoints.
3392 (print_one_breakpoint_location): Ditto.
3393 (dprintf_style_agent): New global.
3394 (dprintf_style_enums): Add dprintf_style_agent.
3395 (update_dprintf_command_list): Add agent case.
3396 (agent_printf_command): New function.
3397 (_initialize_breakpoint): Add new commands.
3398 * common/ax.def (printf): New bytecode.
3399 * ax.h (ax_string): Declare.
3400 * ax-gdb.h (gen_printf): Declare.
3401 * ax-gdb.c: Include cli-utils.h, format.h.
3402 (gen_printf): New function.
3403 (maint_agent_print_command): New function.
3404 (_initialize_ax_gdb): Add maint agent-printf command.
3405 * ax-general.c (ax_string): New function.
3406 (ax_print): Add printf disassembly.
3407 * Makefile.in (SFILES): Add format.c
3408 (COMMON_OBS): Add format.o.
3409 * common/format.h: New file.
3410 * common/format.c: New file.
3411 * printcmd.c: Include format.h.
3412 (ui_printf): Call parse_format_string.
3413 * remote.c (remote_state): New field breakpoint_commands.
3414 (PACKET_BreakpointCommands): New enum.
3415 (remote_breakpoint_commands_feature): New function.
3416 (remote_protocol_features): Add new BreakpointCommands entry.
3417 (remote_can_run_breakpoint_commands): New function.
3418 (remote_add_target_side_commands): New function.
3419 (remote_insert_breakpoint): Call it.
3420 (remote_insert_hw_breakpoint): Ditto.
3421 (_initialize_remote): Add new packet configuration for
3422 target-side breakpoint commands.
3423 * target.h (struct target_ops): New field
3424 to_can_run_breakpoint_commands.
3425 (target_can_run_breakpoint_commands): New macro.
3426 * target.c (update_current_target): Handle
3427 to_can_run_breakpoint_commands.
3428
2d7b58e8
JK
34292012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3430
3431 Execute -ix and -iex only after system and user gdbinit files.
3432 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3433 processing down after gdbinit files.
3434
8690e634
JK
34352012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3436
3437 Add fnmatch-gnu module.
3438 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3439 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3440 * gnulib/aclocal.m4: Regenerate.
3441 * gnulib/config.in: Regenerate.
3442 * gnulib/configure: Regenerate.
3443 * gnulib/import/dummy.c: Remove.
3444 * gnulib/import/Makefile.am: Regenerate.
3445 * gnulib/import/Makefile.in: Likewise.
3446 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3447 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3448 * gnulib/import/alloca.c: New file.
3449 * gnulib/import/alloca.in.h: Likewise.
3450 * gnulib/import/config.charset: Likewise.
3451 * gnulib/import/fnmatch.c: Likewise.
3452 * gnulib/import/fnmatch.in.h: Likewise.
3453 * gnulib/import/fnmatch_loop.c: Likewise.
3454 * gnulib/import/localcharset.c: Likewise.
3455 * gnulib/import/localcharset.h: Likewise.
3456 * gnulib/import/m4/alloca.m4: Likewise.
3457 * gnulib/import/m4/codeset.m4: Likewise.
3458 * gnulib/import/m4/configmake.m4: Likewise.
3459 * gnulib/import/m4/fcntl-o.m4: Likewise.
3460 * gnulib/import/m4/fnmatch.m4: Likewise.
3461 * gnulib/import/m4/glibc21.m4: Likewise.
3462 * gnulib/import/m4/localcharset.m4: Likewise.
3463 * gnulib/import/m4/locale-fr.m4: Likewise.
3464 * gnulib/import/m4/locale-ja.m4: Likewise.
3465 * gnulib/import/m4/locale-zh.m4: Likewise.
3466 * gnulib/import/m4/mbrtowc.m4: Likewise.
3467 * gnulib/import/m4/mbsinit.m4: Likewise.
3468 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3469 * gnulib/import/m4/mbstate_t.m4: Likewise.
3470 * gnulib/import/m4/stdbool.m4: Likewise.
3471 * gnulib/import/m4/wchar_h.m4: Likewise.
3472 * gnulib/import/m4/wctype_h.m4: Likewise.
3473 * gnulib/import/m4/wint_t.m4: Likewise.
3474 * gnulib/import/mbrtowc.c: Likewise.
3475 * gnulib/import/mbsinit.c: Likewise.
3476 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3477 * gnulib/import/mbsrtowcs-state.c: Likewise.
3478 * gnulib/import/mbsrtowcs.c: Likewise.
3479 * gnulib/import/ref-add.sin: Likewise.
3480 * gnulib/import/ref-del.sin: Likewise.
3481 * gnulib/import/stdbool.in.h: Likewise.
3482 * gnulib/import/streq.h: Likewise.
3483 * gnulib/import/strnlen1.c: Likewise.
3484 * gnulib/import/strnlen1.h: Likewise.
3485 * gnulib/import/verify.h: Likewise.
3486 * gnulib/import/wchar.in.h: Likewise.
3487 * gnulib/import/wctype.in.h: Likewise.
3488
202cbf1c
JK
34892012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3490
3491 Support shell wildcards for 'set auto-load safe-path'.
3492 * auto-load.c: Include fnmatch.h.
3493 (filename_is_in_dir): Rename to ...
3494 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3495 it. Update function comment. Rename dir_len to pattern_len. New
3496 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3497 messages. Use gdb_filename_fnmatch.
3498 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3499 pattern.
3500 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3501 * defs.h (gdb_filename_fnmatch): New declaration.
3502 * utils.c: Include fnmatch.h.
3503 (gdb_filename_fnmatch): New function.
3504
fb7b5af4
SDJ
35052012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3506
3507 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3508 `-probe' and `-probe-stap' options.
3509
72d0e2c5
YQ
35102012-07-01 Yao Qi <yao@codesourcery.com>
3511
3512 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3513 always_inserted_off, and always_inserted_enums.
3514 Change always_inserted_mode's type to 'enum auto_boolean'.
3515 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3516 callers.
3517 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3518 of add_setshow_enum_cmd.
3519 * infrun.c: Remove can_use_displaced_stepping_auto,
3520 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3521 can_use_displaced_stepping_enum.
3522 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3523 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3524 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3525 add_setshow_enum_cmd.
3526
42e7ad6c
DE
35272012-06-30 Doug Evans <dje@google.com>
3528
3529 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3530 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3531 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3532
39cf75f7
DE
35332012-06-29 Doug Evans <dje@google.com>
3534
3535 * linespec.c: #include "stack.h".
3536 (decode_line_with_current_source): Moved here from symtab.c and
3537 renamed from decode_line_spec. All callers updated.
3538 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3539 renamed from decode_line_spec_1. All callers updated.
3540 * linespec.h (decode_line_with_current_source): Move declaration here
3541 from symtab.h and renamed from decode_line_spec.
3542 (decode_line_with_last_displayed): Move declaration here from symtab.h
3543 and renamed from decode_line_spec_1.
3544 * macrocmd.c: #include "linespec.h".
3545 * symtab.c: Remove #include "linespec.h".
3546
433df2d4
DE
35472012-06-28 Doug Evans <dje@google.com>
3548
1ce1cefd
DE
3549 * dwarf2read.c (get_cu_length): New function.
3550 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3551 (create_debug_types_hash_table): Ditto.
3552 (init_cutu_and_read_dies): Ditto.
3553 (init_cutu_and_read_dies_no_follow): Ditto.
3554
3b80fe9b
DE
3555 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3556
433df2d4
DE
3557 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3558 (struct abbrev_table): Define.
3559 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3560 abbrev_table.
3561 (init_cutu_and_read_dies): Update.
3562 (abbrev_table_alloc_abbrev): New function. Replaces
3563 dwarf_alloc_abbrev. All callers updated.
3564 (abbrev_table_add_abbrev): New function.
3565 (abbrev_table_lookup_abbrev): New function. Replaces
3566 dwarf2_lookup_abbrev. All callers updated.
3567 (abbrev_table_read_table): New function. Contents moved here from
3568 dwarf2_read_abbrevs.
3569 (dwarf2_read_abbrevs): Call it.
3570 (abbrev_table_free): New function.
3571 (dwarf2_free_abbrev_table): Call it.
3572
71caed83
SS
35732012-06-28 Stan Shebs <stan@codesourcery.com>
3574
3575 * osdata.c (info_osdata_command): Filter out "Title" columns
3576 from non-MI uses.
3577 * common/linux-osdata.c (struct osdata_type): Add title field.
3578 (osdata_table): Add titles to each entry.
3579 (linux_command_xfer_osdata): Add a column for title data.
3580
37ce89eb
SS
35812012-06-28 Stan Shebs <stan@codesourcery.com>
3582
3583 Make logging work for MI.
3584 * NEWS: Mention it.
3585 * interps.h (interp_set_logging_ftype): New typedef.
3586 (struct interp_procs): New field set_logging_proc.
3587 (current_interp_set_logging): Declare.
3588 * interps.c (current_interp_set_logging): New function.
3589 * cli/cli-logging.c: Include interps.h.
3590 (set_logging_redirect): Call current_interp_set_logging.
3591 (pop_output_files): Ditto.
3592 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3593 * mi/mi-console.h (mi_console_set_raw): Declare.
3594 * mi/mi-console.c (mi_console_set_raw): New function.
3595 * mi/mi-interp.c (saved_raw_stdout): New global.
3596 (mi_set_logging): New function.
3597 (_initialize_mi_interp): Add it to interp procs.
3598
659c9f3a
DE
35992012-06-28 Doug Evans <dje@google.com>
3600
a743abeb
DE
3601 * symtab.c (lookup_symbol_aux_objfile): Use
3602 ALL_OBJFILE_PRIMARY_SYMTABS.
3603
659c9f3a
DE
3604 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3605
da2d6d3d
JK
36062012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3607
3608 * common/buffer.c: Include inttypes.h and stdint.h.
3609 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3610
e5ef252a
PA
36112012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3612 Pedro Alves <palves@redhat.com>
3613
3614 * gdbthread.h (ALL_THREADS): New macro.
3615 (thread_list): Declare.
3616 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3617 going, but instead fall through to the stepping handling.
3618 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3619 the passed in signal. Adjust debug output.
3620 (resume_callback): Rename to ...
3621 (linux_nat_resume_callback): ... this. Pass the thread's last
3622 stop signal, if in "pass" state.
3623 (linux_nat_resume): Adjust to rename.
3624 (stop_wait_callback): New assertion. Don't respawn signals;
3625 instead let the LWP remain with SIGNALLED set.
3626 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3627 * remote.c (append_pending_thread_resumptions): New.
3628 (remote_vcont_resume): Call it.
3629 * target.h (target_resume): Extend comment.
3630
1d7975eb
IS
36312012-06-28 Iain Sandoe <iain@codesourcery.com>
3632
3633 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3634
2e3cf129
DE
36352012-06-27 Doug Evans <dje@google.com>
3636
3637 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3638 Delete have_addr_base, unused. All uses updated.
3639 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3640 (dwarf2_get_pc_bounds): Add ranges_base.
3641 (dwarf2_record_block_ranges): Ditto.
3642
1bb9788d
TT
36432012-06-27 Tom Tromey <tromey@redhat.com>
3644
3645 PR macros/7961:
3646 * varobj.c (varobj_create): Update.
3647 (varobj_set_value): Update.
3648 * tracepoint.c (validate_actionline): Update.
3649 (encode_actions_1): Update.
3650 * parse.c (parse_exp_1): Add 'pc' argument.
3651 (parse_exp_in_context): Add 'pc' argument. Change how
3652 expression_context_pc is set.
3653 (parse_expression): Update.
3654 (parse_field_expression): Update.
3655 * expression.h (parse_exp_1): Update.
3656 * eval.c (parse_to_comma_and_eval): Update.
3657 * breakpoint.c (set_breakpoint_condition): Update.
3658 (update_watchpoint): Update.
3659 (init_breakpoint_sal): Update
3660 (find_condition_and_thread): Update.
3661 (watch_command_1): Update.
3662 (update_breakpoint_locations): Update.
3663 * ada-lang.c (ada_read_renaming_var_value): Update.
3664 (create_excep_cond_exprs): Update.
3665
0bc3a05c
DE
36662012-06-27 Doug Evans <dje@google.com>
3667
3668 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3669 type units.
3670
4bdcc0c1
DE
36712012-06-26 Doug Evans <dje@google.com>
3672
3673 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3674 prototype.
3675 (error_check_comp_unit_head): New arg abbrev_section. All callers
3676 updated.
3677 (read_and_check_comp_unit_head): Ditto.
3678 (read_and_check_type_unit_head): Ditto.
3679
ee0bf529
SCR
36802012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3681
3682 New attribute 'last' for gdb.Symtab_and_line.
3683 * NEWS (Python Scripting): Add entry about the new attribute.
3684 * python/py-symtab.c (salpy_get_last): New function which
3685 implements the get method for the 'last' attribute of
3686 gdb.Symtab_and_line.
3687 (sal_object_getset): Add entry for the 'last' attribute.
3688
1c658ad5
DE
36892012-06-26 Doug Evans <dje@google.com>
3690
09262596
DE
3691 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3692 (dwo_sections): Add macinfo, macro.
3693 (dwarf2_locate_dwo_sections): Watch for macro sections.
3694 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3695 All callers updated. Handle DWO files.
3696
45cfd468
DE
3697 * NEWS: Mention new options "set debug dwarf2-read" and
3698 "set debug symtab-create".
3699 * dwarf2read.c (dwarf2_read_debug): New static global.
3700 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3701 (process_queue): Ditto.
3702 (process_full_comp_unit): Ditto.
3703 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3704 * elfread.c (elf_symfile_read): Add debugging printf.
3705 * minsyms.c (install_minimal_symbols): Ditto.
3706 * psymtab.c (allocate_psymtab): Ditto.
3707 * symfile.c (allocate_symtab): Ditto.
3708 * symtab.c (symtab_create_debug): New global.
3709 (_initialize_symtab): Add new option "set debug symtab-create".
3710 * symtab.h (symtab_create_debug): Declare.
3711
1c658ad5
DE
3712 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3713 (lookup_dwo_type_unit): Ditto.
3714
6fea9e18
L
37152012-06-26 Roland McGrath <roland@hack.frob.com>
3716 H.J. Lu <hongjiu.lu@intel.com>
3717
3718 * amd64-linux-nat.c: Include <sys/user.h>.
3719 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3720 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3721 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3722
3723 * configure.ac: Check if the fs_base and gs_base members of
3724 `struct user_regs_struct' exist.
3725 * config.in: Regenerated.
3726 * configure: Likewise.
3727
adb4fe3b
ME
37282012-06-25 Michael Eager <eager@eagercon.com>
3729
3730 PR python/14291
f782ad9b 3731 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3732
fc51cce1
MGD
37332012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3734
3735 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3736 register as a stack alignment in ARM mode.
3737
40a73391
JK
37382012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3739
3740 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3741 * gnulib/config.in: Regenerate.
3742 * gnulib/configure: Likewise.
3743 * gnulib/import/m4/extensions.m4: Update it.
3744 * gnulib/import/m4/gnulib-common.m4: Likewise.
3745 * gnulib/import/m4/memmem.m4: Likewise.
3746 * gnulib/import/m4/mmap-anon.m4: Likewise.
3747 * gnulib/import/m4/multiarch.m4: Likewise.
3748 * gnulib/import/stdint.in.h: Likewise.
3749
972daa01
YQ
37502012-06-24 Yao Qi <yao@codesourcery.com>
3751
3752 * corefile.c (write_memory_with_notification): New.
3753 * gdbcore.h: Declare write_memory_with_notification.
3754 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3755 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3756 * valops.c (value_assign): Likewise.
3757 * python/py-inferior.c (infpy_write_memory): Call
3758 'write_memory_with_notification'.
3759
8d6e0714
JK
37602012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3761
3762 * cc-with-index.sh: Use also -ex "set auto-load no".
3763
156942c7
DE
37642012-06-23 Doug Evans <dje@google.com>
3765
3766 PR 14125
3767 * NEWS: Document additions to .gdb_index.
3768 * dwarf2read.c: #include "gdb/gdb-index.h".
3769 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3770 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3771 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3772 (dwarf2_read_index): Recognize version 7.
3773 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3774 block_kind, domain): All callers updated.
3775 (dw2_find_symbol_file): Handle new index CU values.
3776 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3777 (add_index_entry): New args is_static, kind. All callers updated.
3778 (offset_type_compare, uniquify_cu_indices): New functions
3779 (symbol_kind): New function.
3780 (write_psymtabs_to_index): Remove duplicate CU values.
3781 (write_psymtabs_to_index): Write .gdb_index version 7.
3782
352b3eda
JB
37832012-06-22 Joel Brobecker <brobecker@adacore.com>
3784
3785 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3786 * configure: Regenerate.
3787
2678e2af
YQ
37882012-06-20 Yao Qi <yao@codesourcery.com>
3789
3790 * python/py-inferior.c: Update comments of infpy_read_memory
3791 and infpy_write_memory.
3792
95c391b6
TT
37932012-06-19 Tom Tromey <tromey@redhat.com>
3794
3795 PR exp/9514:
3796 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3797 (push_type_address_space): Remove.
3798 * parse.c (insert_into_type_stack): New function.
3799 (insert_type): Likewise.
3800 (insert_type_address_space): Rename from push_type_address_space.
3801 Insert tp_space_identifier.
3802 * c-exp.y (ptr_operator): New production.
3803 (abs_decl): Use ptr_operator.
3804 (space_identifier): Call insert_type_address_space.
3805 (ptype): Don't use const_or_volatile_or_space_identifier.
3806 (const_or_volatile_noopt): Call insert_type.
3807 (conversion_type_id, conversion_declarator): New productions.
3808 (operator): Use conversion_type_id.
3809
6ac9ef80
DE
38102012-06-18 Doug Evans <dje@google.com>
3811
422d65e7
DE
3812 * symtab.h (minimal_symbol): New member created_by_gdb.
3813 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3814 created by gdb.
3815 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3816 (search_symbols): Call it instead of lookup_symbol.
3817 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3818
49f6c839
DE
3819 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3820 Adjust address for DW_OP_GNU_addr_index.
3821 * dwarf2expr.h (dwarf_expr_context): Update comment.
3822 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3823 all callers updated. Handle TLS vars described with
3824 DW_OP_GNU_const_index.
3825 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3826 and DW_OP_GNU_const_index.
3827 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3828
6ac9ef80
DE
3829 * block.c (find_block_in_blockvector): Make explicit the fact that we
3830 ignore GLOBAL_BLOCK.
3831
4cd18215
TT
38322012-06-18 Tom Tromey <tromey@redhat.com>
3833
3834 * c-exp.y (operator): Remove trailing space after "delete" and
3835 "delete[]".
3836
a9b8d892
JK
38372012-06-18 Mark Kettenis <kettenis@gnu.org>
3838 Jan Kratochvil <jan.kratochvil@redhat.com>
3839
3840 Switch i386 and derived targets to ON_STACK.
3841 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3842 (amd64_dicos_init_abi): Remove its installment.
3843 * dicos-tdep.c (dicos_init_abi): Remove the
3844 set_gdbarch_call_dummy_location call. Update the comment here.
3845 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3846 (i386_dicos_init_abi): Remove its installment.
3847 * i386-tdep.c (i386_push_dummy_code): New function.
3848 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3849 i386_push_dummy_code.
3850
e2e4d78b
JK
38512012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3852
3853 Remove stale dummy frames.
3854 * breakpoint.c: Include dummy-frame.h.
3855 (longjmp_breakpoint_ops): New variable.
3856 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3857 bp_longjmp_call_dummy.
3858 (bpstat_what, bptype_string, print_one_breakpoint_location)
3859 (init_bp_location): Support bp_longjmp_call_dummy.
3860 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3861 (set_longjmp_breakpoint_for_call_dummy)
3862 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3863 functions.
3864 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3865 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3866 FIXME comment and extend the other comment for bp_call_dummy.
3867 (set_longjmp_breakpoint_for_call_dummy)
3868 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3869 * dummy-frame.c: Include gdbthread.h.
3870 (pop_dummy_frame_bpt): New function.
3871 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3872 (dummy_frame_discard): New function.
3873 (cleanup_dummy_frames): Update the comment about longjmps.
3874 * dummy-frame.h (dummy_frame_discard): New declaration.
3875 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3876 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3877 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3878 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3879 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3880 keep_going if IS_LONGJMP and there is no other reason to stop.
3881
09d5912c
TT
38822012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3883
3884 * remote-sim.c (sim_command_completer): Initialize
3885 variable 'result'.
3886
1788b2d3
JK
38872012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3888
3889 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3890 * dwarf2loc.c (call_site_parameter_matches): Support
3891 CALL_SITE_PARAMETER_PARAM_OFFSET.
3892 (needs_dwarf_reg_entry_value): Push stub value.
3893 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3894 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3895 * gdbtypes.h (enum call_site_parameter_kind): New item
3896 CALL_SITE_PARAMETER_PARAM_OFFSET.
3897 (struct call_site.parameter.u): New field param_offset.
3898
24c5c679
JK
38992012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3900
3901 Code cleanup: Generalize call_site.parameter key.
3902 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3903 variable dwarf_reg. New variable kind_u. Update parameters to
3904 push_dwarf_reg_entry_value.
3905 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3906 * dwarf2expr.h (enum call_site_parameter_kind)
3907 (union call_site_parameter_u): Forward declarations.
3908 (struct dwarf_expr_context_funcs): Update parameters and their
3909 description for push_dwarf_reg_entry_value.
3910 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3911 * dwarf2loc.c (call_site_parameter_matches): New function.
3912 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3913 description. Use call_site_parameter_matches.
3914 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3915 Update parameters and their description.
3916 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3917 New variable kind_u. Adjust the caller for updated parameters.
3918 (needs_dwarf_reg_entry_value): Update parameters.
3919 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3920 instead of attr. Update for the changed fields of struct
3921 call_site_parameter.
3922 * gdbtypes.h: Include dwarf2expr.h.
3923 (enum call_site_parameter_kind): New.
3924 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3925 fb_offset into new union u.
3926
ac142d96
L
39272012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3928
3929 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3930 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3931 for x32.
3932
ba224c70
L
39332012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3934
3935 * amd64-linux-nat.c (compat_x32_clock_t): New.
3936 (compat_x32_siginfo_t): Likewise.
3937 (compat_x32_siginfo_from_siginfo): Likewise.
3938 (siginfo_from_compat_x32_siginfo): Likewise.
3939 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3940 and siginfo_from_compat_x32_siginfo for x32.
3941
7ecbc825
HZ
39422012-06-15 Hui Zhu <hui_zhu@mentor.com>
3943
3944 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3945
233dfcf0
L
39462012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3947
3948 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3949 instead of gdbarch_ptr_bit.
3950 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3951 (amd64_supply_native_gregset): Likewise.
3952 (amd64_collect_native_gregset): Likewise.
3953 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3954 (amd64_supply_xsave): Likewise.
3955 (amd64_collect_fxsave): Likewise.
3956 (amd64_collect_xsave): Likewise.
3957
6da38f42
L
39582012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3959
3960 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3961 (amd64_linux_read_description): Check DS segment register for
3962 x32 process.
3963
663b969e
TT
39642012-06-15 Tom Tromey <tromey@redhat.com>
3965
3966 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3967 init_cutu_and_read_dies.
3968
d6f05027
IS
39692012-06-15 Iain Sandoe <iain@codesourcery.com>
3970
3971 * MAINTAINERS (Write After Approval): Add myself to the list.
3972
6598ed07
TT
39732012-06-15 Tom Tromey <tromey@redhat.com>
3974
3975 * valops.c (value_find_oload_method_list): Now static.
3976 * value.h (value_find_oload_method_list): Don't declare.
3977
2b214ea6
TT
39782012-06-15 Tom Tromey <tromey@redhat.com>
3979
3980 * valops.c (find_overload_match): Use value_ind.
3981
a210c238
MR
39822012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3983
3984 * infrun.c (handle_inferior_event): Correct indentation.
3985
3771a44c
DE
39862012-06-14 Doug Evans <dje@google.com>
3987
3988 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3989 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3990 All uses updated.
3991 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3992 updated. Handle DEBUG_LOC_START_LENGTH.
3993 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3994 (loclist_describe_location): Ditto.
3995
1c5a993e
MR
39962012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3997
3998 PR backtrace/13866
3999 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4000 after hiding inline functions.
4001
0b155465
JB
40022012-06-13 Joel Brobecker <brobecker@adacore.com>
4003
4004 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4005 _initialize_inf_ttrace.
4006
45717bac
JB
40072012-06-13 Joel Brobecker <brobecker@adacore.com>
4008
4009 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4010 _initialize_hppa_hpux_nat.
4011
34370865
JB
40122012-06-13 Joel Brobecker <brobecker@adacore.com>
4013
4014 * remote-sim.c (sim_command_completer): Change type of return
4015 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4016
284c5a60
MK
40172012-06-13 Mark Kettenis <kettenis@gnu.org>
4018 Jan Kratochvil <jan.kratochvil@redhat.com>
4019
4020 PR tdep/14222
4021 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4022 stack on a 16-byte boundary.
4023
2535757a
TT
40242012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4025
4026 * jit.c (finalize_symtab): Set function's return type to 'void' by
4027 default.
4028
fff4548b
MK
40292012-06-13 Mark Kettenis <kettenis@gnu.org>
4030 H.J. Lu <hongjiu.lu@intel.com>
4031
5a83521a
MK
4032 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4033 Move bits common to both the classic LP64 and the new x32 ILP32
4034 ABI here.
4035 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4036 (amd64_x32_linux_init_abi): New function.
4037 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4038 subtype.
4039
fff4548b
MK
4040 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4041 * i386-tdep.c (i386_pseudo_register_name): Make public.
4042 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4043 * amd64-tdep.c (amd64_dword_names): Add "eip".
4044 (amd64_x32_pseudo_register_type): New function
4045 (amd64_x32_init_abi): New function.
4046
dd80ea3c
JK
40472012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4048
4049 PR build/14003
4050 * inferior.h (struct inferior_suspend_state): Comment out.
4051 (struct inferior): Comment out the field suspend.
4052 * infrun.c (struct infcall_suspend_state): Comment out the field
4053 inferior_suspend.
4054 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4055 out its assignment.
4056
50af5481
JK
40572012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4058
4059 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4060 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4061 function comment. Return ERROR for unresolved cases. Implement
4062 returning proper NAME.
4063 (yylex): Accept also NAME from classify_inner_name.
4064 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4065 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4066 LOC_TYPEDEF type.
4067 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4068
d55637df
TT
40692012-06-13 Tom Tromey <tromey@redhat.com>
4070
4071 * breakpoint.c (condition_completer): New function.
4072 (_initialize_breakpoint): Use it.
4073 * value.c (complete_internalvar): New function.
4074 * value.h (complete_internalvar): Declare.
4075
49c4e619
TT
40762012-06-13 Tom Tromey <tromey@redhat.com>
4077
4078 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4079 * breakpoint.c (catch_syscall_completer): Return a VEC.
4080 * cli/cli-cmds.c (complete_command): Update.
4081 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4082 (complete_on_enum): Likewise.
4083 * command.h: Include gdb_vecs.h.
4084 (completer_ftype): Change return type.
4085 (complete_on_cmdlist, complete_on_enum): Likewise.
4086 * completer.c (noop_completer, filename_completer)
4087 (location_completer): Return a VEC.
4088 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4089 to a VEC.
4090 (expression_completer, complete_line_internal, complete_line)
4091 (command_completer): Return a VEC.
4092 (gdb_completion_word_break_characters, line_completion_function):
4093 Update.
4094 * completer.h: Include gdb_vecs.h.
4095 (complete_line, noop_completer, filename_completer)
4096 (expression_completer, location_completer, command_completer):
4097 Update.
4098 * f-lang.c (f_word_break_characters): Return a VEC.
4099 * interps.c (interpreter_completer): Return a VEC.
4100 * language.h (struct language_defn)
4101 <la_make_symbol_completion_list>: Return a VEC.
4102 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4103 * symtab.c (free_completion_list): Take a VEC.
4104 (return_val_size, return_val_index): Remove.
4105 (return_val): Now a VEC.
4106 (completion_list_add_name): Update.
4107 (default_make_symbol_completion_list_break_on)
4108 (default_make_symbol_completion_list, make_symbol_completion_list)
4109 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4110 Return a VEC.
4111 (add_filename_to_list): Update.
4112 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4113 <list>: Now a VEC.
4114 (maybe_add_partial_symtab_filename): Update.
4115 (make_source_files_completion_list): Return a VEC.
4116 * symtab.h (default_make_symbol_completion_list_break_on)
4117 (default_make_symbol_completion_list, make_symbol_completion_list)
4118 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4119 (make_source_files_completion_list): Update.
4120
625e8578
TT
41212012-06-13 Tom Tromey <tromey@redhat.com>
4122
4123 * breakpoint.c (add_catch_command): Use completer_ftype.
4124 * breakpoint.h: Include command.h.
4125 (add_catch_command): Use completer_ftype.
4126 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4127 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4128 Use completer_ftype.
4129 * command.h (completer_ftype): New typedef.
4130 (set_cmd_completer): Use it.
4131 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4132 completer_ftype.
4133
5eb3b062
PA
41342012-06-13 Pedro Alves <palves@redhat.com>
4135
4136 Partial revert of previous change.
4137
4138 * serial.c (scb_base): New global.
4139 (serial_for_fd): New.
4140 (serial_open, serial_fdopen_ops): Link new serial in open serials
4141 chain.
4142 (do_serial_close): Unlink serial from the open serials chain.
4143
8b3ee56d
PA
41442012-06-12 Pedro Alves <palves@redhat.com>
4145
4146 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4147 threads here.
4148 (prepare_for_detach): No longer context switch here in non-stop
4149 mode.
4150 (fetch_inferior_event): Ditto.
4151 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4152 to the event thread before removing breakpoints. Switch to the
4153 event thread before inserting breakpoints and resuming.
4154 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4155 event thread before resuming.
4156 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4157 Switch to the event thread before removing breakpoints.
4158
5d60742e
EZ
41592012-06-12 Eli Zaretskii <eliz@gnu.org>
4160
4161 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4162 special characters correctly for the Windows shells. See
4163 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4164 report.
4165 [!__MINGW32__]: Remove extra double quote character from special
4166 characters.
4167
a6feecf7
SS
41682012-06-11 Stan Shebs <stan@codesourcery.com>
4169
4170 * ui-out.h: Remove #if 0 declarations.
4171 * ui-out.c: Remove #if 0 functions.
4172
ddefb60f
PA
41732012-06-11 Pedro Alves <palves@redhat.com>
4174
4175 * ser-base.c (run_async_handler_and_reschedule): New.
4176 (fd_event, push_event): Use it.
4177 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4178 reference count to 1.
4179 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4180 instead of xfree.
4181 (serial_is_open, serial_ref, serial_unref): New.
4182 * serial.h (serial_open): Adjust comment.
4183 (serial_is_open): Declare.
4184 (serial_close): Adjust comment.
4185 (serial_ref, serial_unref) Declare.
4186 (struct serial): New field 'refcnt'.
4187
d5ad6aa5
PA
41882012-06-11 Pedro Alves <palves@redhat.com>
4189
4190 Remove #if 0'd "connect" command, and unnecessary associated
4191 refcounting and serial reuse bits.
4192
4193 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4194 * serial.c (last_serial_opened): Delete.
4195 (scb_base): Delete.
4196 (serial_open): Adjust.
4197 (serial_for_fd): Delete.
4198 (serial_fdopen_ops, do_serial_close): Adjust.
4199 (serial_fdopen_ops): Adjust.
4200
318aa544
PA
42012012-06-11 Pedro Alves <palves@redhat.com>
4202
4203 * serial.c (do_serial_close): Remove early return when SCB is
4204 null.
4205
07261596
TT
42062012-06-11 Tom Tromey <tromey@redhat.com>
4207
4208 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4209
cc80f267
JK
42102012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4211
4212 Fix regression by the "ambiguous linespec" series.
4213 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4214 get_last_displayed_symtab and get_last_displayed_line and depending
4215 on CURSAL.
4216
356d9f9d
TT
42172012-06-11 Tom Tromey <tromey@redhat.com>
4218
4219 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4220 (dw2_find_symbol_file): Use it.
4221
232b8704
ME
42222012-06-11 Michael Eager <eager@eagercon.com>
4223
4224 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4225 * mips-linux-tdep.h (mips_signals): New
4226
e81a37f7
TT
42272012-06-11 Tom Tromey <tromey@redhat.com>
4228
4229 * infrun.c (handle_inferior_event)
4230 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4231 breakpoint.
4232 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4233 exception logic in all cases. Update comments.
4234 (insert_longjmp_resume_breakpoint): Set the exception resume
4235 breakpoint.
4236
2e81047f
MR
42372012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4238
4239 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4240
4e32eda7
SCR
42412012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4242
4243 * valarith.c (binop_types_user_defined_p): Fix a typo.
4244
18648a37 42452012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4246 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4247
4248 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4249 * arch-utils.h: Declare.
4250 * gdbarch.sh: Add return_in_first_hidden_param_p.
4251 * gdbarch.c, gdbarch.h: Regenerated.
4252 * infcall.c (call_function_by_hand): Call
4253 gdbarch_return_in_first_hidden_param_p instead of
4254 language_pass_by_reference.
4255
4256 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4257 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4258 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4259 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4260 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4261 `cplus_return_struct_by_reference'.
4262 (tic6x_return_value): Handle language cplusplus.
4263 (tic6x_return_in_first_hidden_param_p): New.
4264 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4265
034e5797
DE
42662012-06-07 Doug Evans <dje@google.com>
4267
4268 * dwarf2read.c (dwarf2_cu): Add comment.
4269
6a00aa1e
MR
42702012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4271
4272 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4273 variable.
4274 (mips_eabi_push_dummy_call): Likewise.
4275 (mips_n32n64_push_dummy_call): Likewise.
4276 (mips_o32_push_dummy_call): Likewise.
4277 (mips_o64_push_dummy_call): Likewise.
4278
eaa05d59
MR
42792012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4280
4281 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4282
de13fcf2
MR
42832012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4284
4285 * mips-tdep.c (mips_pseudo_register_type): Use
4286 mips_float_register_p.
4287
c3a01a22
PA
42882012-06-06 Pedro Alves <palves@redhat.com>
4289
4290 * infrun.c (handle_inferior_event): Remove calls to
4291 reinit_frame_cache that follow a context_switch call.
4292
d25f45d9
PA
42932012-06-06 Pedro Alves <palves@redhat.com>
4294
4295 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4296 context_switch and remove stale comment.
4297
359f5fe6
PA
42982012-06-06 Pedro Alves <palves@redhat.com>
4299
4300 * infrun.c (struct execution_control_state): Remove
4301 `new_thread_event' field.
4302 (handle_inferior_event): Simplify new threads handling; don't
4303 resume the inferior if we find a new thread.
4304
2d4c29c5
TS
43052012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4306
4307 * NEWS: Document the deprecation of SH's 'regs' command.
4308 * inferior.h (all_registers_info): Add function declaration.
4309 * sh-tdep.c (sh_show_regs): Remove variable.
4310 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4311 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4312 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4313 (sh_show_regs_command): Remove functions.
4314 (sh_gdbarch_init): Don't set sh_show_regs.
4315 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4316 'info all-registers'.
4317 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4318 (sh64_show_regs): Remove functions.
4319 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4320
f5f1cdb6
JK
43212012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4322
4323 * configure.ac: Move development=true below AC_INIT.
4324 * configure: Regenerate.
4325
bf6309af
SS
43262012-06-05 Stan Shebs <stan@codesourcery.com>
4327
4328 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4329 gdb_stdout.
4330
45aa4659
JK
43312012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4332
4333 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4334 argument as ssize_t.
4335 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4336 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4337 * target.c (target_read_stack, target_write_memory)
4338 (target_write_raw_memory): Likewise.
4339 * target.h (target_read_stack, target_write_memory)
4340 (target_write_raw_memory): Likewise.
4341
1b162304
JK
43422012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4343
4344 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4345 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4346 * target.c (target_read_memory): Change LEN to ssize_t.
4347 * target.h (target_read_memory): Change LEN to ssize_t.
4348
8556afb4
PA
43492012-06-05 Pedro Alves <palves@redhat.com>
4350
4351 PR backtrace/13866
4352
4353 * breakpoint.c (until_break_command): Only fetch the selected
4354 frame after decode_line_1.
4355
fb139f32
PA
43562012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4357
4358 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4359 event breakpoint at _start, __start or main if a program
4360 interpreter is not found.
4361
a8e1bb34
JB
43622012-06-05 Joel Brobecker <brobecker@adacore.com>
4363
4364 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4365 Add declaration.
4366 * windows-tdep.c: #include "objfiles.h".
4367 (windows_iterate_over_objfiles_in_search_order): New function.
4368 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4369 iterate_over_objfiles_in_search_order gdbarch method to
4370 windows_iterate_over_objfiles_in_search_order.
4371 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4372
19630284
JB
43732012-06-05 Joel Brobecker <brobecker@adacore.com>
4374
4375 * gdbarch.sh: Add generation of
4376 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4377 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4378 (iterate_over_objfiles_in_search_order): New gdbarch method.
4379 * gdbarch.h, gdbarch.c: Regenerate.
4380 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4381 Add declaration.
4382 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4383 New function.
4384 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4385 out of lookup_symbol_aux_symtabs.
4386 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4387 call to lookup_symbol_aux_objfile.
4388 (struct global_sym_lookup_data): New type.
4389 (lookup_symbol_global_iterator_cb): New function.
4390 (lookup_symbol_global): Search for symbol using
4391 gdbarch_iterate_over_objfiles_in_search_order and
4392 lookup_symbol_global_iterator_cb.
4393 * findvar.c (struct minsym_lookup_data): New type.
4394 (minsym_lookup_iterator_cb): New function.
4395 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4396 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4397 and minsym_lookup_iterator_cb.
4398
67ff19f7
JB
43992012-06-05 Joel Brobecker <brobecker@adacore.com>
4400
4401 Revert the following patch:
4402 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4403 try locating the symbol in the symbol's own objfile first, before
4404 extending the search to all objfiles.
4405 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4406 out of lookup_symbol_aux_symtabs.
4407 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4408 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4409 Do not search EXCLUDE_OBJFILE.
4410 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4411 (lookup_symbol_global): Search for matches in the block's objfile
4412 first, before searching all other objfiles.
4413
ccab2054
JB
44142012-06-05 Joel Brobecker <brobecker@adacore.com>
4415
4416 * breakpoint.c (find_condition_and_thread): Stop parsing
4417 as soon as the first invalid keyword is found.
4418
e23d4a9c
JB
44192012-06-05 Joel Brobecker <brobecker@adacore.com>
4420
4421 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4422
70160166
JB
44232012-06-05 Joel Brobecker <brobecker@adacore.com>
4424
4425 * config/djgpp/djcheck.sh: Add copyright header.
4426
399501a5
JB
44272012-06-05 Joel Brobecker <brobecker@adacore.com>
4428
4429 * copyright.py (update_files, main): Fix path to update-copyright
4430 script.
4431
3770a159
JB
44322012-06-05 Joel Brobecker <brobecker@adacore.com>
4433
4434 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4435 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4436 for which a reminder to update by hand is printed.
4437
4aad0dfc
DE
44382012-06-04 Doug Evans <dje@google.com>
4439
4440 * buildsym.c (make_blockvector): Add comment.
4441
1f8cf220
PA
44422012-06-04 Pedro Alves <palves@redhat.com>
4443
4444 * arch-utils.c (default_gdb_signal_from_target): Delete.
4445 * arch-utils.h (default_gdb_signal_from_target): Delete.
4446 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4447 gdbarch_gdb_signal_from_target_p.
4448 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4449 predicate).
4450 * gdbarch.h: Regenerate.
4451 * gdbarch.c: Regenerate.
4452
86b49880
PA
44532012-06-04 Pedro Alves <palves@redhat.com>
4454
4455 * gdbarch.sh (gdb_signal_from_target): Mention that the
4456 implementation of the method must be host independent.
4457 * gdbarch.h: Regenerate.
4458
fe78531d
JK
44592012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4460
4461 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4462 parameters.
4463 (target_read_memory_bfd): New function.
4464 (symbol_file_add_from_memory): Use it.
4465
d790cf0a
DE
44662012-06-03 Doug Evans <dje@google.com>
4467
78e5175a
DE
4468 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4469 of primary symtab.
4470 (basic_lookup_transparent_type): Ditto.
4471
d790cf0a
DE
4472 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4473 (ALL_PRIMARY_SYMTABS): Use it.
4474 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4475 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4476 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4477 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4478 (basic_lookup_transparent_type): Ditto.
4479
c6e5ee5e
SDJ
44802012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4481
4482 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4483 it to optimize resolution of demangled name.
4484
a68ffae9
JK
44852012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4486
4487 * configure.ac (development): Define new variable.
4488 Call AC_CHECK_LIB for mcheck if $development.
4489 (ERROR_ON_WARNING): Enable it by default only if $development.
4490 * config.in: Regenerate.
4491 * configure: Regenerate.
4492
5299c1c4
JK
44932012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4494
4495 * target.c (target_read_memory): Make LEN argument as size_t.
4496 * target.h (target_read_memory): Likewise.
4497
44982012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4499
4500 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4501
0c56f59b
EBM
45022012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4503
4504 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4505 BookE interface for PowerPC server processors if not available
4506 in the Linux Kernel.
4507
71bdabee
KS
45082012-05-31 Keith Seitz <keiths@redhat.com>
4509
4510 * linespec.c (decode_objc): Add cleanup to free
4511 INFO.FILE_SYMTABS.
4512 (find_linespec_symbols): Add cleanup to free CLASSES.
4513 * symfile.c (find_separate_debug_file_by_debuglink): Add
4514 cleanup to free DEBUGLINK.
4515 * ui-out.c (clear_header_list): No need to check if
4516 HEADER_NEXT.COLHDR is NULL.
4517 Free HEADER_NEXT.COL_NAME.
4518
acbd605d
MGD
45192012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4520
4521 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4522 warning.
4523
65662cde
PA
45242012-05-30 Jeff Kenton <jkenton@tilera.com>
4525
4526 * configure.host (gdb_host_cpu): Handle tilegx*.
4527 (gdb_host): Handle tilegx-*-linux*.
4528 * tilegx-linux-nat.c: New file.
4529 * config/tilegx/linux.mh: New file.
4530
ade64f0e
PA
45312012-05-30 Jeff Kenton <jkenton@tilera.com>
4532
4533 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4534 tilegx-linux-tdep.o.
4535 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4536 tilegx-linux-tdep.c.
4537 * configure.tgt: Handle tilegx-*-linux*.
4538 * tilegx-tdep.h: New file.
4539 * tilegx-tdep.c: New file.
4540 * tilegx-linux-tdep.c: New file.
4541 * regformats/reg-tilegx.dat: New file.
4542
bb08bdbd
EBM
45432012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4544
4545 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4546 accounting of hw watchpoints on ppc.
4547
ebd86fb5
TJB
45482012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4549
4550 * source.c (openp): Expand tilde in path entries.
4551
0a0edcd5
DE
45522012-05-29 Doug Evans <dje@google.com>
4553
98cc87bd
DE
4554 * buildsym.c (block_compar): Fix comment.
4555 (end_symtab): Fix and clarify some comments.
4556
0a0edcd5
DE
4557 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4558 cleanup_undefined_types.
4559 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4560 All callers updated.
4561
6f0c7050
TT
45622012-05-29 Tom Tromey <tromey@redhat.com>
4563
4564 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4565 fails.
4566 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4567 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4568 fails.
4569 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4570 fails.
4571
ec95993c
TG
45722012-05-29 Tristan Gingold <gingold@adacore.com>
4573
4574 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4575 (struct darwin_info): ... New struct.
4576 (solib_darwin_pspace_data): New variable.
4577 (darwin_pspace_data_cleanup): New function.
4578 (get_darwin_info): Likewise.
4579 (darwin_dyld_version_ok, darwin_load_image_infos)
4580 (darwin_solib_get_all_image_info_addr_at_init)
4581 (darwin_solib_read_all_image_info_addr): Add info argument.
4582 Adjust code.
4583 (darwin_current_sos): Use per pspace structure.
4584 (darwin_solib_create_inferior_hook): Likewise.
4585 (darwin_clear_solib): Likewise.
4586 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4587
ae25568b
PA
45882012-05-28 Pedro Alves <palves@redhat.com>
4589
4590 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4591 block that uses them. Clear ecss before handling each event.
4592
0c5bf5a9
JK
45932012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4594
4595 * solib-svr4.c (svr4_current_sos): New comment on
4596 svr4_current_sos_via_xfer_libraries fall back.
4597
bfb05775
JK
45982012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4599
4600 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4601 it as a fallback for TYPE_IS_OPAQUE.
4602 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4603 symbols for lookup_symbol.
4604
685b1105
JK
46052012-05-24 John Steele Scott <toojays@toojays.net>
4606
4607 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4608 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4609 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4610 (check_producer): ... this new function, which also checks for ICC
4611 and caches the result.
4612 (producer_is_icc): New function.
4613 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4614 producer was ICC.
4615
22203bbf
PA
46162012-05-24 Pedro Alves <palves@redhat.com>
4617
4618 PR gdb/7205
4619
4620 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4621 (default_gdb_signal_to_target): ... this. Add comment.
4622 (default_gdb_signal_from_host): Rename to ...
4623 (default_gdb_signal_from_target): ... this. Add comment.
4624 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4625 (default_gdb_signal_to_target): ... this.
4626 (default_gdb_signal_from_host): Rename to ...
4627 (default_gdb_signal_from_target): ... this.
4628 * corelow.c (core_open): Adjust to naming change. Replace comment.
4629 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4630 (gdb_signal_from_target): ... this. Adjust to
4631 default_gdb_signal_from_host naming change. Extend comment.
4632 (gdb_signal_to_host): Rename to ...
4633 (gdb_signal_to_target): ... this. Adjust to
4634 default_gdb_signal_to_host naming change.
4635 * gdbarch.h, gdbarch.c: Renegerate.
4636
a493e3e2
PA
46372012-05-24 Pedro Alves <palves@redhat.com>
4638
4639 PR gdb/7205
4640
f782ad9b 4641 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4642
2ea28649
PA
46432012-05-24 Pedro Alves <palves@redhat.com>
4644
4645 PR gdb/7205
4646
4647 Replace target_signal with gdb_signal throughout.
4648
b09846a9
PA
46492012-05-24 Pedro Alves <palves@redhat.com>
4650
4651 PR tui/14159
4652
4653 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4654 string, instead of reusing the va_list argument.
4655
e77c107e
TT
46562012-05-24 Tom Tromey <tromey@redhat.com>
4657
4658 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4659 Remove.
4660
9fccedf7
DE
46612012-05-23 Doug Evans <dje@google.com>
4662
d50bd42b
DE
4663 * symtab.c (search_symbols): Formatting fixes.
4664 (print_symbol_info): Formatting fixes.
4665
9fccedf7
DE
4666 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4667 int64_t change to leb128 API.
4668 (read_encoded_value, decode_frame_entry_1): Ditto.
4669 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4670 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4671 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4672 (execute_stack_op): Ditto.
4673 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4674 (safe_read_uleb128, safe_read_sleb128): Ditto.
4675 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4676 (dwarf2_compile_expr_to_ax): Ditto.
4677 (locexpr_describe_location_piece): Ditto.
4678 (disassemble_dwarf_expression): Ditto.
4679 (locexpr_describe_location_1): Ditto.
4680
f3e0e960
SS
46812012-05-23 Stan Shebs <stan@codesourcery.com>
4682 Kwok Cheung Yeung <kcy@codesourcery.com>
4683
4684 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4685 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4686 (mi-cmd-info.o): New rule.
4687 * osdata.h (info_osdata_command): New declaration.
4688 * osdata.c (info_osdata_command): Change to non-static.
4689 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4690 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4691 * mi/mi-cmd-info.c: New file.
4692
c51fe631
DE
46932012-05-23 Doug Evans <dje@google.com>
4694
71cddcc1
DE
4695 * symtab.c (search_symbols): Pass NULL for file_matcher to
4696 expand_symtabs_matching if there are no files to match.
4697
c51fe631
DE
4698 * gdbtypes.c (lookup_typename): Simplify.
4699
a79378d4
PA
47002012-05-23 Pedro Alves <palves@redhat.com>
4701
4702 * arch-utils.h (default_target_signal_to_host): Delete.
4703 * arch-utils.c (default_target_signal_to_host): Delete.
4704 * gdbarch.sh (target_signal_to_host): Remove.
4705 * gdbarch.h, gdbarch.c: Regenerate.
4706
f664829e
DE
47072012-05-22 Doug Evans <dje@google.com>
4708
4709 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4710 "const gdb_byte *".
4711 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4712 (execute_cfa_program): Update to match API of leb128 functions.
4713 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4714 "const gdb_byte *".
4715 (read_unsigned_leb128, read_signed_leb128): Delete.
4716 (read_initial_length): Change type of buf argument to
4717 "const gdb_byte *".
4718 (read_encoded_value): Update to match API of leb128 functions.
4719 (decode_frame_entry): Change result to "const gdb_byte *", and
4720 similarly for "start" parameter.
4721 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4722 (dwarf2_build_frame_info): Change local frame_ptr to
4723 "const gdb_byte *".
4724 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4725 read_uleb128, read_sleb128. All callers updated.
4726 (safe_skip_leb128): New function.
4727 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4728 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4729 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4730 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4731 read_uleb128, read_sleb128.
4732 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4733 (execute_stack_op): Update to match API of leb128 functions.
4734 * dwarf2expr.h: #include "leb128.h".
4735 (read_uleb128, read_sleb128): Delete.
4736 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4737 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4738 * dwarf2loc.c (debug_loc_kind): New enum.
4739 (decode_debug_loc_addresses): New function.
4740 (decode_debug_loc_dwo_addresses): New function.
4741 (dwarf2_find_location_expression): Rewrite.
4742 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4743 (locexpr_describe_location_piece): Ditto.
4744 (disassemble_dwarf_expression): Ditto.
4745 (locexpr_describe_location_1): Ditto.
4746 (loclist_describe_location): Rewrite.
4747 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4748 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4749 (dwarf2_section_buffer_overflow_complaint): Renamed from
4750 dwarf2_macros_too_long_complaint. All callers updated.
4751 (skip_leb128): Delete.
4752 (init_cu_die_reader): Initialize reader->buffer_end.
4753 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4754 (skip_form_bytes): New arg buffer_end. All callers updated.
4755 Replace call to skip_leb128 with gdb_skip_leb128.
4756 (skip_unknown_opcode): New arg mac_end. All callers updated.
4757 (fill_in_loclist_baton): Initialize baton->from_dwo.
4758
837a1b32
MR
47592012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4760
4761 * mips-linux-nat.c (mips_linux_read_description): Use a more
4762 verbose error message.
4763
d0e64392
MR
47642012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4765
4766 * NEWS: Add MIPS/Linux DSP support.
4767 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4768 (SIGCONTEXT_DSPCTL): New macro.
4769 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4770 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4771 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4772 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4773 (N64_SIGCONTEXT_HI3): Likewise.
4774 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4775 (N64_SIGCONTEXT_LO3): Likewise.
4776 (N64_SIGCONTEXT_DSPCTL): Likewise.
4777 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4778 (mips_linux_o32_sigframe_init): Handle DSP registers.
4779 (mips_linux_n32n64_sigframe_init): Likewise.
4780
8bea7ed1
PM
47812012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4782
4783 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4784 call to abort.
4785
dab06dbe
PA
47862012-05-22 Pedro Alves <palves@redhat.com>
4787
4788 * target.h (store_waitstatus): Move declaration ...
4789 * inf-child.h (store_waitstatus): ... here.
4790 * target.c: Move inclusion of gdb_wait.h, and ...
4791 (store_waitstatus): ... this ...
4792 * inf-child.c: ... here.
4793 * linux-nat.c: Include inf-child.h.
4794 * rs6000-nat.c: Include inf-child.h.
4795 * spu-linux-nat.c: Include inf-child.h.
4796
43011e52
PM
47972012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4798
4799 * tracepoint.c (start_tracing): Add missing i18n markup.
4800 (stop_tracing, set_trace_user): Ditto.
4801 (set_trace_notes, set_trace_stop_notes): Ditto.
4802
b1af9e97
TT
48032012-05-21 Tom Tromey <tromey@redhat.com>
4804
4805 PR c++/7173:
4806 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4807 types.
4808 * value.h (value_cast_pointers): Update.
4809 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4810 (value_cast): Update.
4811 (update_search_result): New function.
4812 (do_search_struct_field): New, from search_struct_field. Check
4813 for ambiguous results.
4814 (search_struct_field): Rewrite.
4815 * infcall.c (value_arg_coerce): Update.
4816 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4817 value_cast_pointers.
4818 * ada-lang.c (ada_convert_actual): Update.
4819
e9e5e6b3
TT
48202012-05-21 Tom Tromey <tromey@redhat.com>
4821
4822 * macroexp.c (macro_stringify): Terminate the string.
4823
1564a261
JK
48242012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4825
4826 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4827 Describe it.
4828 * auto-load.c (auto_load_expand_dir_vars): New function.
4829 (auto_load_safe_path_vec_update): Use it, remove the
4830 substitute_path_component call thanks to it.
4831 (auto_load_objfile_script): Remove the debug_file_directory processing.
4832 Use auto_load_expand_dir_vars, remove the substitute_path_component
4833 call thanks to it.
4834 * configure: Regenerate.
4835 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4836 path. Escape $ also for $debugdir.
4837 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4838 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4839
a3ec0bb1
DE
48402012-05-20 Doug Evans <dje@google.com>
4841
4842 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4843 before use. Check for symtab->includes == NULL before scanning it.
4844
d467df4e
MR
48452012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4846
4847 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4848
4cc0665f
MR
48492012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4850
4851 * NEWS: Add microMIPS support and "set mips compression",
4852 "show mips compression" commands.
4853 * mips-tdep.h (mips_isa): New enum.
4854 (gdbarch_tdep): Add mips_isa.
4855 (mips_pc_is_mips16): Update prototype.
4856 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4857 * mips-tdep.c (mips_compression_mips16): New variable.
4858 (mips_compression_micromips): Likewise.
4859 (mips_compression_strings): Likewise.
4860 (mips_compression_string): Likewise.
4861 (is_mips16_isa, is_micromips_isa): New functions.
4862 (is_mips16_addr): Rename to...
4863 (is_compact_addr): ... this.
4864 (unmake_mips16_addr): Likewise to...
4865 (unmake_compact_addr): ... this.
4866 (make_mips16_addr): Likewise to...
4867 (make_compact_addr): ... this.
4868 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4869 functions.
4870 (mips_elf_make_msymbol_special): Handle microMIPS code.
4871 (msymbol_is_special): Rename to...
4872 (msymbol_is_mips16): ... this.
4873 (mips_make_symbol_special, mips_pc_is_mips16): Update
4874 accordingly.
4875 (msymbol_is_mips, msymbol_is_micromips): New functions.
4876 (mips16_to_32_reg): Rename to...
4877 (mips_reg3_to_reg): ... this.
4878 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4879 (mips_pc_isa): Likewise.
4880 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4881 code.
4882 (mips_fetch_instruction): Pass return status instead of printing
4883 an error message if requested. Handle microMIPS code. Bail out
4884 on an invalid ISA.
4885 (micromips_op): New macro.
4886 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4887 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4888 (b6s4_op, b7s3_reg): Likewise.
4889 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4890 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4891 (mips_insn_size): New function.
4892 (mips32_next_pc): Update mips_fetch_instruction call.
4893 (micromips_relative_offset7): New function.
4894 (micromips_relative_offset10): Likewise.
4895 (micromips_relative_offset16): Likewise.
4896 (micromips_pc_insn_size): Likewise.
4897 (micromips_bc1_pc): Likewise.
4898 (micromips_next_pc): Likewise.
4899 (unpack_mips16): Update mips_fetch_instruction call.
4900 (extended_mips16_next_pc): Update according to change to
4901 mips16_to_32_reg.
4902 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4903 code.
4904 (mips16_scan_prologue): Update mips_fetch_instruction call.
4905 Update according to change to mips16_to_32_reg.
4906 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4907 (mips_insn16_frame_base_sniffer): Likewise.
4908 (micromips_decode_imm9): New function.
4909 (micromips_scan_prologue): Likewise.
4910 (mips_micro_frame_cache): Likewise.
4911 (mips_micro_frame_this_id): Likewise.
4912 (mips_micro_frame_prev_register): Likewise.
4913 (mips_micro_frame_sniffer): Likewise.
4914 (mips_micro_frame_unwind): New variable.
4915 (mips_micro_frame_base_address): New function.
4916 (mips_micro_frame_base): New variable.
4917 (mips_micro_frame_base_sniffer): New function.
4918 (mips32_scan_prologue): Update mips_fetch_instruction call.
4919 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4920 rather than for MIPS16.
4921 (mips_insn32_frame_base_sniffer): Likewise.
4922 (mips_addr_bits_remove): Handle microMIPS code.
4923 (deal_with_atomic_sequence): Rename to...
4924 (mips_deal_with_atomic_sequence): ... this. Update the type
4925 of the variable used to hold an instruction. Remove the ISA bit
4926 check. Update mips_fetch_instruction call.
4927 (micromips_deal_with_atomic_sequence): New function.
4928 (deal_with_atomic_sequence): Likewise.
4929 (mips_about_to_return): Handle microMIPS code. Update
4930 mips_fetch_instruction call.
4931 (heuristic_proc_start): Check for the standard MIPS ISA rather
4932 than for MIPS16. Update mips_pc_is_mips16 and
4933 mips_fetch_instruction calls. Handle microMIPS code.
4934 (mips_push_dummy_code): Handle microMIPS code.
4935 (mips_eabi_push_dummy_call): Likewise.
4936 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4937 (mips_o64_push_dummy_call): Handle microMIPS code.
4938 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4939 (is_delayed): Remove function.
4940 (mips_single_step_through_delay): Replace the call to is_delayed
4941 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4942 Handle microMIPS code.
4943 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4944 microMIPS code.
4945 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4946 call.
4947 (micromips_in_function_epilogue_p): New function.
4948 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4949 call.
4950 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4951 Handle microMIPS.
4952 (gdb_print_insn_mips): Likewise.
4953 (mips_breakpoint_from_pc): Likewise.
4954 (mips_remote_breakpoint_from_pc): New function.
4955 (mips32_instruction_has_delay_slot): Simplify making use of the
4956 updated mips_fetch_instruction interface.
4957 (micromips_instruction_has_delay_slot): New function.
4958 (mips16_instruction_has_delay_slot): Simplify making use of the
4959 updated mips_fetch_instruction interface.
4960 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4961 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4962 calls. Handle microMIPS code.
4963 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4964 (mips_skip_trampoline_code): Handle microMIPS code.
4965 (global_mips_compression): New function.
4966 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4967 file flags. Register the microMIPS remote breakpoint handler
4968 and heuristic frame unwinder.
4969 (show_mips_compression): New function.
4970 (_initialize_mips_tdep): Add the "set mips compression" and
4971 "show mips compression" commands.
4972
22e048c9
SDJ
49732012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4974
4975 * ada-lang.c:
4976 * ada-tasks.c:
4977 * ada-varobj.c:
4978 * amd64-darwin-tdep.c:
4979 * arm-symbian-tdep.c:
4980 * arm-tdep.c:
4981 * avr-tdep.c:
4982 * ax-gdb.c:
4983 * bfin-linux-tdep.c:
4984 * breakpoint.c:
4985 * c-valprint.c:
4986 * cli/cli-cmds.c:
4987 * coffread.c:
4988 * cp-support.c:
4989 * cris-tdep.c:
4990 * dwarf2-frame-tailcall.c:
4991 * dwarf2-frame.c:
4992 * dwarf2expr.c:
4993 * dwarf2loc.c:
4994 * dwarf2read.c:
4995 * elfread.c:
4996 * eval.c:
4997 * expprint.c:
4998 * f-valprint.c:
4999 * frv-tdep.c:
5000 * h8300-tdep.c:
5001 * hppa-hpux-tdep.c:
5002 * hppa-tdep.c:
5003 * hppanbsd-tdep.c:
5004 * i386-nto-tdep.c:
5005 * i386-tdep.c:
5006 * i387-tdep.c:
5007 * ia64-tdep.c:
5008 * jit.c:
5009 * linespec.c:
5010 * linux-tdep.c:
5011 * lm32-tdep.c:
5012 * m2-valprint.c:
5013 * m32c-tdep.c:
5014 * m32r-rom.c:
5015 * m32r-tdep.c:
5016 * m68k-tdep.c:
5017 * m68klinux-tdep.c:
5018 * mi/mi-main.c:
5019 * microblaze-tdep.c:
5020 * mips-linux-tdep.c:
5021 * mips-tdep.c:
5022 * mn10300-tdep.c:
5023 * p-valprint.c:
5024 * parse.c:
5025 * ppc-linux-tdep.c:
5026 * ppc-sysv-tdep.c:
5027 * printcmd.c:
5028 * python/py-finishbreakpoint.c:
5029 * python/py-inferior.c:
5030 * python/py-infthread.c:
5031 * python/py-type.c:
5032 * python/python.c:
5033 * remote-fileio.c:
5034 * remote-m32r-sdi.c:
5035 * remote-mips.c:
5036 * reverse.c:
5037 * rl78-tdep.c:
5038 * rs6000-aix-tdep.c:
5039 * rs6000-tdep.c:
5040 * s390-tdep.c:
5041 * score-tdep.c:
5042 * sh64-tdep.c:
5043 * skip.c:
5044 * solib-darwin.c:
5045 * solib-dsbt.c:
5046 * solib-frv.c:
5047 * sparc-tdep.c:
5048 * spu-multiarch.c:
5049 * spu-tdep.c:
5050 * stack.c:
5051 * symfile.c:
5052 * symtab.c:
5053 * tic6x-tdep.c:
5054 * tracepoint.c:
5055 * v850-tdep.c:
5056 * valarith.c:
5057 * valprint.c:
5058 * value.c:
5059 * xcoffread.c:
5060 * xtensa-tdep.c:
5061 * ada-lang.c:
5062 * ada-tasks.c:
5063 * ada-varobj.c:
5064 * amd64-darwin-tdep.c:
5065 * arm-symbian-tdep.c:
5066 * arm-tdep.c: Delete unused variables.
5067
aff139ff
JK
50682012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5069
5070 Rename $ddir to $datadir.
5071 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5072 * auto-load.c (auto_load_safe_path_vec_update)
5073 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5074 * configure: Regenerate.
5075 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5076 Likewise. Remove the 'use $ddir' help string.
5077
f7bfa992
JK
50782012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5079
5080 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5081 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5082
9cb709b6
TT
50832012-05-18 Tom Tromey <tromey@redhat.com>
5084
5085 PR exp/13907:
5086 * valprint.h (struct value_print_options) <symbol_print>: New
5087 field.
5088 * valprint.c (user_print_options): Add default for symbol_print.
5089 (show_symbol_print): New function.
5090 (generic_val_print): Respect symbol_print.
5091 (_initialize_valprint): Add "print symbol" setting.
5092 * f-valprint.c (f_val_print): Respect symbol_print.
5093 * c-valprint.c (c_val_print): Respect symbol_print.
5094 * NEWS: Update.
5095 * printcmd.c (print_address_symbolic): Return int. Ignore some
5096 zero-size symbols.
5097 (print_address_demangle): Return int.
5098 * defs.h: (print_address_symbolic): Return int.
5099 * value.h (print_address_demangle): Return int.
5100
b012acdd
TT
51012012-05-18 Tom Tromey <tromey@redhat.com>
5102
5103 * valprint.c (val_print_string): Don't print leading space.
5104 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5105 print space before string or vtbl.
5106 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5107 before string.
5108 * jv-valprint.c (java_value_print): Print space before string.
5109 * go-valprint.c (print_go_string): Print space before string.
5110 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5111 space before string.
5112 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5113 space before string or vtbl.
5114 * auxv.c (fprint_target_auxv): Print space after address.
5115
1d51a733
TT
51162012-05-18 Tom Tromey <tromey@redhat.com>
5117
5118 * printcmd.c (print_address_demangle): Remove special case for 0.
5119
edf0c1b7
TT
51202012-05-18 Tom Tromey <tromey@redhat.com>
5121
5122 * printcmd.c (print_address_demangle): Add 'opts' argument.
5123 * p-valprint.c (pascal_val_print): Update.
5124 * jv-valprint.c (java_val_print): Update.
5125 * value.h: Update.
5126 * valprint.c (generic_val_print): Update.
5127 (print_function_pointer_address): Add 'options' argument. Remove
5128 'addressprint' argument. Update.
5129 * m2-valprint.c (print_unpacked_pointer): Update.
5130 * gnu-v3-abi.c (print_one_vtable): Update.
5131 (gnuv3_print_method_ptr): Update.
5132 * f-valprint.c (f_val_print): Update.
5133 * cp-valprint.c (cp_print_value_fields): Update.
5134 * valprint.h (print_function_pointer_address): Update.
5135 * c-valprint.c (c_val_print): Update.
5136
9703b513
TT
51372012-05-18 Tom Tromey <tromey@redhat.com>
5138
5139 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5140 directly corresponding to the found psymtab.
5141 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5142 (dw2_find_pc_sect_symtab): Use it.
5143 * block.h (blockvector_contains_pc): Declare.
5144 * block.c (find_block_in_blockvector): New function.
5145 (blockvector_for_pc_sect): Use it.
5146 (blockvector_contains_pc): New function.
5147
5a439849
MR
51482012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5149
5150 * mips-tdep.h (mips_write_pc): New prototype.
5151 * mips-tdep.c (mips_write_pc): Make external, add description.
5152 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5153 add description.
5154
8376de04
MR
51552012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5156
5157 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5158 mips_regnum->pc.
5159 (mips_unwind_pc, mips_write_pc): Likewise.
5160 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5161 gdbarch_read_pc.
5162
d3581e61
JB
51632012-05-17 Joel Brobecker <brobecker@adacore.com>
5164
5165 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5166 proc_warn, proc_error, proc_get_status, proc_flags,
5167 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5168 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5169 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5170 proc_stop_process, proc_wait_for_stop, proc_run_process,
5171 proc_set_traced_signals, proc_set_traced_faults,
5172 proc_set_traced_sysentry, proc_set_traced_sysexit,
5173 proc_set_held_signals, proc_get_held_signals,
5174 proc_get_traced_signals, proc_get_traced_faults,
5175 proc_get_traced_sysentry, proc_get_traced_sysexit,
5176 proc_clear_current_fault, proc_set_current_signal,
5177 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5178 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5179 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5180 proc_get_current_thread, proc_get_current_thread,
5181 proc_get_current_thread, proc_update_threads,
5182 proc_update_threads, proc_update_threads, proc_update_threads,
5183 proc_iterate_over_threads, procfs_find_new_threads,
5184 procfs_pid_to_str): Make static. Remove advance declaration.
5185 (proc_cursig): Make static. Conditionalized defintion on
5186 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5187 (proc_syscall, proc_set_kill_on_last_close,
5188 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5189 proc_get_pending_signals, proc_get_signal_actions,
5190 proc_trace_signal, proc_ignore_signal): Delete.
5191
81b9b86e
SDJ
51922012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5193
5194 * coffread.c (cs_section_address): Passing proper argument for
5195 `bfd_get_section_vma'.
5196 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5197 `bfd_get_section_flags'.
5198 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5199 `bfd_get_section_vma'.
5200
abc9d0dc
TT
52012012-05-16 Tom Tromey <tromey@redhat.com>
5202
5203 PR macros/13205:
5204 * macrotab.h: (macro_define_special): Declare.
5205 (enum macro_special_kind): New.
5206 (struct macro_definition) <argc, replacement>: Update comments.
5207 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5208 (macro_define_object_internal): New function.
5209 (macro_define_object): Use it.
5210 (macro_define_special): New function.
5211 (fixup_definition): New function.
5212 (macro_lookup_definition, foreach_macro_in_scope)
5213 (foreach_macro): Use fixup_definition.
5214 * macroexp.h (macro_stringify): Declare.
5215 * macroexp.c (free_buffer_return_text): New function.
5216 (stringify): Constify "arg".
5217 (macro_stringify): New function.
5218 * dwarf2read.c (macro_start_file): Call macro_define_special.
5219
6a3a010b 52202012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 5221 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
5222
5223 * breakpoint.h (bp_location): Add related_address member.
5224 * inferior.h (get_return_value): Take a pointer to struct value
5225 instead of struct type for the function requested.
5226 * value.h (using_struct_return): Likewise.
5227 * gdbarch.sh (return_value): Take a pointer to struct value
5228 instead of struct type for the function requested.
5229 * breakpoint.c (set_breakpoint_location_function): Initialize
5230 related_address for bp_gnu_ifunc_resolver breakpoints.
5231 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5232 requested function's address to gdbarch_return_value.
5233 * eval.c (evaluate_subexp_standard): Pass the requested
5234 function's address to using_struct_return.
5235 * infcall.c (call_function_by_hand): Pass the requested
5236 function's address to using_struct_return and
5237 gdbarch_return_value.
5238 * infcmd.c (get_return_value): Take a pointer to struct value
5239 instead of struct type for the function requested.
5240 (print_return_value): Update accordingly.
5241 (finish_command_continuation): Likewise.
5242 * stack.c (return_command): Pass the requested function's
5243 address to using_struct_return and gdbarch_return_value.
5244 * value.c (using_struct_return): Take a pointer to struct value
5245 instead of struct type for the function requested. Pass the
5246 requested function's address to gdbarch_return_value.
5247 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5248 New function_value member, replacing function_type.
5249 (bpfinishpy_dealloc): Update accordingly.
5250 (bpfinishpy_pre_stop_hook): Likewise.
5251 (bpfinishpy_init): Likewise. Record the requested function's
5252 address.
5253 * mips-tdep.c (mips_fval_reg): New enum.
5254 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5255 words put in GP registers.
5256 (mips_o64_push_dummy_call): Update a comment.
5257 (mips_o32_return_value): Take a pointer to struct value instead
5258 of struct type for the function requested and use it to check if
5259 using the MIPS16 calling convention. Return the designated
5260 general purpose registers for floating-point values returned in
5261 MIPS16 mode.
5262 (mips_o64_return_value): Likewise.
5263 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5264 (ppc_sysv_abi_broken_return_value): Likewise.
5265 (ppc64_sysv_abi_return_value): Likewise.
5266 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5267 value instead of struct type for the function requested.
5268 * amd64-tdep.c (amd64_return_value): Likewise.
5269 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5270 * arm-tdep.c (arm_return_value): Likewise.
5271 * avr-tdep.c (avr_return_value): Likewise.
5272 * bfin-tdep.c (bfin_return_value): Likewise.
5273 * cris-tdep.c (cris_return_value): Likewise.
5274 * frv-tdep.c (frv_return_value): Likewise.
5275 * h8300-tdep.c (h8300_return_value): Likewise.
5276 (h8300h_return_value): Likewise.
5277 * hppa-tdep.c (hppa32_return_value): Likewise.
5278 (hppa64_return_value): Likewise.
5279 * i386-tdep.c (i386_return_value): Likewise.
5280 * ia64-tdep.c (ia64_return_value): Likewise.
5281 * iq2000-tdep.c (iq2000_return_value): Likewise.
5282 * lm32-tdep.c (lm32_return_value): Likewise.
5283 * m32c-tdep.c (m32c_return_value): Likewise.
5284 * m32r-tdep.c (m32r_return_value): Likewise.
5285 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5286 * m68k-tdep.c (m68k_return_value): Likewise.
5287 (m68k_svr4_return_value): Likewise.
5288 * m88k-tdep.c (m88k_return_value): Likewise.
5289 * mep-tdep.c (mep_return_value): Likewise.
5290 * microblaze-tdep.c (microblaze_return_value): Likewise.
5291 * mn10300-tdep.c (mn10300_return_value): Likewise.
5292 * moxie-tdep.c (moxie_return_value): Likewise.
5293 * mt-tdep.c (mt_return_value): Likewise.
5294 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5295 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5296 (ppc_sysv_abi_broken_return_value): Likewise.
5297 (ppc64_sysv_abi_return_value): Likewise.
5298 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5299 * rl78-tdep.c (rl78_return_value): Likewise.
5300 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5301 * rx-tdep.c (rx_return_value): Likewise.
5302 * s390-tdep.c (s390_return_value): Likewise.
5303 * score-tdep.c (score_return_value): Likewise.
5304 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5305 (sh_return_value_fpu): Likewise.
5306 * sh64-tdep.c (sh64_return_value): Likewise.
5307 * sparc-tdep.c (sparc32_return_value): Likewise.
5308 * sparc64-tdep.c (sparc64_return_value): Likewise.
5309 * spu-tdep.c (spu_return_value): Likewise.
5310 * tic6x-tdep.c (tic6x_return_value): Likewise.
5311 * v850-tdep.c (v850_return_value): Likewise.
5312 * vax-tdep.c (vax_return_value): Likewise.
5313 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5314 * xtensa-tdep.c (xtensa_return_value): Likewise.
5315 * gdbarch.c: Regenerate.
5316 * gdbarch.h: Regenerate.
5317
29ca12b3
TT
53182012-05-15 Tom Tromey <tromey@redhat.com>
5319
5320 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5321
588ae58c
JB
53222012-05-15 Joel Brobecker <brobecker@adacore.com>
5323
5324 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5325 of command in two error message.
5326
855a6e68
JB
53272012-05-15 Joel Brobecker <brobecker@adacore.com>
5328
5329 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5330
d634f2de
JB
53312012-05-15 Joel Brobecker <brobecker@adacore.com>
5332
5333 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5334
9cc815f5
JK
53352012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5336
5337 * NEWS (show auto-load scripts-directory): Add forgotten command.
5338
6a609e58
JK
53392012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5340
5341 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5342 parameters.
5343
ac1438b5
L
53442012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5345
5346 * amd64-tdep.c: Include features/i386/x32.c and
5347 features/i386/x32-avx.c.
5348 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5349 initialize_tdesc_x32_avx.
5350
e7e0cddf
SS
53512012-05-14 Stan Shebs <stan@codesourcery.com>
5352
5353 Add dynamic printf.
5354 * breakpoint.h (enum bptype): New type bp_dprintf.
5355 (struct breakpoint): New field extra_string.
5356 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5357 (create_breakpoint): Add extra_string arg.
5358 * breakpoint.c (dprintf_breakpoint_ops): New.
5359 (is_breakpoint): Add bp_dprintf.
5360 (bpstat_what): Add dprintf case.
5361 (bptype_string): Ditto.
5362 (print_one_breakpoint_location): Ditto.
5363 (init_bp_location): Ditto.
5364 (bkpt_print_mention): Ditto.
5365 (dprintf_style_enums): New array.
5366 (dprintf_style): New global.
5367 (dprintf_function): New global.
5368 (dprintf_channel): New global.
5369 (update_dprintf_command_list): New function.
5370 (update_dprintf_commands): New function.
5371 (init_breakpoint_sal): Add extra_string argument, handle it.
5372 (create_breakpoint_sal): Add extra_string argument.
5373 (create_breakpoints_sal): Add extra_string argument, update callers.
5374 (find_condition_and_thread): Add extra argument.
5375 (create_breakpoint): Add extra_string argument, record it.
5376 (dprintf_command): New function.
5377 (break_command_1): Add arg to create_breakpoint call.
5378 (handle_gnu_v3_exceptions): Ditto.
5379 (trace_command): Ditto.
5380 (ftrace_command): Ditto.
5381 (strace_command): Ditto.
5382 (bkpt_print_mention): Add dprintf case.
5383 (create_breakpoint_sal_default): Add extra_string argument.
5384 (_initialize_breakpoint): Add new commands.
5385 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5386 * python/py-breakpoint.c (bppy_init): Ditto.
5387 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5388
8ae38c14
MR
53892012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5390
5391 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5392
9f676e66
SCR
53932012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5394
5395 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5396 unsigned long long.
5397
7efc75aa
SCR
53982012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5399
5400 Add a new function gdb.find_pc_line to the Python API.
5401 * NEWS (Python Scripting): Add entry about the new function.
5402 * python/python.c (gdbpy_find_pc_line): New function which
5403 implements gdb.find_pc_line.
5404 (GdbMethods): Add entry for the new function.
5405
70af3797
PA
54062012-05-12 Pedro Alves <palves@redhat.com>
5407
5408 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5409 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5410
06da564e
EZ
54112012-05-12 Eli Zaretskii <eliz@gnu.org>
5412
5413 * inferior.c: Include completer.h
5414 (initialize_inferiors): Set completer of add-inferior to
5415 filename_completer.
5416
0288cee2
L
54172012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5418
5419 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5420 gdbarch_ptr_bit for x32 core dump.
5421
f6537a2c
L
54222012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5423
5424 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5425 and features/i386/x32-avx-linux.c.
5426
85d4a676
SS
54272012-05-11 Stan Shebs <stan@codesourcery.com>
5428 Kwok Cheung Yeung <kcy@codesourcery.com>
5429
5430 * NEWS: Describe new info os commands.
5431 * common/linux-osdata.c (PID_T, TIME_T): Define.
5432 (MAX_PID_T_STRLEN): New.
5433 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5434 MAX_PID_T_STRLEN.
5435 (command_from_pid): Add comment. Change to use PID_T.
5436 (commandline_from_pid): Change to use PID_T.
5437 (user_from_pid): Add comment.
5438 (get_process_owner): Add comment. Change to use PID_T and
5439 MAX_PID_T_STRLEN.
5440 (get_number_of_cpu_cores): Add comment.
5441 (get_cores_used_by_process): Add comment. Change to use PID_T and
5442 MAX_PID_T_STRLEN.
5443 (linux_xfer_osdata_processes): Change to use PID_T and
5444 MAX_PID_T_STRLEN.
5445 (compare_processes): New function.
5446 (linux_xfer_osdata_processgroups): New function.
5447 (linux_xfer_osdata_threads): Change to use PID_T.
5448 (linux_xfer_osdata_fds): New function.
5449 (format_socket_state, print_sockets): New functions.
5450 (union socket_addr): New union.
5451 (linux_xfer_osdata_isockets): New function.
5452 (time_from_time_t, group_from_gid): New functions.
5453 (linux_xfer_osdata_shm): New function.
5454 (linux_xfer_osdata_sem): New function.
5455 (linux_xfer_osdata_msg): New function.
5456 (linux_xfer_osdata_modules): New function.
5457 (osdata_table): Add new entries.
5458 * common/buffer.c (buffer_xml_printf): Add support for long and
5459 long long format specifiers.
5460
f24afd6d
L
54612012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5462
5463 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5464 (tdesc_x32_avx_linux): Likewise.
5465
7349ff92
JK
54662012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5467
5468 Implement multi-component --with-auto-load-dir.
5469 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5470 entries.
5471 (--with-auto-load-safe-path): Update the default value description.
5472 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5473 New.
5474 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5475 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5476 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5477 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5478 "set auto-load scripts-directory".
5479 * config.in: Regenerate.
5480 * configure: Regenerate.
5481 * configure.ac (--with-auto-load-dir): New configure option.
5482 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5483
6dea1fbd
JK
54842012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5485
5486 Provide $ddir substitution for --with-auto-load-safe-path.
5487 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5488 entries.
5489 * auto-load.c: Include observer.h.
5490 (auto_load_safe_path_vec_update): Call substitute_path_component for
5491 each component. New variable ddir_subst.
5492 (auto_load_gdb_datadir_changed): New function.
5493 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5494 AUTO_LOAD_SAFE_PATH. New comment.
5495 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5496 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5497 * config.in: Regenerate.
5498 * configure: Regenerate.
5499 * configure.ac (--auto-load-safe-path): Rename
5500 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5501 GDB_DATADIR/auto-load.
5502 * defs.h (substitute_path_component): New declaration.
5503 * top.c: Include observer.h.
5504 (set_gdb_datadir): New function.
5505 (init_main): Install it for "set data-directory".
5506 * utils.c (substitute_path_component): New function.
5507
b09aca3a
JK
55082012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5509
5510 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5511 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5512 DEBUG_FILE_DIRECTORY. Handle multiple components of
5513 DEBUG_FILE_DIRECTORY.
5514
95554aad
TT
55152012-05-10 Tom Tromey <tromey@redhat.com>
5516
5517 * dwarf2read.c (recursively_write_psymbols): New function.
5518 (write_psymtabs_to_index): Use it.
5519
5520 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5521 field.
5522 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5523 (load_partial_comp_unit): Update.
5524 (queue_comp_unit): Add argument 'pretend_language'.
5525 (process_queue): Update.
5526 (psymtab_to_symtab_1): Skip dependencies that have a user.
5527 (load_partial_comp_unit_reader): Give meaning to the 'data'
5528 argument.
5529 (load_full_comp_unit): Add 'pretend_language' argument.
5530 (process_full_comp_unit): Add 'pretend_language' argument. Set
5531 language on CU.
5532 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5533 Update.
5534 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5535 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5536 Update.
5537 (prepare_one_comp_unit): Add 'pretend_language' argument.
5538
5539 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5540 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5541 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5542 (dw2_do_instantiate_symtab): Check whether symtab was read in
5543 before queueing.
5544 (dw2_instantiate_symtab): Add assertion. Call
5545 process_cu_includes.
5546 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5547 (partial_symtab_p): New typedef.
5548 (set_partial_user): New function.
5549 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5550 (scan_partial_symbols): Add imported CU to imported_symtabs.
5551 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5552 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5553 (get_symtab, recursively_compute_inclusions)
5554 (compute_symtab_includes, process_cu_includes)
5555 (process_imported_unit_die): New functions.
5556 (process_die) <DW_TAG_imported_unit>: New case.
5557 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5558
5559 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5560 comment.
5561 (struct partial_die_info) <locdesc>: Remove.
5562 <d>: New field.
5563 (process_psymtab_comp_unit): Add 'read_partial' argument.
5564 Update.
5565 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5566 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5567 (add_partial_symbol): Update.
5568 (process_die): Handle DW_TAG_partial_unit.
5569 (read_file_scope): Update comment.
5570 (load_partial_dies): Handle DW_TAG_imported_unit.
5571 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5572 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5573
e871fbb9
TT
55742012-05-10 Tom Tromey <tromey@redhat.com>
5575
5576 * cc-with-dwz.sh: New file.
5577
b5b04b5b
TT
55782012-05-10 Tom Tromey <tromey@redhat.com>
5579
5580 * symtab.h (struct symtab) <includes, user>: New fields.
5581 * block.h (struct block_iterator) <d, idx, which>: New fields.
5582 * block.c (initialize_block_iterator, find_iterator_symtab)
5583 (block_iterator_step, block_iter_name_step)
5584 (block_iter_match_step): New functions.
5585 (block_iterator_first, block_iterator_next)
5586 (block_iter_name_first, block_iter_name_next)
5587 (block_iter_match_first, block_iter_match_next): Rewrite.
5588 (get_block_symtab): New function.
5589
84a146c9
TT
55902012-05-10 Tom Tromey <tromey@redhat.com>
5591
5592 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5593 set_block_symtab.
5594 * jit.c (finalize_symtab): Use allocate_global_block,
5595 set_block_symtab.
5596 * buildsym.c (finish_block_internal): New function, from old
5597 finish_block.
5598 (finish_block): Rewrite.
5599 (end_symtab): Use finish_block_internal, set_block_symtab.
5600 * block.h (struct global_block): New.
5601 (allocate_global_block, set_block_symtab): Declare.
5602 * block.c (allocate_global_block, set_block_symtab): New
5603 functions.
5604
9439a077
TT
56052012-05-10 Tom Tromey <tromey@redhat.com>
5606
5607 * psymtab.c (partial_map_expand_apply): Add assertion.
5608 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5609 (psymtab_to_symtab): Find unshared psymtab.
5610 (dump_psymtab): Print including psymtabs.
5611 (recursively_search_psymtabs): New function.
5612 (expand_symtabs_matching_via_partial): Use it.
5613 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5614 fields.
5615 (enum psymtab_search_status): New.
5616
8157b174
TT
56172012-05-10 Tom Tromey <tromey@redhat.com>
5618
5619 * tracepoint.c (scope_info): Update.
5620 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5621 (find_pc_sect_symtab, search_symbols)
5622 (default_make_symbol_completion_list_break_on)
5623 (make_file_symbol_completion_list): Update.
5624 * symmisc.c (dump_symtab_1): Update.
5625 * stack.c (print_frame_args, iterate_over_block_locals)
5626 (print_frame_labels, iterate_over_block_arg_vars): Update.
5627 * python/py-block.c (block_object) <dict>: Remove.
5628 <block>: New field.
5629 <iter>: Change type.
5630 (blpy_iter): Update.
5631 (blpy_block_syms_iternext): Update.
5632 * psymtab.c (map_block): Use block iterators.
5633 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5634 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5635 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5636 * infrun.c (check_exception_resume): Update.
5637 * cp-support.c (make_symbol_overload_list_block): Update.
5638 * coffread.c (patch_opaque_types): Update.
5639 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5640 * block.h (struct block_iterator): New.
5641 (block_iterator_first, block_iterator_next, block_iter_name_first)
5642 (block_iter_name_next, block_iter_match_first)
5643 (block_iter_match_next): Declare.
5644 (ALL_BLOCK_SYMBOLS): Redefine.
5645 * block.c (block_iterator_first, block_iterator_next)
5646 (block_iter_name_first, block_iter_name_next)
5647 (block_iter_match_first, block_iter_match_next): New functions.
5648 * ada-lang.c (ada_add_block_symbols)
5649 (ada_make_symbol_completion_list): Use block iterator.
5650
a2ca7a52
TT
56512012-05-10 Tom Tromey <tromey@redhat.com>
5652
5653 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5654 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5655 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5656 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5657 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5658 Update.
5659
64ea88dc
JB
56602012-05-10 Joel Brobecker <brobecker@adacore.com>
5661
5662 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5663 print-file-var-lib2.c, print-file-var-main.c and
5664 print-file-var.exp (located in gdb/testsuite/gdb.base).
5665
99a547d6
JB
56662012-05-10 Joel Brobecker <brobecker@adacore.com>
5667
5668 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5669 try locating the symbol in the symbol's own objfile first, before
5670 extending the search to all objfiles.
5671 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5672 out of lookup_symbol_aux_symtabs.
5673 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5674 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5675 Do not search EXCLUDE_OBJFILE.
5676 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5677 (lookup_symbol_global): Search for matches in the block's objfile
5678 first, before searching all other objfiles.
5679
0ece64fd
TG
56802012-05-10 Tristan Gingold <gingold@adacore.com>
5681
5682 * printcmd.c (set_command): Add pre/post inc/dec.
5683
3d16a105
FCE
56842012-05-09 Frank Ch. Eigler <fche@redhat.com>
5685
5686 * gdb.1: Document -ex option.
5687
2efbc0f7
JB
56882012-05-09 Joel Brobecker <brobecker@adacore.com>
5689
5690 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5691 * inferior.h (AT_SYMBOL): Delete.
5692
2c76a0c7
JB
56932012-05-09 Joel Brobecker <brobecker@adacore.com>
5694
5695 * mips-tdep.c (mips_push_dummy_code): New function.
5696 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5697 ON_STACK and install mips_push_dummy_code as our gdbarch
5698 push_dummy_code routine.
5699
9401a810
PA
57002012-05-09 Pedro Alves <palves@redhat.com>
5701
5702 * target.c (set_maintenance_target_async_permitted): Rename to ...
5703 (set_target_async_command): ... this.
5704 (show_maintenance_target_async_permitted): Rename to ...
5705 (show_target_async_command): ... this.
5706 (initialize_targets): Adjust.
5707
3929b321
DE
57082012-05-08 Doug Evans <dje@google.com>
5709
5710 * go-exp.y (classify_name): Add missing assignment of fields of
5711 yylval.ssym.
5712
c41535fd
EZ
57132012-05-08 Eli Zaretskii <eliz@gnu.org>
5714
5715 Display the ">" prompt in interactive mode while reading canned
5716 commands, even when the current interpreter is MI.
5717
5718 * interps.c (interp_set_temp): New function.
5719
5720 * interps.h (interp_set_temp): Add prototype.
5721
5722 * cli/cli-script.c (restore_interp): New cleanup function.
5723 (read_command_lines): Temporarily override the current interpreter
5724 with CLI and arrange for restoring the original one.
5725
c0749c4d
JS
57262012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5727
5728 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5729
d7333987
SDJ
57302012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5731
5732 * probe.c (parse_probes): Move conditional to check for
5733 debuginfo files from here...
5734 * stap-probe.c (stap_get_probes): ... to here.
5735
649e6d92
MK
57362012-05-07 Mark Kettenis <kettenis@gnu.org>
5737 H.J. Lu <hongjiu.lu@intel.com>
5738
5739 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5740 `movl %esp, %ebp' for the X32 ABI.
5741
f39c6ffd
TT
57422012-05-07 Tom Tromey <tromey@redhat.com>
5743
5744 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5745 get_DW_TAG_name.
5746 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5747 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5748 (dwarf_stack_op_name): Remove.
5749 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5750 (decode_locdesc): Use get_DW_OP_name.
5751 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5752 (dwarf2_compile_expr_to_ax): Likewise.
5753 (disassemble_dwarf_expression): Likewise.
5754 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5755
1e1f6591
CLT
57562012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5757
5758 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5759 (sh_linux_sigtramp_cache): New function.
5760 (sh_linux_sigreturn_init): New function.
5761 (sh_linux_rt_sigreturn_init): New function.
5762 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5763 patterns.
5764 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5765 syscall codes.
5766 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5767 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5768 (sh_linux_init_abi): Add init calls to register new tramp_frame
5769 definitions under 32-bit SH, update comments.
5770
545c08b4
PA
57712012-05-07 Pedro Alves <palves@redhat.com>
5772
daac165e
PA
5773 PR gdb/10952
5774
545c08b4
PA
5775 * amd64-linux-tdep.c: Include glibc-tdep.h.
5776 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5777 gdbarch_skip_solib_resolver callback.
5778
af2c1515
JK
57792012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5780
5781 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5782 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5783 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5784 (add_auto_load_safe_path): Change the error message.
5785 (_initialize_auto_load): Change the "safe-path" help text.
5786 * configure: Regenerate
5787 * configure.ac (--without-auto-load-safe-path): Set
5788 WITH_AUTO_LOAD_SAFE_PATH to /.
5789
1067f998
SDJ
57902012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5791
5792 * stap-probe.h: Do not include unecessary `probe.h'.
5793
45dfa85a
AM
57942012-05-05 Alan Modra <amodra@gmail.com>
5795
5796 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5797 bfd_und_section_ptr.
5798 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5799 and bfd_com_section_ptr.
5800
cf093994
JB
58012012-05-04 Joel Brobecker <brobecker@adacore.com>
5802
762ebb75 5803 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5804
d40dc7a8
JB
58052012-05-04 Joel Brobecker <brobecker@adacore.com>
5806
5807 * windows-nat.h (segment_register_p_ftype): New typedef.
5808 (windows_set_segment_register_p): Add declaration.
5809 * windows-nat.c (segment_register_p): New static global.
5810 (windows_set_segment_register_p): New function.
5811 (do_windows_fetch_inferior_registers): Add special handling
5812 for segment registers.
5813 * amd64-windows-nat.c: #include "amd64-tdep.h".
5814 (amd64_windows_segment_register_p): New function.
5815 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5816 * i386-windows-nat.c: #include "i386-tdep.h".
5817 (i386_windows_segment_register_p): New function.
5818 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5819
52b3699b
TG
58202012-05-04 Tristan Gingold <gingold@adacore.com>
5821
5822 * printcmd.c (set_command): Emit a warning if the expression is not
5823 an assignment.
5824
94c74239
JB
58252012-05-03 Joel Brobecker <brobecker@adacore.com>
5826
5827 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5828 Make static.
5829
fcf57f19
SDJ
58302012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5831
5832 * stap-probe.c (stap_is_operator): Change declaration.
5833 (stap_get_opcode): Change return value.
5834 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5835 `stap_parse_argument_1'.
5836
27d2932e
PA
58372012-05-03 Pedro Alves <pedro@codesourcery.com>
5838
5839 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5840 debug log.
5841
a20ee7a4
SCR
58422012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5843
5844 Add two new methods global_block and static_block to gdb.Symtab
5845 objects.
5846 * NEWS (Python scripting): Add entry about the new methods.
5847 * python/py-symtab.c (stpy_global_block): New function which
5848 implements the gdb.Symtab.global_block() method.
5849 (stpy_static_block): New function which implements the
5850 gdb.Symtab.static_block() method.
5851 (symtab_object_methods): Add entries for the two new methods.
5852
943cb756
DE
58532012-05-03 Doug Evans <dje@google.com>
5854
5855 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5856 files.
5857
f4644a3f
YQ
58582012-05-03 Yao Qi <yao@codesourcery.com>
5859
5860 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5861 space.
5862 (i386_process_record): Ditto.
5863
ef61f180
JB
58642012-05-02 Joel Brobecker <brobecker@adacore.com>
5865
5866 * infcall.c (unwind_on_signal_p): Make static.
5867
02f1df11
JB
58682012-05-02 Joel Brobecker <brobecker@adacore.com>
5869
5870 * sol-thread.c (solaris_pid_to_str): Make static.
5871 (_initialize_sol_thread): Add prototype.
5872
39023530
JB
58732012-05-02 Joel Brobecker <brobecker@adacore.com>
5874
5875 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5876
c6b0c501
CF
58772012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5878
5879 * MAINTAINERS: Remove myself.
5880
1ef71717
JK
58812012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5882
5883 Fix --without-auto-load-safe-path for MS-Windows host platform.
5884 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5885
b31b86a7
EZ
58862012-05-02 Eli Zaretskii <eliz@gnu.org>
5887
5888 * gdb_curses.h: Undefine KEY_EVENT before including curses
5889 headers. Move "#undef MOUSE_MOVED" before any curses header
5890 inclusion.
5891
777532fc
SDJ
58922012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5893
5894 * features/i386/i386-mmx-linux.c: Regenerate.
5895 * features/rs6000/powerpc-32.c: Likewise.
5896 * features/rs6000/powerpc-32l.c: Likewise.
5897 * features/rs6000/powerpc-403.c: Likewise.
5898 * features/rs6000/powerpc-403gc.c: Likewise.
5899 * features/rs6000/powerpc-405.c: Likewise.
5900 * features/rs6000/powerpc-505.c: Likewise.
5901 * features/rs6000/powerpc-601.c: Likewise.
5902 * features/rs6000/powerpc-602.c: Likewise.
5903 * features/rs6000/powerpc-603.c: Likewise.
5904 * features/rs6000/powerpc-604.c: Likewise.
5905 * features/rs6000/powerpc-64.c: Likewise.
5906 * features/rs6000/powerpc-64l.c: Likewise.
5907 * features/rs6000/powerpc-750.c: Likewise.
5908 * features/rs6000/powerpc-860.c: Likewise.
5909 * features/rs6000/powerpc-e500.c: Likewise.
5910 * features/rs6000/powerpc-e500l.c: Likewise.
5911 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5912 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5913 * features/rs6000/rs6000.c: Likewise.
5914
d71871bc
SDJ
59152012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5916
5917 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5918 variable.
5919 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5920 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5921 (stap_parse_argument) <e>: Likewise.
5922 (handle_stap_probe) <byte_order>: Likewise.
5923
fd820528
DE
59242012-04-30 Doug Evans <dje@google.com>
5925
5926 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5927 init_and_read_dies_worker. All callers updated.
5928 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5929 replaced with init_cutu_and_read_dies.
5930 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5931 (find_partial_die): Remove FIXME. Don't free current CU.
5932
ec3f619d 59332012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5934
5935 * contrib: New directory.
5936 * contrib/test_pubnames_and_indexes.py: New file.
5937
fceca515
DE
59382012-04-30 Doug Evans <dje@google.com>
5939
5940 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5941 All callers updated.
5942 (init_cu_die_reader): Verify the section is non-empty.
5943 (dwarf_decode_line_header): Don't dereference section->asection
5944 until we know the section is present.
5945
311fe7e1
SDJ
59462012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5947
5948 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5949 probes.
5950
5977971a
YQ
59512012-04-29 Yao Qi <yao@codesourcery.com>
5952
5953 * gdb-code-style.el: New hook gdb-markup-hook
5954 and gdb-comment-hook.
5955
dee91e82
DE
59562012-04-28 Doug Evans <dje@google.com>
5957
3019eac3
DE
5958 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5959 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5960 objfile->obfd.
5961 * symfile.h (dwarf2_debug_sections): New member addr.
5962 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5963 (ctx_no_get_addr_index): New function.
5964 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5965 (ctx_no_get_addr_index): Declare.
5966 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5967 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5968 (dwarf_expr_ctx_funcs): Update.
5969 (needs_get_addr_index): New function.
5970 (needs_frame_ctx_funcs): Update.
5971 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5972 * dwarf2read.c: #include "gdbcore.h".
5973 (dwarf2_per_objfile): New members addr, dwo_files.
5974 (dwarf2_elf_names): Add entry for addr.
5975 (struct dwo_section_names): New type.
5976 (dwo_section_names): New static global.
5977 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5978 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5979 old debug_types_section member updated to use this.
5980 Rename member debug_types_section to info_or_types_section,
5981 all uses updated.
5982 (signatured_type): Rename member type_offset to type_offset_in_tu,
5983 all uses updated. New member type_offset_in_section.
5984 (struct dwo_sections): New type.
5985 (struct dwo_unit): New type.
5986 (struct dwo_file): New type.
5987 (die_reader_specs): New member dwo_file.
5988 (dwarf2_locate_sections): Watch for .debug_addr.
5989 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5990 (dwarf2_read_section): Get bfd of section from bfd's asection,
5991 instead of objfile.
5992 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5993 (create_signatured_type_table_from_index): Initialize
5994 sig_type->info_or_types_section.
5995 (dw2_get_file_names): Statement lists for type units with DWO files
5996 live in the DWO file.
5997 (create_debug_types_hash_table): New function.
5998 (create_all_type_units): Rewrite.
5999 (init_cu_die_reader): New arg dwo_file, all callers updated.
6000 (init_and_read_dies_worker): Get section from
6001 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6002 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6003 continue reading the CU/TU from there.
6004 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6005 updated. Get section from this_cu->info_or_types_section.
6006 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6007 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6008 DW_FORM_GNU_str_index.
6009 (hash_dwo_file, eq_dwo_file): New functions.
6010 (allocate_dwo_file_hash_table): New function.
6011 (hash_dwo_unit, eq_dwo_unit): New functions.
6012 (allocate_dwo_unit_table): New function.
6013 (dwarf2_locate_dwo_sections): New function.
6014 (struct create_dwo_info_table_data): New type.
6015 (create_debug_info_hash_table_reader): New function.
6016 (create_debug_info_hash_table): New function.
6017 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6018 (lookup_dwo_file): New function.
6019 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6020 (free_dwo_file, free_dwo_file_cleanup): New functions.
6021 (free_dwo_file_from_slot, free_dwo_files): New functions.
6022 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6023 (dwarf2_record_block_ranges): Ditto.
6024 (read_partial_die): Ditto.
6025 (process_enumeration_scope): Update to use type_offset_in_section.
6026 (read_full_die_1): New function.
6027 (read_full_die): Rewrite.
6028 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6029 DW_FORM_GNU_str_index.
6030 (read_addr_index_1, read_addr_index): New functions.
6031 (read_addr_index_from_leb128): New function.
6032 (struct dwarf2_read_addr_index_data): New type.
6033 (dwarf2_read_addr_index_reader): New function.
6034 (dwarf2_read_addr_index): New function.
6035 (read_str_index): New function.
6036 (leb128_size): New function.
6037 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6038 If processing a type unit from a DWO file, get the line section
6039 from the DWO file.
6040 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6041 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6042 DW_FORM_GNU_str_index.
6043 (lookup_die_type): Check whether section offset of type's die is
6044 known before looking it up. Remove assert. Condition can
6045 legimately happen for inter-cu type references.
6046 (dwarf_attr_name): Handle Fission attributes.
6047 (dwarf_form_name): Handle Fission forms.
6048 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6049 DW_FORM_GNU_str_index.
6050 (follow_die_sig): Update to use type_offset_in_section.
6051 (decode_locdesc): New case DW_OP_GNU_addr_index.
6052 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6053 DW_FORM_GNU_str_index.
6054 (cu_debug_loc_section): New function.
6055 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6056 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6057 Free DWO files if present.
6058 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6059
dee91e82
DE
6060 Refactor DIE reading.
6061 * dwarf2read.c (dwarf2_per_objfile): Replace members
6062 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6063 (die_reader_specs): New member "die_section". Temporarily make
6064 member "buffer" non-const, pending constifying all info_ptr uses.
6065 (die_reader_func_ftype): New typedef.
6066 (dw2_get_file_names_reader): New function.
6067 (dw2_get_file_names): Rewrite.
6068 (read_and_check_type_unit_head): Rename arg type_offset to
6069 type_offset_in_tu.
6070 (create_all_type_units): Improve debugging message.
6071 Improve dummy type unit check.
6072 (init_cu_die_reader): New arg "section". All callers updated.
6073 (init_and_read_dies_worker): New function.
6074 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6075 (init_cutu_and_read_dies_no_follow): New function.
6076 (init_cutu_and_read_dies_simple): New function.
6077 (process_psymtab_comp_unit_reader): New function.
6078 (process_psymtab_comp_unit): Delete args section,
6079 is_debug_types_section. Rewrite. All callers updated.
6080 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6081 All callers updated. Rewrite.
6082 (load_partial_comp_unit_reader): New function.
6083 (load_partial_comp_unit): Rewrite.
6084 (skip_children): New arg reader. Delete args buffer, cu.
6085 All callers updated.
6086 (skip_one_die): New arg reader. Delete args buffer, cu.
6087 All callers updated.
6088 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6089 All callers updated.
6090 (load_full_comp_unit_reader): New function.
6091 (load_full_comp_unit): Rewrite.
6092 (read_comp_unit): Delete.
6093 (read_die_and_children_1): Delete, contents moved ...
6094 (read_die_and_children): ... here.
6095 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6096 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6097 All callers updated.
6098 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6099 All callers updated.
6100 (find_partial_die): Rewrite load_all_dies support.
6101 (read_attribute_value): New arg reader. Delete args abfd, cu.
6102 All callers updated.
6103 (read_attribute): New arg reader. Delete args abfd, cu.
6104 All callers updated.
6105 (load_full_type_unit): Add assert.
6106 (read_signatured_type_reader): New function.
6107 (read_signatured_type): Rewrite.
6108 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6109 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6110 All callers updated. Set per_cu->cu = NULL after freeing it.
6111 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6112 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6113 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6114 (set_die_type): Update.
6115 (get_die_type_at_offset): Update.
6116 (read_file_scope): Call prepare_one_comp_unit.
6117 (read_type_unit_scope): Ditto.
6118 (prepare_one_comp_unit): Set producer if present.
6119
72d59e0d
SDJ
61202012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6121
6122 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6123 gettext function on `error'.
6124
0fefef59
DE
61252012-04-27 Doug Evans <dje@google.com>
6126
6127 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6128 is empty.
6129
28106bc2
SDJ
61302012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6131 Tom Tromey <tromey@redhat.com>
6132
6133 * breakpoint.c (struct breakpoint_objfile_data)
6134 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6135 <exception_probes>: New fields.
6136 (free_breakpoint_probes): New function.
6137 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6138 `_Unwind_DebugHook'.
6139 (create_exception_master_breakpoint): Likewise.
6140 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6141 * infrun.c: Including necessary header files for handling SystemTap
6142 probes.
6143 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6144 via SystemTap probes.
6145 (check_exception_resume): Remove `func' argument. Handle exception
6146 unwinding breakpoint set via a SystemTap probe.
6147 (insert_exception_resume_from_probe): New function.
6148
55aa24fb
SDJ
61492012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6150 Tom Tromey <tromey@redhat.com>
6151 Jan Kratochvil <jan.kratochvil@redhat.com>
6152
6153 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6154 (COMMON_OBS): Likewise.
6155 (HFILES_NO_SRCDIR): Add `probe'.
6156 * NEWS: Mention support for static and SystemTap probes.
6157 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6158 SystemTap probes' arguments parser.
6159 * arm-linux-tdep.c: Including headers needed to perform the parsing
6160 of SystemTap probes' arguments.
6161 (arm_stap_is_single_operand): New function.
6162 (arm_stap_parse_special_token): Likewise.
6163 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6164 probes' arguments parser.
6165 * ax-gdb.c (require_rvalue): Removing static declaration.
6166 (gen_expr): Likewise.
6167 * ax-gdb.h (gen_expr): Declaring function.
6168 (require_rvalue): Likewise.
6169 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6170 (bkpt_probe_breakpoint_ops): New variable.
6171 (momentary_breakpoint_from_master): Set the `probe' value.
6172 (add_location_to_breakpoint): Likewise.
6173 (break_command_1): Using proper breakpoint_ops according to the
6174 argument passed by the user in the command line.
6175 (bkpt_probe_insert_location): New function.
6176 (bkpt_probe_remove_location): Likewise.
6177 (bkpt_probe_create_sals_from_address): Likewise.
6178 (bkpt_probe_decode_linespec): Likewise.
6179 (tracepoint_probe_create_sals_from_address): Likewise.
6180 (tracepoint_probe_decode_linespec): Likewise.
6181 (tracepoint_probe_breakpoint_ops): New variable.
6182 (trace_command): Using proper breakpoint_ops according to the
6183 argument passed by the user in the command line.
6184 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6185 static probes on breakpoints and tracepoints.
6186 * breakpoint.h (struct bp_location) <probe>: New field.
6187 * cli-utils.c (skip_spaces_const): New function.
6188 (extract_arg): Likewise.
6189 * cli-utils.h (skip_spaces_const): Likewise.
6190 (extract_arg): Likewise.
6191 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6192 * configure.ac: Append `stap-probe.o' to be generated when ELF
6193 support is present.
6194 * configure: Regenerate.
6195 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6196 * elfread.c: Include `probe.h' and `arch-utils.h'.
6197 (probe_key): New variable.
6198 (elf_get_probes): New function.
6199 (elf_get_probe_argument_count): Likewise.
6200 (elf_evaluate_probe_argument): Likewise.
6201 (elf_compile_to_ax): Likewise.
6202 (elf_symfile_relocate_probe): Likewise.
6203 (stap_probe_key_free): Likewise.
6204 (elf_probe_fns): New variable.
6205 (elf_sym_fns): Add `sym_probe_fns' value.
6206 (elf_sym_fns_lazy_psyms): Likewise.
6207 (elf_sym_fns_gdb_index): Likewise.
6208 (_initialize_elfread): Initialize objfile cache for static
6209 probes.
6210 * gdb_vecs.h (struct probe): New forward declaration.
6211 (probe_p): New VEC declaration.
6212 * gdbarch.c: Regenerate.
6213 * gdbarch.h: Regenerate.
6214 * gdbarch.sh (stap_integer_prefix): New variable.
6215 (stap_integer_suffix): Likewise.
6216 (stap_register_prefix): Likewise.
6217 (stap_register_suffix): Likewise.
6218 (stap_register_indirection_prefix): Likewise.
6219 (stap_register_indirection_suffix): Likewise.
6220 (stap_gdb_register_prefix): Likewise.
6221 (stap_gdb_register_suffix): Likewise.
6222 (stap_is_single_operand): New function.
6223 (stap_parse_special_token): Likewise.
6224 (struct stap_parse_info): Forward declaration.
6225 * i386-tdep.c: Including headers needed to perform the parsing
6226 of SystemTap probes' arguments.
6227 (i386_stap_is_single_operand): New function.
6228 (i386_stap_parse_special_token): Likewise.
6229 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6230 probes' arguments parser.
6231 * i386-tdep.h (i386_stap_is_single_operand): New function.
6232 (i386_stap_parse_special_token): Likewise.
6233 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6234 * mipsread.c (ecoff_sym_fns): Likewise.
6235 * objfiles.c (objfile_relocate1): Support relocation for static
6236 probes.
6237 * parse.c (prefixify_expression): Remove static declaration.
6238 (initialize_expout): Likewise.
6239 (reallocate_expout): Likewise.
6240 * parser-defs.h (initialize_expout): Declare function.
6241 (reallocate_expout): Likewise.
6242 (prefixify_expression): Likewise.
6243 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6244 of SystemTap probes' arguments.
6245 (ppc_stap_is_single_operand): New function.
6246 (ppc_stap_parse_special_token): Likewise.
6247 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6248 probes' arguments parser.
6249 * probe.c: New file, for generic statically defined probe support.
6250 * probe.h: Likewise.
6251 * s390-tdep.c: Including headers needed to perform the parsing of
6252 SystemTap probes' arguments.
6253 (s390_stap_is_single_operand): New function.
6254 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6255 probes' arguments parser.
6256 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6257 * stap-probe.c: New file, for SystemTap probe support.
6258 * stap-probe.h: Likewise.
6259 * symfile.h: Include `gdb_vecs.h'.
6260 (struct sym_probe_fns): New struct.
6261 (struct sym_fns) <sym_probe_fns>: New field.
6262 * symtab.c (init_sal): Initialize `probe' field.
6263 * symtab.h (struct probe): Forward declaration.
6264 (struct symtab_and_line) <probe>: New field.
6265 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6266 locations.
6267 (stop_tracing): Likewise.
6268 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6269
22d2b532
SDJ
62702012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6271 Tom Tromey <tromey@redhat.com>
6272
6273 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6274 and to compile agent expressions.
6275 * infrun.c (siginfo_make_value): New argument `ignore'.
6276 (siginfo_funcs): New struct.
6277 (_initialize_infrun): New argument when calling
6278 `create_internalvar_type_lazy'.
6279 * thread.c (thread_id_make_value): New argument `ignore'.
6280 (thread_funcs): New struct.
6281 (_initialize_thread): New argument when calling
6282 `create_internalvar_type_lazy'.
6283 * tracepoint.c (sdata_make_value): New argument `ignore'.
6284 (sdata_funcs): New struct.
6285 (_initialize_tracepoint): New argument when calling
6286 `create_internalvar_type_lazy'.
6287 * value.c (make_value): New struct.
6288 (create_internalvar_type_lazy): New argument `data'.
6289 (compile_internalvar_to_ax): New function.
6290 (value_of_internalvar): Properly handling `make_value' case.
6291 (clear_internalvar): Likewise.
6292 (show_convenience): Adding `TRY_CATCH' block.
6293 * value.h (internalvar_make_value): Delete, replace by...
6294 (struct internalvar_funcs): ... this.
6295 (create_internalvar_type_lazy) <fun>: Delete argument.
6296 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6297 (compile_internalvar_to_ax): New function.
6298 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6299 (tlb_funcs): New struct.
6300 (_initialize_windows_tdep): New argument when calling
6301 `create_internalvar_type_lazy'.
6302
91da1414
MW
63032012-04-27 Mark Wielaard <mjw@redhat.com>
6304
6305 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6306 see whether it is an address or a constant offset from DW_AT_low_pc.
6307 (dwarf2_record_block_ranges): Likewise.
6308 (read_partial_die): Likewise.
6309
4ab9d8ec
MW
63102012-04-26 Mark Wielaard <mjw@redhat.com>
6311
6312 * MAINTAINERS (Write After Approval): Add myself to the list.
6313
a0911fd0
MR
63142012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6315
6316 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6317 (proc_prettyprint_signal): Likewise.
6318 (proc_prettyprint_faultset): Likewise.
6319 (proc_prettyprint_fault): Likewise.
6320 (proc_prettyprint_actionset): Likewise.
6321 (proc_prettyprint_flags): Move to new proc-flags.c section.
6322 (proc_prettyfprint_flags): New prototype.
6323 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6324 (proc_syscall, proc_cursig): Likewise.
6325 (proc_set_kill_on_last_close): Likewise.
6326 (proc_unset_kill_on_last_close): Likewise.
6327 (proc_set_watchpoint): Make static.
6328 (proc_delete_dead_threads): Likewise.
6329 (procfs_set_watchpoint): Likewise.
6330 (_initialize_procfs): Add prototype.
6331 * proc-events.c: Include proc-utils.h.
6332 (init_syscall_table): Make static.
6333 * proc-api.c (_initialize_proc_api): Add prototype.
6334 * proc-flags.c: Include proc-utils.h.
6335
9009e1ae
MR
63362012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6337
6338 * configure.ac: Add AC_ARG_PROGRAM.
6339 * configure: Regenerate.
6340
4fae6e18
JK
63412012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6342
6343 Fix DW_AT_lower_bound defaults for DWARF-4+.
6344 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6345 high. New variable low_default_is_valid. Implement DWARF-4+
6346 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6347 no default by the DWARF standard.
6348
14132e89 63492012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6350 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6351
6352 * infrun.c (handle_inferior_event): Move the check for return
6353 trampolines ahead of the check for function trampolines.
6354 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6355 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6356 (mips_str_mips16_ret_stub): Likewise.
6357 (mips_str_call_fp_stub): Likewise.
6358 (mips_str_call_stub): Likewise.
6359 (mips_str_fn_stub): Likewise.
6360 (mips_str_pic): Likewise.
6361 (mips_in_frame_stub): New function.
6362 (mips_unwind_pc): Return the return address rather than the PC
6363 if the PC of an intermediate frame is inside a call thunk.
6364 (mips_is_stub_suffix): New function.
6365 (mips_is_stub_mode): Likewise.
6366 (mips_get_mips16_fn_stub_pc): Likewise.
6367 (mips_skip_mips16_trampoline_code): Update to handle all the
6368 currently generated stub types. Don't recurse into __fn_stub
6369 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6370 Use cooked register accesses.
6371 (mips_in_return_stub): Reintroduce function.
6372 (mips_skip_trampoline_code): Traverse trampolines recursively.
6373 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6374
518f0db5 63752012-04-26 Joel Brobecker <brobecker@adacore.com>
6376
6377 GDB 7.4.1 released.
6378
3184d3f9
JL
63792012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6380
6381 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6382 * features/arm-with-m-vfp-d16.xml: New file. Describes
6383 Cortex-M with VFPv4-sp-d16 FPU register layout.
6384 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6385 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6386 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6387 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6388 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6389
b6201d44
DE
63902012-04-25 Doug Evans <dje@google.com>
6391
6392 * cli/cli-decode.c (print_doc_line): Use stream instead of
6393 current_uiout.
6394
4e2f8df6
SDJ
63952012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6396
6397 * features/arm-with-iwmmxt.c: Regenerate.
6398 * features/arm-with-m-fpa-layout.c: Likewise.
6399 * features/arm-with-m.c: Likewise.
6400 * features/arm-with-neon.c: Likewise.
6401 * features/arm-with-vfpv2.c: Likewise.
6402 * features/arm-with-vfpv3.c: Likewise.
6403 * features/mips-dsp-linux.c: Likewise.
6404 * features/mips-linux.c: Likewise.
6405 * features/mips64-dsp-linux.c: Likewise.
6406 * features/mips64-linux.c: Likewise.
6407 * features/s390-linux32.c: Likewise.
6408 * features/s390-linux32v1.c: Likewise.
6409 * features/s390-linux32v2.c: Likewise.
6410 * features/s390-linux64.c: Likewise.
6411 * features/s390-linux64v1.c: Likewise.
6412 * features/s390-linux64v2.c: Likewise.
6413 * features/s390x-linux64.c: Likewise.
6414 * features/s390x-linux64v1.c: Likewise.
6415 * features/s390x-linux64v2.c: Likewise.
6416 * features/tic6x-c62x-linux.c: Likewise.
6417 * features/tic6x-c62x.c: Likewise.
6418 * features/tic6x-c64x-linux.c: Likewise.
6419 * features/tic6x-c64x.c: Likewise.
6420 * features/tic6x-c64xp-linux.c: Likewise.
6421 * features/tic6x-c64xp.c: Likewise.
6422 * target-descriptions.c: Only generate `field_type' and `type'
6423 variables when needed.
6424
2def3e66
JB
64252012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6426
6427 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6428
a766d390
DE
64292012-04-25 Doug Evans <dje@google.com>
6430
6431 Initial pass at Go language support.
6432 * NEWS: Mention Go.
6433 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6434 go-valprint.c.
6435 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6436 (YYFILES): Add go-exp.c.
6437 (YYOBJ): Add go-exp.o.
6438 (local-maintainer-clean): Delete go-exp.c.
6439 * defs.h (enum language): Add language_go.
6440 * dwarf2read.c: #include "go-lang.h".
6441 (fixup_go_packaging): New function.
6442 (process_full_comp_unit): Call it when processing Go CUs.
6443 (dwarf2_physname): Add Go support.
6444 (read_file_scope): Handle missing language spec for GNU Go.
6445 (set_cu_language): Handle DW_LANG_Go.
6446 * go-exp.y: New file.
6447 * go-lang.h: New file.
6448 * go-lang.c: New file.
6449 * go-typeprint.c: New file.
6450 * go-valprint.c: New file.
6451 * symtab.c: #include "go-lang.h".
6452 (symbol_set_language): Handle language_go.
6453 (symbol_find_demangled_name, symbol_set_names): Ditto.
6454 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6455
4e2af517
JM
64562012-04-24 Jim Meyering <meyering@redhat.com>
6457
6458 avoid a few strncpy-induced buffer overruns
6459 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6460 fname and psargs before trying to concatenate.
6461 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6462 "name" before applying strchr.
6463
b77b7f52
SCR
64642012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6465
6466 * CONTRIBUTE: Use unified diff instead of context diff when
6467 generating patches.
6468
6321c22a
MR
64692012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6470
6471 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6472 code. Handle JR.HB correctly.
6473
742c84f6
MR
64742012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6475
6476 * mips-tdep.c
6477 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6478 with the other MIPS16 helpers.
6479
7fc7e0c3
SDJ
64802012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6481
6482 * observer.sh: Conditionally declare `args', thus cleaning up
6483 unused instances of this variable.
6484
20388dd6
YQ
64852012-04-24 Yao Qi <yao@codesourcery.com>
6486
6487 Revert this patch to allow breakpoint always-inserted
6488 in record target.
6489 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6490 * breakpoint.c: Include record.h.
6491 (breakpoints_always_inserted_mode): Return false when the record
6492 target is in use.
20388dd6
YQ
6493
6494 * breakpoint.c (iterate_over_bp_locations): New.
6495 * breakpoint.h: Declare.
6496 New typedef walk_bp_location_callback.
6497 * record.c (record_open): Call record_init_record_breakpoints.
6498 (record_sync_record_breakpoints): New.
6499 (record_init_record_breakpoints): New.
6500 * NEWS: Mention supporting breakpoint always-inserted mode in
6501 record target.
6502
4734f50e
MK
65032012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6504
6505 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6506 any thread.
6507
c326b90e
YQ
65082012-04-24 Yao Qi <yao@codesourcery.com>
6509
6510 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6511 (is_catchpoint): ... it.
6512 (print_one_breakpoint_location): Caller update.
6513 * breakpoint.h: Update declaration.
6514
d8fb5a1e
DM
65152012-04-23 David S. Miller <davem@davemloft.net>
6516
6517 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6518
34431a2a
TT
65192012-04-23 Tom Tromey <tromey@redhat.com>
6520
6521 * buildsym.c (add_free_pendings): Remove.
6522 * buildsym.h (add_free_pendings): Remove.
6523
4568ecf9
DE
65242012-04-23 Doug Evans <dje@google.com>
6525
6526 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6527 attr.u.unsnd instead of attr.u.addr.
6528 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6529 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6530 DW_FORM_ref_udata.
6531 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6532 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6533 DW_FORM_ref_udata.
6534 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6535
dca9aa3a
MR
65362012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6537
6538 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6539 (mips_o32_return_value): Likewise.
6540 (mips_o64_return_value): Likewise.
6541
c8ea1972
PH
65422012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6543
6544 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6545 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6546 their treatment in eval.c.
c8ea1972 6547
8d1b3521
DM
65482012-04-21 David S. Miller <davem@davemloft.net>
6549
6550 * sparc-tdep.c (X_DISP10): Define.
6551 (sparc_analyze_control_transfer): Handle compare-and-branch.
6552
03145bf4
JL
65532012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6554
6555 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6556 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6557
004159a2 65582012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6559 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6560
6561 * mips-tdep.c (mips_float_register_p): New function.
6562 (mips_convert_register_float_case_p): Use mips_float_register_p.
6563 (mips_register_type): Likewise.
6564 (mips_print_register): Likewise.
6565 (print_gp_register_row): Likewise.
6566 (mips_print_registers_info): Likewise.
6567
7f0e6aae
MR
65682012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6569
6570 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6571 of mips16 symbols.
6572
bc17beea
AP
65732012-04-20 Andrew Pinski <apinski@cavium.com>
6574
6575 * MAINTAINERS (Write After Approval): Add myself to the list.
6576
1730a5a5
SDJ
65772012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6578
6579 * MAINTAINERS: Update my e-mail address.
6580
38ea300a
PA
65812012-04-20 Pedro Alves <palves@redhat.com>
6582
6583 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6584 $srcdir.
6585 * configure: Regenerate.
6586
111dfaae
SDJ
65872012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6588
6589 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6590 declaration.
6591 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6592
4fb2c64a
JK
65932012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6594
6595 Fix compilation compatibility with python-2.4
6596 * python/py-type.c (convert_field): Cast ADDRSTRING for
6597 PyObject_SetAttrString as non-const. New comment.
6598
6328eb38
TT
65992012-04-19 Tom Tromey <tromey@redhat.com>
6600
6601 * top.c (quit_target): Use all_cleanups.
6602 * main.c (captured_command_loop): Use all_cleanups.
6603 * exceptions.c (throw_exception): Use all_cleanups.
6604
c971b7fa
PA
66052012-04-19 Pedro Alves <palves@redhat.com>
6606
6607 * Makefile.in (GNULIB_BUILDDIR): New.
6608 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6609 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6610 (CLEANDIRS). Remove gnulib/import.
6611 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6612 (all-lib): Ditto.
6613 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6614 (gnulib/import/Makefile): Replace gnulib/import with
6615 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6616 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6617 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6618 acx_configure_dir.m4.
6619 * acinclude.m4: Include acx_configure_dir.m4.
6620 * acx_configure_dir.m4: New file.
6621 * aclocal.m4: Regenerate.
a09130f9
PA
6622 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6623 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6624 (GNULIB): New variable.
6625 (GNULIB_STDINT_H): Adjust.
6626 (AC_OUTPUT): Don't output gnulib/Makefile.
6627 * gdb/defs.h: Include build-gnulib/config.h.
6628 * aclocal.m4: Regenerate.
6629 * config.in: Regenerate.
6630 * configure: Regenerate.
6631
6632 * gnulib/Makefile.in: New file.
6633 * gnulib/configure.ac: New file.
6634 * gnulib/aclocal.m4: New file.
6635 * gnulib/config.in: New file.
6636 * gnulib/configure: New file.
c971b7fa
PA
6637 * gnulib/: Re-run gnulib-tool to adjust.
6638
b10faa68
DE
66392012-04-19 Doug Evans <dje@google.com>
6640
6641 * cleanups.h (struct cleanup): Move to cleanups.c.
6642 (make_cleanup_dtor_ftype): New typedef.
6643 (make_cleanup_dtor): Use it.
6644 (ALL_CLEANUPS): Replace with ...
6645 (all_cleanups): ... this. Declare. All uses updated.
6646 * cleanups.c: #include "gdb_assert.h".
6647 (sentinel_cleanup): New static global.
6648 (SENTINEL_CLEANUP): Define.
6649 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6650 (make_my_cleanup2): Assert result is non-NULL.
6651 (all_cleanups): New function.
6652 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6653 of NULL.
6654
d8c267cc
PA
66552012-04-19 Pedro Alves <palves@redhat.com>
6656
6657 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6658 Adjust paths to gnulib imported files.
6659
809277f8
PA
66602012-04-19 Pedro Alves <palves@redhat.com>
6661
6662 * gnulib/: Move whole directory ...
6663 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6664 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6665 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6666 (aclocal_m4_deps): Adjust.
6667 * aclocal.m4: Regenerate.
6668 * configure: Regenerate.
6669 * configure.ac: Adjust AC_OUTPUT output.
6670
aad9eab9
YQ
66712012-04-19 Yao Qi <yao@codesourcery.com>
6672
6673 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6674 (vec.o): New rule.
6675 * vec.c: Move it ...
6676 * common/vec.c: ... here.
6677 * vec.h: Move it ...
6678 * common/vec.h: ... here.
6679
48fe4669
YQ
66802012-04-19 Yao Qi <yao@codesourcery.com>
6681
6682 * gdb-code-style.el: New.
6683
770d76d7
PA
66842012-04-18 Pedro Alves <palves@redhat.com>
6685
6686 Update gnulib from latest git.
6687 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6688
6689 * gnulib/Makefile.am: Update.
6690 * gnulib/dummy.c: Update.
6691 * gnulib/extra/arg-nonnull.h: Update.
6692 * gnulib/extra/c++defs.h: Update.
6693 * gnulib/extra/update-copyright: Update.
6694 * gnulib/extra/warn-on-use.h: Update.
6695 * gnulib/inttypes.in.h: Update.
6696 * gnulib/m4/00gnulib.m4: Update.
6697 * gnulib/m4/extensions.m4: Update.
6698 * gnulib/m4/gnulib-cache.m4: Update.
6699 * gnulib/m4/gnulib-common.m4: Update.
6700 * gnulib/m4/gnulib-comp.m4: Update.
6701 * gnulib/m4/gnulib-tool.m4: Update.
6702 * gnulib/m4/include_next.m4: Update.
6703 * gnulib/m4/inttypes-pri.m4: Update.
6704 * gnulib/m4/inttypes.m4: Update.
6705 * gnulib/m4/longlong.m4: Update.
6706 * gnulib/m4/memchr.m4: Update.
6707 * gnulib/m4/memmem.m4: Update.
6708 * gnulib/m4/mmap-anon.m4: Update.
6709 * gnulib/m4/multiarch.m4: Update.
6710 * gnulib/m4/onceonly.m4: Update.
6711 * gnulib/m4/stddef_h.m4: Update.
6712 * gnulib/m4/stdint.m4: Update.
6713 * gnulib/m4/string_h.m4: Update.
6714 * gnulib/m4/warn-on-use.m4: Update.
6715 * gnulib/m4/wchar_h.m4: Update.
6716 * gnulib/m4/wchar_t.m4: Update.
6717 * gnulib/m4/wint_t.m4: Update.
6718 * gnulib/memchr.c: Update.
6719 * gnulib/memmem.c: Update.
6720 * gnulib/stddef.in.h: Update.
6721 * gnulib/stdint.in.h: Update.
6722 * gnulib/str-two-way.h: Update.
6723 * gnulib/string.in.h: Update.
6724 * gnulib/wchar.in.h: Update.
6725
6726 * gnulib/extra/arg-nonnull.h: Delete.
6727 * gnulib/extra/c++defs.h: Delete.
6728 * gnulib/extra/warn-on-use.h: Delete.
6729 * gnulib/m4/wchar_h.m4: Delete.
6730 * gnulib/m4/wint_t.m4: Delete.
6731 * gnulib/wchar.in.h: Delete.
6732
6733 * gnulib/extra/snippets/arg-nonnull.h: New.
6734 * gnulib/extra/snippets/c++defs.h: New.
6735 * gnulib/extra/snippets/warn-on-use.h: New.
6736
6737 * aclocal.m4: Regenerate.
6738 * config.in: Regenerate.
6739 * configure: Regenerate.
6740 * gnulib/Makefile.in: Regenerate.
6741
174e088e
PA
67422012-04-18 Pedro Alves <palves@redhat.com>
6743
6744 Reimport the update-copyright module from gnulib
6745 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6746
6747 * configure: Regenerate.
6748 * gnulib/Makefile.am: Update.
6749 * gnulib/Makefile.in: Regenerate.
6750 * gnulib/extra/update-copyright: Update.
6751 * gnulib/m4/gnulib-cache.m4: Update.
6752 * gnulib/m4/gnulib-comp.m4: Update.
6753
7f533142
JB
67542012-04-18 Tristan Gingold <gingold@adacore.com>
6755
6756 * configure.ac (aix): Put -lpthread into libs.
6757 * configure: Regenerate.
6758
001822aa
TT
67592012-04-18 Tom Tromey <tromey@redhat.com>
6760
6761 * linespec.c (convert_linespec_to_sals): Don't use
6762 SYMBOL_OBJ_SECTION.
6763 (compare_msymbols): Arguments are minsym_and_objfile, not
6764 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6765
db026a31
PA
67662012-04-18 Pedro Alves <palves@redhat.com>
6767
6768 Revert gnulib/ part of:
6769 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6770 Copyright year update in most files (performed by copyright.sh).
6771
12df843f
JK
67722012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6773
6774 Fix 64-bit constants on 32-bit hosts.
6775 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6776 from unsigned long to ULONGEST.
6777 (read_signed_leb128): Change declaration return type from long to
6778 LONGEST.
6779 (dwarf2_const_value_attr): Change declaration parameter value from long
6780 to LONGEST.
6781 (dwarf2_compute_name): Change variable value from long to LONGEST.
6782 (read_unsigned_leb128): Change return type, variable result and some
6783 casts from unsigned long to ULONGEST.
6784 (read_signed_leb128): Change return type, variable result and some
6785 casts from long to LONGEST.
6786 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6787 value from long to LONGEST.
6788 (dwarf2_const_value): Change variable value from long to LONGEST.
6789 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6790 plongest and hex_string.
6791 * symtab.h (struct general_symbol_info): Change ivalue from long to
6792 LONGEST, remove the comment.
6793 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6794 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6795
14e75d8e
JK
67962012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6797
6798 PR symtab/7259:
6799 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6800 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6801 (ada_discrete_type_low_bound): Fix function comment. Use
6802 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6803 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6804 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6805 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6806 Use TYPE_FIELD_ENUMVAL.
6807 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6808 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6809 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6810 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6811 TYPE_CODE_ENUM.
6812 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6813 * dwarf2read.c (process_enumeration_scope): Likewise.
6814 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6815 field.bitpos.
6816 (class StructMainTypePrettyPrinter): Support also
6817 FIELD_LOC_KIND_ENUMVAL.
6818 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6819 TYPE_CODE_ENUM.
6820 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6821 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6822 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6823 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6824 field enumval.
6825 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6826 accommodate enumval.
6827 (struct call_site): Adjust loc_kind to accommodate enumval.
6828 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6829 (TYPE_FIELD_ENUMVAL): New macros.
6830 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6831 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6832 TYPE_CODE_ENUM.
6833 * p-typeprint.c (pascal_type_print_base): Likewise.
6834 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6835 enumval.
6836 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6837 * python/py-type.c (convert_field): New variable addrstring. Use
6838 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6839 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6840 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6841 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6842 TYPE_CODE_ENUM.
6843 * valprint.c (generic_val_print): Likewise.
6844
380bca97
DE
68452012-04-17 Doug Evans <dje@google.com>
6846
dcc07052
DE
6847 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6848
380bca97
DE
6849 * dwarf2read.c: Whitespace fixes.
6850 (lookup_signatured_type): Tweak comment.
6851 (get_die_type_at_offset): Fix comment.
6852
ec92004f
JB
68532012-04-17 Joel Brobecker <brobecker@adacore.com>
6854
6855 * xcoffread.c (xcoff_secnum_to_sections): New function.
6856 (secnum_to_section, secnum_to_bfd_section): Reimplement
6857 using xcoff_secnum_to_sections. Rename "secnum" parameter
6858 into "n_scnum".
6859 (RECORD_MINIMAL_SYMBOL): Delete.
6860 (record_minimal_symbol): New function.
6861 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6862 by call to record_minimal_symbol and set misc_func_recorded
6863 to 1. Set last_csect_sec to the XCOFF section index instead
6864 of GDB's section_offset index. Update calls to
6865 prim_record_minimal_symbol_and_info to pass the BFD section
6866 as well.
6867
40301fb7
JB
68682012-04-17 Joel Brobecker <brobecker@adacore.com>
6869
6870 * xcoffread.c (read_xcoff_symtab): Delete variables
6871 last_csect_val and last_csect_sec and associated code.
6872
e0088cfd
DE
68732012-04-17 Doug Evans <dje@google.com>
6874
58d5e2c3
DE
6875 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6876 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6877 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6878 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6879
c27f5738
DE
6880 * cleanups.h: New file.
6881 * cleanups.c: New file.
6882 * Makefile.in (SFILES): Add cleanups.c.
6883 (HFILES_NO_SRCDIR): Add cleanups.h.
6884 (COMMON_OBS): Add cleanups.o.
6885 * defs.h (struct cleanup): Moved to cleanups.h.
6886 (do_cleanups,do_final_cleanups): Ditto.
6887 (discard_cleanups,discard_final_cleanups): Ditto
6888 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6889 (save_cleanups,save_final_cleanups): Ditto.
6890 (restore_cleanups,restore_final_cleanups): Ditto.
6891 (null_cleanup): Ditto.
6892 (make_my_cleanup,make_my_cleanup2): Ditto.
6893 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6894 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6895 (do_cleanups,do_final_cleanups): Ditto.
6896 (discard_cleanups,discard_final_cleanups): Ditto
6897 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6898 (save_cleanups,save_final_cleanups): Ditto.
6899 (restore_cleanups,restore_final_cleanups): Ditto.
6900 (null_cleanup): Ditto.
6901 (make_my_cleanup,make_my_cleanup2): Ditto.
6902 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6903
e0088cfd
DE
6904 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6905 make_my_cleanup.
6906 (make_cleanup_dyn_string_delete): Ditto.
6907 (make_cleanup_ui_file_delete): Ditto.
6908 (make_cleanup_ui_out_redirect_pop): Ditto.
6909 (make_cleanup_free_section_addr_info): Ditto.
6910 (make_cleanup_restore_integer): Ditto.
6911 (make_cleanup_unpush_target): Ditto.
6912 (make_cleanup_value_free_to_mark): Ditto.
6913 (make_cleanup_value_free): Ditto.
6914 (make_cleanup_free_so): Ditto.
6915
4dc84fd1
JK
69162012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6917
6918 New option "set debug auto-load".
6919 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6920 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6921 (auto_load_safe_path_vec_update)
6922 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6923 if DEBUG_AUTO_LOAD.
6924 (file_is_auto_load_safe): New parameters debug_fmt and ....
6925 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6926 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6927 caller by explanatory string.
6928 (_initialize_auto_load): Register "set debug auto-load".
6929 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6930 and ....
6931 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6932 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6933 by explanatory string.
6934 * main.c (captured_main): Likewise.
6935 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6936 (source_section_scripts): Likewise.
6937
bccbefd2
JK
69382012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6939
6940 New option "set auto-load safe-path".
6941 * NEWS: New commands "set auto-load safe-path"
6942 and "show auto-load safe-path".
6943 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6944 (auto_load_safe_path, auto_load_safe_path_vec)
6945 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6946 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6947 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6948 (source_gdb_script_for_objfile): New variable is_safe. Call
6949 file_is_auto_load_safe. Return if it is not.
6950 (struct loaded_script): New field loaded.
6951 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6952 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6953 output "Missing" to "No".
6954 (_initialize_auto_load): New variable cmd. Initialize
6955 auto_load_safe_path. Register "set auto-load safe-path",
6956 "show auto-load safe-path" and "add-auto-load-safe-path".
6957 * auto-load.h (maybe_add_script): Add parameter loaded.
6958 (file_is_auto_load_safe): New declaration.
6959 * config.in: Regenerate.
6960 * configure: Regenerate.
6961 * configure.ac: New parameters --with-auto-load-safe-path
6962 and --without-auto-load-safe-path.
6963 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6964 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6965 * main.c (captured_main): Check file_is_auto_load_safe for
6966 LOCAL_GDBINIT.
6967 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6968 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6969 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6970 not.
6971
bf88dd68
JK
69722012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6973
6974 auto-load: Implementation.
6975 * NEWS: New descriptions for "info auto-load",
6976 "info auto-load gdb-scripts", "info auto-load python-scripts",
6977 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6978 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6979 and "show auto-load-scripts". New description for "set auto-load",
6980 "show auto-load", "set auto-load gdb-scripts",
6981 "show auto-load gdb-scripts", "set auto-load python-scripts",
6982 "show auto-load python-scripts", "set auto-load local-gdbinit",
6983 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6984 "show auto-load libthread-db".
6985 * auto-load.c: Remove include python/python-internal.h. Add includes
6986 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6987 cli/cli-setshow.h.
6988 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6989 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6990 (gdbpy_global_auto_load): Rename to ...
6991 (global_auto_load): ... here.
6992 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6993 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6994 (script_language_gdb, source_gdb_script_for_objfile): New.
6995 (struct loaded_script): New field language.
6996 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6997 LANGUAGE.
6998 (maybe_add_script): Add parameter language. Drop redundant
6999 entry.full_path initialization. Initialize entry.language and
7000 (*slot)->language.
7001 (auto_load_objfile_script): Change parameter suffix to language.
7002 Remove the call of maybe_add_script.
7003 Call language->source_script_for_objfile.
7004 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7005 New.
7006 (collect_matching_scripts): Adjust it for
7007 struct collect_matching_scripts_data.
7008 (auto_load_info_scripts_pattern_nl): New variable.
7009 (info_auto_load_scripts): Rename to ...
7010 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7011 for struct collect_matching_scripts_data.
7012 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7013 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7014 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7015 (auto_load_info_cmdlist_get): New.
7016 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7017 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7018 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7019 "info auto-load local-gdbinit".
7020 * auto-load.h (struct script_language): New.
7021 (gdbpy_global_auto_load): Rename to ...
7022 (global_auto_load): ... here.
7023 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7024 (auto_load_local_gdbinit_loaded): New declarations.
7025 (maybe_add_script): New parameter language.
7026 (auto_load_objfile_script): Change parameter suffix to language.
7027 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7028 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7029 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7030 declarations.
7031 * linux-thread-db.c: Include auto-load.h and ctype.h.
7032 (auto_load_thread_db, show_auto_load_thread_db): New.
7033 (struct thread_db_info): New field filename.
7034 (delete_thread_db_info): Call xfree for FILENAME.
7035 (try_thread_db_load): Initialize FILENAME.
7036 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7037 if !AUTO_LOAD_THREAD_DB.
7038 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7039 (_initialize_thread_db): Install auto_load_thread_db
7040 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7041 as "info auto-load libthread-db".
7042 * main.c (captured_main): Rename gdbpy_global_auto_load to
7043 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7044 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7045 (print_gdb_help): Extend the help for 'local init file'.
7046 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7047 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7048 (auto_load_scripts): Rename to ...
7049 (auto_load_python_scripts): ... here, update the comment.
7050 (gdbpy_load_auto_script_for_objfile): New declaration.
7051 (show_auto_load_python_scripts, script_language_python)
7052 (gdbpy_load_auto_script_for_objfile): New.
7053 (source_section_scripts): Refactor the code.
7054 (load_auto_scripts_for_objfile): Rename to ...
7055 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7056 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7057 (info_auto_load_python_scripts): New.
7058 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7059 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7060 Register "set auto-load-scripts" as its deprecated alias. Register
7061 "info auto-load python-scripts". Register "info auto-load-scripts" as
7062 its deprecated alias.
7063 (load_auto_scripts_for_objfile): Rename to ...
7064 (gdbpy_load_auto_scripts_for_objfile): ... here.
7065 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7066 (gdbpy_load_auto_scripts_for_objfile): ... here.
7067
e2207b9a
JK
70682012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7069
7070 auto-load: Move files.
7071 * Makefile.in (SFILES): Add auto-load.c.
7072 (HFILES_NO_SRCDIR): Add auto-load.h.
7073 (COMMON_OBS): Add auto-load.o.
7074 (distclean): Change .gdbinit for gdb-gdb.gdb.
7075 * auto-load.c: New file, with parts from python/py-auto-load.c.
7076 * auto-load.h: New file, with parts from python/python.h.
7077 * configure: Regenerate.
7078 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7079 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7080 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7081 * main.c: Include auto-load.h.
7082 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7083 command.h, observer.h and progspace.h to auto-load.c. Add include
7084 auto-load.h.
7085 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7086 (struct loaded_script, auto_load_pspace_data)
7087 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7088 (hash_loaded_script_entry, eq_loaded_script_entry)
7089 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7090 (maybe_add_script): Move to auto-load.c.
7091 (source_section_scripts): Change maybe_add_script parameters passing,
7092 use script_not_found_warning_print.
7093 (clear_section_scripts, auto_load_objfile_script)
7094 (auto_load_new_objfile, loaded_script_ptr)
7095 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7096 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7097 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7098 auto_load_new_objfile and info_auto_load_scripts initizations to
7099 auto-load.c.
7100 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7101
e4ab2fad
JK
71022012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7103
7104 Code cleanup.
7105 * charset.c (find_charset_names): Remove variables ix and elt.
7106 Use free_char_ptr_vec.
7107 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7108 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7109 debugdir_end. New variable debugdir_len.
7110 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7111 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7112 declarations.
7113 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7114 and elt. Use free_char_ptr_vec.
7115 * source.c (add_path): Remove variables argv, arg and argv_index.
7116 New variables dir_vec, back_to, ix and name.
7117 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7118 make_cleanup_freeargv. Remove variable separator. Simplify the code
7119 no longer expecting DIRNAME_SEPARATOR.
7120 (openp): Remove variable p, p1 and len. New variables dir_vec,
7121 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7122 no longer expecting DIRNAME_SEPARATOR.
7123 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7124 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7125 debugdir_end.
7126 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7127 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7128 (dirnames_to_char_ptr_vec): New functions.
7129
5ee4ed9f
JK
71302012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7131
7132 Code cleanup.
7133 * source.c (add_path): Remove always true conditional 'p == 0' and
7134 unindent its code block.
7135
f41f5e61
PA
71362012-04-17 Pedro Alves <palves@redhat.com>
7137
7138 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7139 (FIELD_BITPOS_LVAL): ... this.
7140 (FIELD_BITPOS): New.
7141 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7142 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7143 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7144 SET_FIELD_BITPOS.
7145 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7146 SET_FIELD_BITPOS.
7147 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7148 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7149 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7150 SET_FIELD_BITPOS.
7151
945b3a32
JK
71522012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7153
7154 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7155 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7156 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7157 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7158 * jv-lang.c (java_link_class_type): Likewise, once.
7159 * stabsread.c (read_enum_type): Likewise.
7160
42476b70
YQ
71612012-04-16 Yao Qi <yao@codesourcery.com>
7162
7163 * common/agent.c (agent_run_command): Add one more parameter `len'.
7164 Update callers.
7165 * common/agent.h: Update declaration.
7166 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7167 Update.
7168 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7169
8264ba82
AG
71702012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7171
7172 PR mi/13393
7173 * value.c (value_actual_type): New function.
7174 * value.h (value_actual_type): New declaration.
7175 * varobj.c (update_type_if_necessary): New function.
7176 (varobj_create): Call value_actual_type instead of
7177 value_type.
7178 (install_dynamic_child): distinct changed and type changed MI variable
7179 objects.
7180 (update_dynamic_varobj_children): Updated for install_dynamic_child
7181 change. All callers updated.
a09130f9 7182 (varobj_update): Support for MI variable object type change if
8264ba82
AG
7183 the value changed and RTTI is used to determine the type.
7184 (create_child_with_value): Call value_actual_type instead of
7185 value_type.
a09130f9 7186 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
7187 specify whether the given value should be casted to enclosing type.
7188 All callers updated.
7189
55a8c076
YQ
71902012-04-14 Yao Qi <yao@codesourcery.com>
7191
7192 Import gnulib module inttypes from git
7193 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7194 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
7195 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7196 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
7197 * aclocal.m4, config.in, configure: Regenerated.
7198 * gnulib/Makefile.am: Update.
7199 * gnulib/Makefile.in: Update.
7200 * gnulib/m4/gnulib-cache.m4: Update.
7201 * gnulib/m4/gnulib-comp.m4: Update.
7202 * gnulib/inttypes.in.h: New.
7203 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 7204 * gnulib/m4/inttypes.m4: New.
55a8c076 7205
ca7781d2
LM
72062012-04-13 Luis Machado <lgustavo@codesourcery.com>
7207
7208 * infrun.c (resume): Update PC address to the real PC after
7209 preparing to do displaced stepping.
7210
e319fa28
DE
72112012-04-12 Doug Evans <dje@google.com>
7212
7213 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7214 All callers updated.
7215
15add3f5
MK
72162012-04-12 Mark Kettenis <kettenis@gnu.org>
7217
7218 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7219
52dc124a
DE
72202012-04-12 Doug Evans <dje@google.com>
7221
0e50663e
DE
7222 * dwarf2read.c (create_all_type_units): Renamed from
7223 create_debug_types_hash_table. All callers updated.
7224
52dc124a
DE
7225 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7226 local type_sig to sig_type, type_offset to type_offset_in_tu.
7227 (hash_signatured_type): Renamed from hash_type_signature,
7228 all callers updated.
7229 (eq_signatured_type): Renamed from eq_type_signature,
7230 all callers updated.
7231 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7232 (process_enumeration_scope): Ditto.
7233 (lookup_signatured_type_at_offset): Ditto.
7234 (load_full_type_unit, read_signatured_type): Ditto.
7235
248fd3bf
YQ
72362012-04-12 Yao Qi <yao@codesourcery.com>
7237
7238 * remote.c (async_remote_interrupt): Correct function name in
7239 debug message.
7240 (async_remote_interrupt_twice): Ditto.
7241
bc3aa6c3
DE
72422012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7243
7244 * source.c (find_and_open_source): Consistently pass resulting
7245 full path through xfullpath.
7246
9e529e1d
JK
72472012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7248
7249 Provide more specific displaced-stepping memory error message.
7250 * infrun.c (displaced_step_prepare): New variable status. Call
7251 target_read_memory instead of read_memory, provide more specific
7252 error message.
7253
82e0cec1
TG
72542012-04-11 Tristan Gingold <gingold@adacore.com>
7255
7256 PR gdb/13901
7257 * darwin-nat.c (darwin_execvp): Revert previous patch.
7258
d987a266
TG
72592012-04-11 Tristan Gingold <gingold@adacore.com>
7260
7261 PR gdb/13901
7262 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7263 in case of change.
7264
016b7430
TG
72652012-04-11 Tristan Gingold <gingold@adacore.com>
7266
7267 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7268 warning.
7269
06fc020f
SCR
72702012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7271
7272 New command 'explore' which helps explore values and types in
7273 scope.
7274 * NEWS: Add an entry about the new 'explore' command.
7275 * data-directory/Makefile.in: Add gdb/command/explore.py
7276 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7277 command using the GDB Python API.
06fc020f 7278
de0919f8 72792012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7280
7281 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7282 extension in jump target calculation.
7283
de0919f8 72842012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7285
7286 * mips-tdep.c (mips32_next_pc): Handle JALX.
7287
2f26ef89
YQ
72882012-04-10 Yao Qi <yao@codesourcery.com>
7289
7290 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7291
2e505b66
YQ
72922012-04-10 Yao Qi <yao@codesourcery.com>
7293
7294 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7295 and gnulib/m4/gnulib-tool.m4.
7296
0d99eb77
DE
72972012-04-10 Doug Evans <dje@google.com>
7298
7299 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7300 (load_partial_dies): Clarify comment.
7301 (find_partial_die): Support rereading type units.
7302 Clarify CU handling, if we know offset is in CU, don't search for the
7303 containing CU. Add comment regarding memory waste.
7304
9a82b8ff
L
73052012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7306
7307 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7308 i386/x32-avx and i386/x32-avx-linux.
7309 (i386/x32-expedite): New.
7310 (i386/x32-linux-expedite): Likewise.
7311 (i386/x32-avx-expedite): Likewise.
7312 (i386/x32-avx-linux-expedite): Likewise.
7313 ($(outdir)/i386/x32.dat): Likewise.
7314 ($(outdir)/i386/x32-linux.dat): Likewise.
7315 ($(outdir)/i386/x32-avx.dat): Likewise.
7316 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7317
7318 * features/i386/x32-avx-linux.xml: New file.
7319 * features/i386/x32-avx.xml: Likewise.
7320 * features/i386/x32-core.xml: Likewise.
7321 * features/i386/x32-linux.xml: Likewise.
7322 * features/i386/x32.xml: Likewise.
7323
7324 * features/i386/x32-avx-linux.c: New. Generated.
7325 * features/i386/x32-avx.c: Likewise.
7326 * features/i386/x32-linux.c: Likewise.
7327 * features/i386/x32.c: Likewise.
7328 * regformats/i386/x32-avx-linux.dat: Likewise.
7329 * regformats/i386/x32-avx.dat: Likewise.
7330 * regformats/i386/x32-linux.dat: Likewise.
7331 * regformats/i386/x32.dat: Likewise.
7332
ee41036f
TG
73332012-04-10 Tristan Gingold <gingold@adacore.com>
7334
7335 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7336 code to kill the inferior.
7337
a7aa5b8a
MK
73382012-04-09 Mark Kettenis <kettenis@gnu.org>
7339
7340 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7341 defines.
7342 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7343 defines.
a09130f9 7344 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7345 (yyvsp): New defines.
7346 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7347 defines.
7348 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7349 defines.
7350 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7351 defines.
7352 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7353 defines.
7354 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7355 defines.
7356
fb57d452
MK
73572012-04-09 Mark Kettenis <kettenis@gnu.org>
7358
a09130f9 7359 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7360 (sparc64_store_arguments): Fix coding style.
7361
cdc7b32f
MK
73622012-04-07 Mark Kettenis <kettenis@gnu.org>
7363
7364 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7365 complex floats, adjust some related comments and tighten a related
7366 assertion.
7367 (sparc64_extract_return_value): Handle complex floats.
7368
7adf1e79
DE
73692012-04-07 Doug Evans <dje@google.com>
7370
7371 * dwarf2read.c (load_partial_dies): Change condition to assert.
7372
50f1ae7b
DE
73732012-04-06 Doug Evans <dje@google.com>
7374
7375 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7376 "mov %rsp,%rbp".
7377
55fa75c3
KB
73782012-04-05 Kevin Buettner <kevinb@redhat.com>
7379
7380 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7381 fencepost error.
7382 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7383 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7384 architecture.
7385
40e084e1
KS
73862012-04-05 Keith Seitz <keiths@redhat.com>
7387
7388 * linespec.c (decode_compound): Remove.
7389 (enum offset_relative_sign): New enum.
7390 (struct line_offset): New struct.
7391 (struct linespec): New struct.
7392 (struct linespec_state): Move file_symtabs,
7393 user_filename, and user_function into struct linespec.
7394 Make result an anonymous struct holding vectors of
7395 symbolp and minsym_and_objfile_d.
7396 Add language member.
7397 (enum ls_token_type): New enum.
7398 (linespec_keywords): New array.
7399 (struct ls_token): New struct.
7400 (struct ls_parser): New struct.
7401 (linespec_lexer_lex_number): New function.
7402 (linespec_lexer_lex_keyword): New function.
7403 (is_ada_operator): New function.
7404 (skip_quote_char): New function.
7405 (copy_token_string): New function.
7406 (is_closing_quote_enclosed): New function.
7407 (find_parameter_list_end): New function.
7408 (linespec_lexer_lex_string): New function.
7409 (linespec_lexer_lex_one): New function.
7410 (linespec_lexer_consume_token): New function.
7411 (linespec_lexer_peek_token): New function.
7412 (cplusplus_error): Remove unused function.
7413 (find_methods): Update comment.
7414 (find_toplevel_char): Return const.
7415 (is_objc_method_format): Remove unused function.
7416 (find_toplevel_string): New function.
7417 (is_linespec_boundary): Remove.
7418 (symbol_not_found_error): New function.
7419 (find_method_overload_end): Remove function.
7420 (unexpected_linespec_error): New function.
7421 (keep_name_info): Remove.
7422 (linespec_parse_line_offset): New function.
7423 (linespec_parse_basic): New function.
7424 (canonicalize_linespec): New function.
7425 (decode_line_internal): Remove.
7426 (create_sals_line_offset): New function adapted from
7427 decode_all_digits.
7428 (convert_linespec_to_sals): New function.
7429 (parse_linespec): New function.
7430 (linespec_parser_new): New function.
7431 (linespec_state_destructor): Change parameter type to
7432 struct linespec_state *.
7433 Add language parameter.
7434 Remove freeing of moved members.
7435 (linespec_parser_delete): New function.
7436 (decode_line_full): Use parse_linespec and linespec_parser_new.
7437 (decode_line_1): Likewise.
7438 (decode_indirect): Rename to ...
7439 (linespec_expression_to_pc): ... this and rewrite
7440 to simply find CORE_ADDR, storing this result for later
7441 conversion to SALs.
7442 (locate_first_half): Remove.
7443 (deocde_objc): Add parameter LS.
7444 Initialize new struct collect_info members.
7445 Handle minimal symbols, too.
7446 (decode_compound): Delete.
7447 (lookup_prefix_sym): Rewrite.
7448 (compare_msymbols): New function.
7449 (find_method): Rewrite.
7450 Do not call cplusplus_error.
7451 (symtabs_from_filename): Rewrite.
7452 (collect_function_symbols): Delete.
7453 (find_function_symbols): Rewrite without ARGPTR-style
7454 processing.
7455 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7456 (decode_dollar): Adapted and renamed to ...
7457 (linespec_parse_variable): ... this.
7458 (find_linespec_symbols): New function.
7459 (decode_label): Adapted and renamed to ...
7460 (find_label_symbols): ... this.
7461 (decode_digits_list_mode): Add and use LS argument.
7462 (decode_digits_ordinary): Likewise.
7463 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7464 If in list mode, allow any symbol class. Otherwise, only
7465 permit LOC_BLOCK symbols.
7466 (minsym_found): Update comments.
7467 (search_minsyms_for_name): Do not convert the matching symbol
7468 into a SAL. Simply push the symbol and objfile into the
7469 result vector.
7470 (decode_variable): Delete. Contents adapted into
7471 find_linespec_symbols.
7472
7473 * cp-support.c (SKIP_SPACE): Remove.
7474 (operator_tokens): Remove unused global.
7475 (cp_validate_operator): Remove.
7476 * cp-support.h (cp_validate_operator): Remove declaration.
7477
a72c8f6a
JK
74782012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7479
7480 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7481 for TYPE_VPTR_FIELDNO.
7482 * valprint.c (valprint_check_validity): Make it global, move the
7483 function comment ...
7484 * value.h (valprint_check_validity): ... to this new declaration.
7485
cf9bb588
TG
74862012-04-02 Tristan Gingold <gingold@adacore.com>
7487
7488 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7489 the STATE32 api for i386 state.
7490 (i386_darwin_store_inferior_registers): Likewise.
7491
17092398
TG
74922012-04-02 Tristan Gingold <gingold@adacore.com>
7493
7494 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7495 SS offset.
7496 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7497 format_string.
7498
ece0061f
TG
74992012-04-02 Tristan Gingold <gingold@adacore.com>
7500
7501 PR gdb/13901
d987a266 7502 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7503
cf65ecd3
JK
75042012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7505
7506 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7507
9bc3523d
TT
75082012-03-30 Tom Tromey <tromey@redhat.com>
7509
7510 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7511 of TRY_CATCH. Fix error handling.
7512 * python/py-value.c (convert_value_from_python): Move 'old'
7513 declaration to innermost scope.
7514
b1ed564a
JB
75152012-03-29 Joel Brobecker <brobecker@adacore.com>
7516 Andrey Smirnov <andrew.smirnov@gmail.com>
7517
7518 -Wshadow warning fix.
7519 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7520 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7521 Adjust code accordingly.
7522
cb8e9b97
JB
75232012-03-29 Joel Brobecker <brobecker@adacore.com>
7524
7525 * ada-lang.c (symbol_completion_add): Rename parameter
7526 "encoded" into "encoded_p". Ajust code and documentation
7527 accordingly.
7528
c0af1706
JB
75292012-03-29 Joel Brobecker <brobecker@adacore.com>
7530 Andrey Smirnov <andrew.smirnov@gmail.com>
7531
7532 -Wshadow warning fix.
7533 * ada-lang.c (symbol_completion_add): Rename parameter
7534 "wild_match" into wild_match_p. Update code and documentation
7535 accordingly.
7536
6ea35997
JB
75372012-03-29 Joel Brobecker <brobecker@adacore.com>
7538
7539 * ada-lang.c (symbol_completion_match): Rename parameter
7540 "encoded" into "encoded_p". Ajust code and documentation
7541 accordingly.
7542
e701b3c0
JB
75432012-03-29 Joel Brobecker <brobecker@adacore.com>
7544 Andrey Smirnov <andrew.smirnov@gmail.com>
7545
7546 -Wshadow warning fix.
7547 * ada-lang.c (symbol_completion_match): Rename parameter
7548 "wild_match" into "wild_match_p". Adjust code and function
7549 documentation accordingly.
7550
5e2336be
JB
75512012-03-29 Joel Brobecker <brobecker@adacore.com>
7552 Andrey Smirnov <andrew.smirnov@gmail.com>
7553
7554 -Wshadow warning fix.
7555 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7556 "symbol_info" into "info". Adjust code accordingly.
7557 (ada_lookup_symbol): Likewise.
7558
9f88c959
JB
75592012-03-29 Joel Brobecker <brobecker@adacore.com>
7560
7561 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7562 of this function's documentation.
7563
82ccd55e
JB
75642012-03-29 Joel Brobecker <brobecker@adacore.com>
7565 Andrey Smirnov <andrew.smirnov@gmail.com>
7566
7567 -Wshadow warning fix.
7568 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7569 variable into "wild_match_p". Adjust code accordingly.
7570
d0a8ab18
JB
75712012-03-29 Joel Brobecker <brobecker@adacore.com>
7572 Andrey Smirnov <andrew.smirnov@gmail.com>
7573
7574 -Wshadow warning fix.
7575 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7576 parameter into "wild_match_p". Adjust code accordingly.
7577 Document this parameter in the function description.
7578
48b78332
JB
75792012-03-29 Joel Brobecker <brobecker@adacore.com>
7580 Andrey Smirnov <andrew.smirnov@gmail.com>
7581
7582 -Wshadow warning fix.
7583 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7584 "wild_match" parameter to "wild_match_p" (-Wshadow).
7585
2e6e0353
JB
75862012-03-29 Joel Brobecker <brobecker@adacore.com>
7587
7588 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7589 in function documentation.
7590
dc4024cd
JB
75912012-03-29 Joel Brobecker <brobecker@adacore.com>
7592 Andrey Smirnov <andrew.smirnov@gmail.com>
7593
7594 -Wshadow warning fix.
7595 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7596 variable into wild_match_p. Adjust code accordingly.
7597
6c88661c
JB
75982012-03-29 Joel Brobecker <brobecker@adacore.com>
7599 Andrey Smirnov <andrew.smirnov@gmail.com>
7600
7601 * ada-valprint.c (ada_val_print_1): Move the code handling
7602 TYPE_CODE_ENUM inside its own lexical block. Declare
7603 variables len and val there, instead of in the function's
7604 top level block. Avoid declaring deref_val again in a way
7605 that shadows another variable of the same name declared
7606 in one of the up-level blocks. Just re-use the up-level
7607 variable instead.
7608
4e5c77fe
JB
76092012-03-29 Joel Brobecker <brobecker@adacore.com>
7610
7611 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7612 Replace block_found argument by symbol_info. Adjust
7613 implementation accordingly. Add function documentation.
7614 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7615 Fix documentation.
7616 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7617 * ada-exp.y (write_object_renaming): Adjust to new
7618 ada_lookup_encoded_symbol API.
7619
1c0ac8c7
JB
76202012-03-29 Joel Brobecker <brobecker@adacore.com>
7621
7622 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7623 documentation.
7624
2aaed979
KB
76252012-03-28 Rathish C <rathish.c@kpitcummins.com>
7626
7627 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7628 (v850_register_name): Add the mpu and fpu register names.
7629 (v850e_register_name): Add the mpu and fpu register names.
7630 (v850e2_register_name): New function.
a09130f9 7631 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7632 bfd_mach_v850e2v3.
7633
927fbba6
JB
76342012-03-28 Joel Brobecker <brobecker@adacore.com>
7635
7636 * NEWS: Add entry for Ada varobj support.
7637
d32cafc7
JB
76382012-03-28 Joel Brobecker <brobecker@adacore.com>
7639
7640 * varobj.c (default_value_is_changeable_p): New function,
7641 extracted from varobj_value_is_changeable_p. Add declaration.
7642 (ada_value_is_changeable_p): New function, extracted from
7643 varobj_value_is_changeable_p. Add declaration.
7644 (struct language_specific): New field "value_is_changeable_p".
7645 (languages): Add entries for new field.
7646 (varobj_create): Set language before calling install_new_value.
7647 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7648 "value_is_changeable_p" language callback.
7649
181875a4
JB
76502012-03-28 Joel Brobecker <brobecker@adacore.com>
7651
7652 * ada-varobj.h, ada-varobj.c: New files.
7653 * Makefile.in (SFILES): Add ada-varobj.c.
7654 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7655 (COMMON_OBS): Add ada-varobj.o.
7656
7a290c40
JB
76572012-03-28 Joel Brobecker <brobecker@adacore.com>
7658
7659 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7660 (struct language_specific): New field "value_has_mutated".
7661 (languages): Set field "value_has_mutated" in each entry of array.
7662 (varobj_value_has_mutated): New function.
7663 (varobj_udpdate): Add handling of type mutation.
7664 (value_of_root): Add handling of type mutation.
7665 (ada_value_has_mutated): New function.
7666
ca9b8b9c
PA
76672012-03-28 Pedro Alves <palves@redhat.com>
7668
7669 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7670 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7671
cc0265cd
TT
76722012-03-28 Tom Tromey <tromey@redhat.com>
7673
7674 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7675 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7676 before returning.
7677
3ad2ec6f
TT
76782012-03-28 Tom Tromey <tromey@redhat.com>
7679
7680 * .dir-locals.el: New file.
7681
4a6510ba
PA
76822012-03-28 Pedro Alves <palves@redhat.com>
7683
7684 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7685
5a75128f
JB
76862012-03-28 Joel Brobecker <brobecker@adacore.com>
7687
7688 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7689 handling for r0.
7690
f99d8bf4
PA
76912012-03-27 Pedro Alves <palves@redhat.com>
7692
7693 Eliminate struct ui_stream.
7694
7695 * ui-out.h (struct ui_stream): Delete.
7696 (ui_out_field_stream): Adjust prototype.
7697 (ui_out_stream_new, ui_out_stream_delete)
7698 (make_cleanup_ui_out_stream_delete): Delete declarations.
7699 * ui-out.c (ui_out_field_stream): Change prototype to take a
7700 ui_file instead of a ui_stream. Adjust.
7701 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7702 (make_cleanup_ui_out_stream_delete): Delete.
7703 * breakpoint.c (print_breakpoint_location)
7704 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7705 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7706 * disasm.c (dump_insns): Ditto.
7707 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7708 prototype.
7709 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7710 ui_stream/ui_out_stream_new.
7711 * infcmd.c (print_return_value): Ditto.
7712 * osdata.c (info_osdata_command): Don't allocate a local
7713 ui_stream.
7714 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7715 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7716 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7717 allocate a local ui_stream.
7718 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7719 instead of ui_stream/ui_out_stream_new.
7720 (list_args_or_locals): Don't allocate a local ui_stream.
7721 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7722 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7723 ui_stream/ui_out_stream_new.
7724 * cli/cli-setshow.c (do_setshow_command): Ditto.
7725
6350a066 77262012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7727
6350a066
PA
7728 * arm-linux-tdep.c (arm_linux_init_abi): Call
7729 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7730 * arm-tdep.c (arm_process_record): New function.
7731 (deallocate_reg_mem): New function.
7732 (decode_insn): New function.
7733 (thumb_record_branch): New function.
7734 (thumb_record_ldm_stm_swi(): New function.
7735 (thumb_record_misc): New function.
7736 (thumb_record_ld_st_stack): New function.
7737 (thumb_record_ld_st_imm_offset): New function.
7738 (thumb_record_ld_st_reg_offset(): New function.
7739 (thumb_record_add_sub_cmp_mov): New function.
7740 (thumb_record_shift_add_sub): New function.
7741 (arm_record_coproc_data_proc): New function.
7742 (arm_record_coproc): New function.
7743 (arm_record_b_bl): New function.
7744 (arm_record_ld_st_multiple): New function.
7745 (arm_record_ld_st_reg_offset): New function.
7746 (arm_record_ld_st_imm_offset): New function.
7747 (arm_record_data_proc_imm): New function.
7748 (arm_record_data_proc_misc_ld_str): New function.
7749 (arm_record_extension_space): New function.
7750 (arm_record_strx): New function.
7751 (sbo_sbz): New function.
7752 (struct insn_decode_record): New structure for arm insn record.
7753 (REG_ALLOC): New macro for reg allocations.
7754 (MEM_ALLOC): New macro for memory allocations.
7755 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7756
89e028e2
AS
77572012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7758
7759 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7760 (store_register): Likewise.
7761
6350a066 77622012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7763
6350a066 7764 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7765
5b43fab2
JK
77662012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7767
7768 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7769 Describe also the option "auto".
7770
b5453b95
RH
77712012-03-22 Richard Henderson <rth@redhat.com>
7772
7773 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7774 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7775
227ee7fc
RH
77762012-03-22 Richard Henderson <rth@redhat.com>
7777
7778 * jit.c (jit_read_code_entry): Compute alignment and offset of
7779 int64_t member before computing entry_size.
7780
7b282c5a
SCR
77812012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7782
7783 Python scripting: Add new method Value.referenced_value to
7784 gdb.Value which can dereference pointer as well as reference
7785 values.
7786 * NEWS: Add entry under 'Python scripting' about the new method
7787 Value.referenced_value on gdb.Value objects.
7788 * python/py-value.c (valpy_referenced_value): New function
7789 defining a new method on gdb.Value objects which can dereference
7790 pointer and reference values.
7791
0c83539f
SCR
77922012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7793
7794 * MAINTAINERS (Write After Approval): Add myself to the list.
7795
7ccffd7c
KB
77962012-03-21 Kevin Buettner <kevinb@redhat.com>
7797
7798 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7799 in addition to "main".
7800
bd0b9f9e
JB
78012012-03-21 Joel Brobecker <brobecker@adacore.com>
7802
7803 * expression.h (op_name): Add declaration.
7804 * expprint.c (op_name): Remove declaration. Make non-static.
7805 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7806
a5362b9a
TS
78072012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7808
7809 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7810 of struct siginfo.
7811 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7812 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7813 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7814 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7815 (linux_nat_get_siginfo): Likewise.
7816 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7817 (linux_nat_get_siginfo): Likewise.
7818 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7819 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7820 * procfs.c (gdb_siginfo_t): Likewise.
7821
adcadaab
MF
78222012-03-21 Mike Frysinger <vapier@gentoo.org>
7823
7824 * .gitignore: Ignore more files.
7825
e278ad5b
PA
78262012-03-20 Pedro Alves <palves@redhat.com>
7827
7828 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7829 returns.
7830
741e63d7
YQ
78312012-03-20 Yao Qi <yao@codesourcery.com>
7832
7833 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7834 comment.
7835
b64f50a1
JK
78362012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7837
7838 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7839 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7840 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7841 sect_offset.
7842 * dwarf2expr.h (cu_offset, sect_offset): New types.
7843 (struct dwarf_expr_context_funcs) <dwarf_call>
7844 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7845 sect_offset.
7846 (struct dwarf_expr_context) <len>: Improve the comment.
7847 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7848 cu_offset and sect_offset.
7849 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7850 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7851 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7852 * dwarf2loc.h: Include dwarf2expr.h.
7853 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7854 and sect_offset.
7855 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7856 Improve the comment.
7857 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7858 (struct signatured_type, struct line_header, struct partial_die_info)
7859 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7860 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7861 (get_die_type_at_offset, create_cus_from_index)
7862 (create_signatured_type_table_from_index, dw2_get_file_names)
7863 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7864 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7865 (create_debug_types_hash_table, process_psymtab_comp_unit)
7866 (load_partial_comp_unit, create_all_comp_units)
7867 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7868 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7869 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7870 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7871 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7872 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7873 (find_partial_die, read_attribute_value, lookup_die_type)
7874 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7875 (is_ref_attr): New function comment.
7876 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7877 Use cu_offset and sect_offset.
7878 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7879 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7880 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7881 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7882 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7883 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7884 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7885 sect_offset.
7886
e97a38f7
JK
78872012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7888
7889 Code cleanup.
7890 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7891 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7892 with xfree.
7893 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7894
8320cc4f
JK
78952012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7896
7897 * NEWS: Describe new options --init-command=FILE, -ix and
7898 --init-eval-command=COMMAND, -iex.
7899 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7900 CMDARG_INIT_COMMAND.
7901 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7902 "init-command", "init-eval-command", "ix" and "iex" to the variable
7903 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7904 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7905 (print_gdb_help): Describe --init-command=FILE, -ix and
7906 --init-eval-command=COMMAND, -iex.
7907
26743505
JK
79082012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7909
7910 Code cleanup.
7911 * main.c (struct cmdarg): Move it here from main. Add more comments.
7912 (cmdarg_s, VEC (cmdarg_s)): New.
7913 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7914 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7915 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7916 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7917 of CMDARG.
7918
5ff5c7b4
TT
79192012-03-19 Tom Tromey <tromey@redhat.com>
7920
7921 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7922
ab260dad
JK
79232012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7924
7925 PR symtab/13777
7926 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7927 GCC >=4.5.
7928
c366c1f0
TT
79292012-03-16 Chris January <chris.january@allinea.com>
7930
7931 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7932 of clear.
7933
e16edb45
TT
79342012-03-16 Chris January <chris.january@allinea.com>
7935
7936 * source.c (add_path): Use memmove instead of strcpy because the
7937 strings overlap.
7938
53ba8333
JB
79392012-03-16 Joel Brobecker <brobecker@adacore.com>
7940
7941 * value.h (set_value_parent): Add declaration.
7942 * value.c (set_value_parent): New function.
7943 (value_address): If VALUE->PARENT is not NULL, then use it as
7944 the base address instead of VALUE->LOCATION.address.
7945 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7946 the same as OBJ's address. Adjust V's offset accordingly.
7947 Set V's parent.
7948
481860b3
GB
79492012-03-16 Gary Benson <gbenson@redhat.com>
7950
7951 PR breakpoints/10738
7952 * dwarf2read.c (use_deprecated_index_sections): New global.
7953 (struct partial_die_info): New member may_be_inlined.
7954 (read_partial_die): Set may_be_inlined where appropriate.
7955 (add_partial_subprogram): Add partial symbols for partial
7956 DIEs that may be inlined.
7957 (new_symbol_full): Add inlined subroutines to the current
7958 scope.
7959 (write_psymtabs_to_index): Bump version number.
7960 (dwarf2_read_index): Read only version 6 indices unless
7961 use_deprecated_index_sections is set.
7962 * linespec.c (symbol_and_data_callback): New structure.
7963 (iterate_inline_only): New function.
7964 (iterate_over_all_matching_symtabs): New argument
7965 "include_inline". If nonzero, also call the callback for
7966 symbols representing inlined subroutines.
7967 (lookup_prefix_sym): Pass extra argument to the above.
7968 (find_function_symbols): Likewise.
7969 (add_matching_symbols_to_info): Likewise.
7970 * NEWS: Mention that GDB can now set breakpoints on inlined
7971 functions.
7972
d0e7e15a
PM
79732012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7974
7975 * p-typeprint.c (pascal_type_print_method_args):
7976 Fix display of parameter of methods.
7977
3d354654
PM
79782012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7979
7980 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7981 Add missing prototype.
7982
cafe75b0
JK
79832012-03-16 Yao Qi <yao@codesourcery.com>
7984 Jan Kratochvil <jan.kratochvil@redhat.com>
7985
7986 Fix false compilation warning.
7987 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7988
25f8c692
JL
79892012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7990 Pedro Alves <pedro@codesourcery.com>
7991
7992 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7993 (arm_register_g_packet_guesses): New function.
7994 (arm_gdbarch_init): Don't force a target description with
7995 registers when the executable is detected as M-profile. Instead
7996 set gdbarch->tdep->is_m. Register `g' packet guesses.
7997 (_initialize_arm_tdep): Initialize the new target description.
7998 * features/arm-with-m-fpa-layout.xml: New description.
7999 * features/arm-with-m-fpa-layout.c: New, generated.
8000
35c63cd8
JB
80012012-03-15 Joel Brobecker <brobecker@adacore.com>
8002
8003 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8004 Update function description.
8005 (insert_bp_location): Do not wipe bl->target_info out.
8006 * mem-break.c: #include "gdb_string.h".
8007 (default_memory_insert_breakpoint): Do not call target_read_memory
8008 with a pointer to the breakpoint's shadow_contents buffer. Use
8009 a local buffer instead.
8010 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8011
57651221
TT
80122012-03-15 Tom Tromey <tromey@redhat.com>
8013
8014 * NEWS: Mention "info vtbl", not "info vtable".
8015 * cp-support.c (info_vtbl_command): Fix comment.
8016 (_initialize_cp_support): Fix text.
8017
410528f0
TT
80182012-03-15 Tom Tromey <tromey@redhat.com>
8019
8020 * cp-valprint.c (cp_print_value_fields): Use
8021 print_function_pointer_address for vtable slot.
8022
c4aeac85
TT
80232012-03-15 Tom Tromey <tromey@redhat.com>
8024
8025 * gnu-v3-abi.c (struct value_and_voffset): New.
8026 (hash_value_and_voffset, eq_value_and_voffset)
8027 (compare_value_and_voffset, compute_vtable_size)
8028 (print_one_vtable, gnuv3_print_vtable): New functions.
8029 (init_gnuv3_ops): Initialize 'print_vtable' field.
8030 * cp-support.c (info_vtbl_command): New function.
8031 (_initialize_cp_support): Add "info vtbl".
8032 * cp-abi.h (cplus_print_vtable): Declare.
8033 (struct cp_abi_ops) <print_vtable>: New field.
8034 * cp-abi.c (cplus_print_vtable): New function.
8035 * NEWS: Update.
8036
95cbceff
TT
80372012-03-15 Tom Tromey <tromey@redhat.com>
8038
8039 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8040 iterate_over_symbols.
8041
589b4a32
DE
80422012-03-14 Doug Evans <dje@google.com>
8043
8044 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8045 DW_OP_GNU_parameter_ref.
8046
e837f12a
JK
80472012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8048
8049 Fix double prompt of 'interpreter-exec mi'.
8050 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8051 (mi_interpreter_resume): use it.
8052 (mi_execute_command_input_handler): New function.
8053 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8054 mi_execute_command_input_handler.
8055
ff1e4526 80562012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8057
8058 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8059 prototype.
8060 (darwin_debug_port_info): Make static.
8061 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8062 * machoread.c (_initialize_machoread): Add prototype.
8063 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8064 (i386_darwin_set_control, i386_darwin_get_control)
8065 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8066 i386_darwin_get_status, i386_darwin_get_control):
8067 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8068
d8a5d6ee
JB
80692012-03-13 Joel Brobecker <brobecker@adacore.com>
8070
8071 * ax-gdb.c (gen_usual_unary): Remove special handling of
8072 enum and bool types.
8073
af381b8c
JB
80742012-03-13 Joel Brobecker <brobecker@adacore.com>
8075
8076 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8077
786c562f
JB
80782012-03-13 Joel Brobecker <brobecker@adacore.com>
8079
8080 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8081
e3ebf1bb
JB
80822012-03-13 Chris January <chris.january@allinea.com>
8083
8084 * aix-thread.c (fill_sprs): Store the floating point registers
8085 at the correct offsets into vals.
8086
c5b7e1cb
DE
80872012-03-13 Doug Evans <dje@google.com>
8088
16899756
DE
8089 * NEWS: Mention symbol-reloading has been deleted.
8090 * symfile.c (symbol_reloading): Delete.
8091 (show_symbol_reloading): Delete.
8092 (_initialize_symfile): Delete set/show symbol-reloading.
8093
c5b7e1cb
DE
8094 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8095 read_in_chain until we have successfully read it in.
8096 (load_full_comp_unit): Ditto.
8097 (read_signatured_type): Add comment.
8098
46cb6474
JB
80992012-03-13 Chris January <chris.january@allinea.com>
8100
8101 * stabsread.c (fix_common_block): Change type of valu argument
8102 to CORE_ADDR.
8103
76219d77
JB
81042012-03-13 Chris January <chris.january@allinea.com>
8105
8106 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8107 instruction.
8108
87b0bb13
JK
81092012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8110
8111 * common/linux-procfs.c (linux_proc_get_int): New, from
8112 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8113 field.
8114 (linux_proc_get_tgid): Only call linux_proc_get_int.
8115 (linux_proc_get_tracerpid): New.
8116 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8117 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8118 linux_proc_pid_has_state.
8119 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8120 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8121 (linux_ptrace_attach_warnings): New.
8122 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8123 New declaration.
8124 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8125 (linux_nat_attach): New variables ex, buffer, message and message_s.
8126 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8127
5f572dec
JK
81282012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8129
8130 * Makefile.in (linux-ptrace.o): New.
8131 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8132 from linux-nat.c.
8133 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8134 * common/linux-ptrace.c: New file.
8135 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8136 * config/arm/linux.mh: Likewise.
8137 * config/i386/linux.mh: Likewise.
8138 * config/i386/linux64.mh: Likewise.
8139 * config/ia64/linux.mh: Likewise.
8140 * config/m32r/linux.mh: Likewise.
8141 * config/m68k/linux.mh: Likewise.
8142 * config/mips/linux.mh: Likewise.
8143 * config/pa/linux.mh: Likewise.
8144 * config/powerpc/linux.mh: Likewise.
8145 * config/powerpc/ppc64-linux.mh: Likewise.
8146 * config/powerpc/spu-linux.mh: Likewise.
8147 * config/s390/s390.mh: Likewise.
8148 * config/sparc/linux.mh: Likewise.
8149 * config/sparc/linux64.mh: Likewise.
8150 * config/xtensa/linux.mh: Likewise.
8151 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8152 common/linux-procfs.c.
8153 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8154
44f238bb
PA
81552012-03-13 Hui Zhu <teawater@gmail.com>
8156 Pedro Alves <palves@redhat.com>
8157
8158 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8159 CREATE_BREAKPOINT_FLAGS_INSERTED.
8160 (create_breakpoint_sal, create_breakpoints_sal)
8161 (base_breakpoint_create_breakpoints_sal)
8162 (tracepoint_create_breakpoints_sal)
8163 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8164 down.
8165 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8166 (ftrace_command, strace_command): Adjust.
8167 (create_tracepoint_from_upload): Pass
8168 CREATE_BREAKPOINT_FLAGS_INSERTED.
8169 * breakpoint.h (enum breakpoint_create_flags): New.
8170 (create_breakpoint): New flags parameter.
8171 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8172 * python/py-breakpoint.c (bppy_init): Adjust.
8173 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8174 * spu-tdep.c (spu_catch_start): Adjust.
8175
1e51243a
PA
81762012-03-13 Pedro Alves <palves@redhat.com>
8177 Hui Zhu <teawater@gmail.com>
8178 Yao Qi <yao@codesourcery.com>
8179
8180 * remote.c (struct remote_state): New field `starting_up'.
8181 (remote_start_remote): Set and clear it.
8182 (remote_can_download_tracepoint): If starting up, return false.
8183
fa3064dd
YQ
81842012-03-13 Yao Qi <yao@codesourcery.com>
8185
8186 * inferior.h (struct inferior): Remove fields any_syscall_count,
8187 syscalls_counts and total_syscalls_count. Move them to new
8188 struct catch_syscall_inferior_data in breakpoint.c.
8189 * breakpoint.c: Call DEF_VEC_I(int).
8190 (struct catch_syscall_inferior_data): New.
8191 (get_catch_syscall_inferior_data): New.
8192 (catch_syscall_inferior_data_cleanup): New.
8193 (insert_catch_syscall): Update to access data in
8194 struct catch_syscall_inferior_data.
8195 (insert_catch_syscall): Likewise.
8196 (remove_catch_syscall): Likewise.
8197 (remove_catch_syscall): Likewise.
8198 (is_syscall_catchpoint_enabled): Likewise.
8199 (add_catch_command): Likewise.
8200 (_initialize_breakpoint): Register cleanup.
8201 * breakpoint.h: Removed DEF_VEC_I(int).
8202 * dwarf2loc.c: Call DEF_VEC_I(int).
8203 * mi/mi-main.c: Likewise.
8204
460fac3c
MK
82052012-03-12 Mark Kettenis <kettenis@gnu.org>
8206
8207 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8208
e1aca11e
JB
82092012-03-12 Chris January <chris.january@allinea.com>
8210
8211 * aix-thread.c (_initialize_aix_thread): Add prototype.
8212 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8213 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8214
649c7061
JB
82152012-03-12 Joel Brobecker <brobecker@adacore.com>
8216
8217 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8218 include of "amd64-nat.h".
8219
0b49e518
TT
82202012-03-12 Tom Tromey <tromey@redhat.com>
8221
8222 * buildsym.c (record_pending_block): Now static.
8223 * buildsym.h: (record_pending_block): Remove.
8224
fd24fa94
AT
82252012-03-12 Andreas Tobler <andreast@fgznet.ch>
8226
8227 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8228
ba919b58
TT
82292012-03-09 Tom Tromey <tromey@redhat.com>
8230
8231 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8232 producer_is_gxx_lt_4_6>: New fields.
8233 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8234
a48e046c
TT
82352012-03-09 Tom Tromey <tromey@redhat.com>
8236
8237 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8238
6f5e9362
JB
82392012-03-08 Joel Brobecker <brobecker@adacore.com>
8240
8241 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8242 prototype.
8243
8d037db9
JB
82442012-03-08 Joel Brobecker <brobecker@adacore.com>
8245
8246 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8247
4e841acf
JK
82482012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8249
8250 Fix -Wmissing-prototypes build.
8251 * arm-linux-nat.c (get_thread_id): Make it static.
8252 * xtensa-linux-nat.c (get_thread_id): Likewise.
8253
c6030312
JB
82542012-03-08 Joel Brobecker <brobecker@adacore.com>
8255
8256 * server.c (process_point_options): If a conditional expression
8257 is found, only print a message if remote_debug is nonzero.
8258
52323be9
LM
82592012-03-08 Luis Machado <lgustavo@codesourcery.com>
8260
8261 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8262 of internal error for unknown/unsupported types.
8263
7fe25d9b
JK
82642012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8265
8266 Fix CU relative vs. absolute DIE offsets.
8267 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8268 offset to offset_in_cu.
8269 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8270 TYPE_OFFSET.
8271 (dwarf2_fetch_die_location_block): Rename parameter offset to
8272 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8273
05e7c244
JK
82742012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8275
8276 * libunwind-frame.c: Rename to ...
8277 * ia64-libunwind-tdep.c: ... here.
8278 * libunwind-frame.h: Rename to ...
8279 * ia64-libunwind-tdep.h: ... here.
8280 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8281 ia64-libunwind-tdep.h.
8282 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8283 * README (--with-libunwind): Rename to ...
8284 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8285 * config.in: Regenerate.
8286 * configure: Regenerate.
8287 * configure.ac: New option --with-libunwind-ia64, make the
8288 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8289 Remove AC_DEFINE for HAVE_LIBUNWIND.
8290 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8291 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8292 Rename libunwind-frame in the general comment.
8293 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8294 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8295 Move forward declarations inside #ifndef. Rename libunwind-frame in
8296 the general comment.
8297 * ia64-tdep.c: Rename libunwind-frame.h #include to
8298 ia64-libunwind-tdep.h.
8299 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8300 (ia64_libunwind_descr): Rename libunwind-frame to
8301 ia64-libunwind-tdep in these function comments.
8302 * ia64-tdep.h: Rename libunwind-frame.h #include to
8303 ia64-libunwind-tdep.h.
8304 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8305 ia64-libunwind-tdep in that data comment.
8306
3755cbfd
JK
83072012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8308
8309 * libunwind-frame.h (struct frame_unwind): New declaration.
8310
d1cda5d9
JB
83112012-03-08 Joel Brobecker <brobecker@adacore.com>
8312
8313 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8314 "set breakpoint condition-evaluation" command.
8315
a0ba0aa2
TG
83162012-03-08 Tristan Gingold <gingold@adacore.com>
8317
8318 * sparc-stub.c: Move to stubs/
8319 * sh-stub.c: Likewise.
8320 * m68k-stub.c: Likewise.
8321 * m32r-stub.c: Likewise.
8322 * i386-stub.c: Likewise.
8323
7b8b6d6d
AS
83242012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8325
007cafee
AS
8326 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8327 linux_get_siginfo_type.
8328
7b8b6d6d
AS
8329 * m68klinux-nat.c: Include "gdb_proc_service.h".
8330 (PTRACE_GET_THREAD_AREA): Define.
8331 (ps_get_thread_area): New function.
8332
bba74b36
YQ
83332012-03-08 Yao Qi <yao@codesourcery.com>
8334
8335 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8336 `xsnprintf'.
8337 (remote_query_attached): Likewise.
8338 (remote_static_tracepoint_marker_at): Likewise.
8339 (remote_set_permissions): Likewise.
8340 (remote_detach_1, extended_remote_attach_1): Likewise.
8341 (send_g_packet, remote_vkill): Likewise.
8342 (extended_remote_disable_randomization): Likewise.
8343 (remote_add_target_side_condition): Likewise.
8344 (remote_insert_breakpoint): Likewise.
8345 (remote_remove_breakpoint): Likewise.
8346 (remote_insert_watchpoint): Likewise.
8347 (remote_remove_watchpoint): Likewise.
8348 (remote_insert_hw_breakpoint): Likewise.
8349 (remote_insert_hw_breakpoint): Likewise.
8350 (remote_remove_hw_breakpoint): Likewise.
8351 (remote_download_command_source): Likewise.
8352 (remote_download_tracepoint): Likewise.
8353 (remote_download_trace_state_variable): Likewise.
8354 (remote_disable_tracepoint): Likewise.
8355 (remote_trace_set_readonly_regions): Likewise.
8356 (remote_get_tracepoint_status): Likewise.
8357 (remote_trace_find): Likewise.
8358 (remote_get_trace_state_variable_value): Likewise.
8359 (remote_set_disconnected_tracing): Likewise.
8360 (remote_set_circular_trace_buffer): Likewise.
8361 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8362 (remote_use_agent): Likewise.
8363 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8364 Update callers.
8365
9b224c5e
PA
83662012-03-07 Pedro Alves <palves@redhat.com>
8367
8368 * NEWS: Mention QProgramSignals.
8369 * inferior.h (update_signals_program_target): Declare.
8370 * infrun.c: (update_signals_program_target): New.
8371 (handle_command): Update the target of the new program signals
8372 array changes.
8373 * remote.c (PACKET_QProgramSignals): New enum.
8374 (last_program_signals_packet): New global.
8375 (remote_program_signals): New.
8376 (remote_start_remote): Update the target with the program signals
8377 list.
8378 (remote_protocol_features): Add entry for QPassSignals.
8379 (remote_open_1): Free anc clear last_program_signals_packet.
8380 (init_remote_ops): Install remote_program_signals.
8381 * target.c (update_current_target): Adjust.
8382 (target_program_signals): New.
8383 * target.h (struct target_ops) <to_program_signals>: New field.
8384 (target_program_signals): Declare.
8385
74c48cbb
PA
83862012-03-07 Pedro Alves <palves@redhat.com>
8387
8388 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8389 extensions.
8390
0c13fc49
AS
83912012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8392
8393 * m68klinux-nat.c (getregs_supplies): Make static.
8394 (getfpregs_supplies): Likewise.
8395 (have_ptrace_getregs): Likewise.
8396
1281d2a3
JB
83972012-03-06 Joel Brobecker <brobecker@adacore.com>
8398
8399 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8400 in call to get_die_type_at_offset.
8401
2b03b41d
SS
84022012-03-06 Stan Shebs <stan@codesourcery.com>
8403
8404 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8405 * mi/mi-cmd-disas.c: Ditto.
8406 * mi/mi-cmd-env.c: Ditto.
8407 * mi/mi-cmd-file.c: Ditto.
8408 * mi/mi-cmd-stack.c: Ditto.
8409 * mi/mi-cmd-target.c: Ditto.
8410 * mi/mi-cmd-var.c: Ditto.
8411 * mi/mi-cmds.c: Ditto.
8412 * mi/mi-cmds.h: Ditto.
8413 * mi/mi-console.c: Ditto.
8414 * mi/mi-getopt.c: Ditto.
8415 * mi/mi-getopt.h: Ditto.
8416 * mi/mi-interp.c: Ditto.
8417 * mi/mi-main.c: Ditto.
8418 * mi/mi-out.c: Ditto.
8419 * mi/mi-parse.c: Ditto.
8420 * mi/mi-parse.h: Ditto.
8421 * mi/mi-symbol-cmds.c: Ditto.
8422
8423 * mi/mi-getopt.h: Move mi_opt struct up.
8424 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8425 return.
8426 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8427
c988ad87
TT
84282012-03-06 Tom Tromey <tromey@redhat.com>
8429
8430 * proc-service.c (ps_pglobal_lookup): Set the current program
8431 space.
8432
1b7c1b10
PA
84332012-03-06 Pedro Alves <palves@redhat.com>
8434
8435 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8436
3c182069
JB
84372012-03-05 Joel Brobecker <brobecker@adacore.com>
8438
8439 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8440
2e794194
JK
84412012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8442
8443 Code cleanup.
8444 * common/linux-osdata.c (linux_common_core_of_thread): New function
8445 comment.
8446 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8447 call by linux_common_core_of_thread.
8448 (linux_nat_core_of_thread_1): Remove.
8449 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8450 * linux-thread-db.c: Include linux-osdata.h.
8451 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8452 linux_common_core_of_thread.
8453
9f9f1f31
TT
84542012-03-05 Tom Tromey <tromey@redhat.com>
8455
8456 * value.c (value_primitive_field): Don't fetch contents for
8457 non-virtual bases.
8458
b7b189f3
TT
84592012-03-05 Tom Tromey <tromey@redhat.com>
8460
8461 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8462
05b8a789 84632012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8464
5538f557
JB
8465 * s390-nat.c: Include "gregset.h".
8466
75528772
JK
84672012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8468
8469 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8470 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8471 (libunwind_load): New variable so_error, use it for dlerror. Try to
8472 load also LIBUNWIND_SO_7.
8473
275418ae
PA
84742012-03-05 Pedro Alves <palves@redhat.com>
8475
8476 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8477 is not NULL, and remove resulting dead code.
8478
5cbb9812
TS
84792012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8480
8481 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8482 prologue to sh_analyze_prologue.
8483 (sh_analyze_prologue): Make better use of such an upper limit, and
8484 generally be more cautious about accessing memory.
8485
541515ad
TT
84862012-03-05 Tom Tromey <tromey@redhat.com>
8487
8488 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8489 _initialize_ia64_hpux_tdep.
8490
b4d36fb8
PA
84912012-03-05 Pedro Alves <palves@redhat.com>
8492
24490249
PA
8493 PR gdb/13766
8494
b4d36fb8
PA
8495 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8496 the register state is clear, supply explicit zero, instead of
8497 marking the register unavailable.
8498
60c9a3c0
TG
84992012-03-05 Tristan Gingold <gingold@adacore.com>
8500
8501 * NEWS: Mention OpenVMS ia64 new target.
8502
696759ad
TG
85032012-03-05 Tristan Gingold <gingold@adacore.com>
8504
8505 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8506 (ia64_unw_accessors, ia64_unw_rse_accessors)
8507 (ia64_libunwind_descr): Declare.
8508 * ia64-vms-tdep.c: New file.
8509 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8510 (ia64_libunwind_descr): Make them public.
8511 * configure.tgt: Add ia64-*-*vms*.
8512 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8513 (ALLDEPFILES): Add ia64-vms-tdep.c
8514
34864976
TG
85152012-03-05 Tristan Gingold <gingold@adacore.com>
8516
169081d0
TG
8517 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8518 * remote.c (PACKET_qXfer_uib): New enum value.
8519 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8520 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8521 (_initialize_remote): Call add_packet_config_cmd for
8522 xfer:uib packet.
8523
85242012-03-05 Tristan Gingold <gingold@adacore.com>
8525
8526 * osabi.c (gdb_osabi_names): Add OpenVMS.
8527 (generic_elf_osabi_sniffer): Likewise.
8528 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8529
6597b100
JK
85302012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8531
8532 Removed unused code.
8533 * libunwind-frame.c (libunwind_frame_unwind)
8534 (libunwind_frame_base_address): Remove.
8535 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8536
87399aa1
YQ
85372012-03-04 Yao Qi <yao@codesourcery.com>
8538
8539 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8540 remove trailing new line.
8541 (agent_run_command, agent_run_command): Add _ markup.
8542 (agent_capability_check): Likewise.
8543
abf1152a
JK
85442012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8545
8546 * breakpoint.c (set_condition_evaluation_mode): Set
8547 CONDITION_EVALUATION_MODE unconditionally.
8548
5808517f
YQ
85492012-03-03 Yao Qi <yao@codesourcery.com>
8550
8551 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8552 * common/agent.h: Update declaration.
8553 * inf-child.c (inf_child_use_agent): New.
8554 (inf_child_can_use_agent): New.
8555 (inf_child_target): Initialize fields `to_use_agent'
8556 and `to_can_use_agent'.
8557 * agent.c (agent_new_objfile): New.
89b7509a 8558 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8559 observer.
8560
8561 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8562 New.
89b7509a 8563 (linux_target_install_ops): Initialize field
5808517f
YQ
8564 `to_static_tracepoint_markers_by_strid'.
8565 * remote.c (free_current_marker): Move it to ...
8566 * tracepoint.c (free_current_marker): ... here. New.
8567 (cleanup_target_stop): New.
8568 * tracepoint.h: Declare free_current_marker.
8569 * NEWS: Add one entry about `info static-tracepoint-marker'.
8570
58b4daa5
YQ
85712012-03-03 Yao Qi <yao@codesourcery.com>
8572
8573 * common/agent.c (agent_loaded_p): New.
89b7509a 8574 (agent_look_up_symbols): New global.
58b4daa5
YQ
8575 * common/agent.h: Declare agent_loaded_p.
8576
8ffcbaaf
YQ
85772012-03-03 Yao Qi <yao@codesourcery.com>
8578
8579 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8580 (agent_capability_check, agent_capability_invalidate): New.
8581 (symbol_list): New array element.
8582 * common/agent.h (enum agent_capa): New.
8583 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8584
d1feda86
YQ
85852012-03-03 Yao Qi <yao@codesourcery.com>
8586
8587 * target.h (struct target_ops) <to_use_agent>: New field.
8588 (struct target_ops) <to_can_use_agent>: New field.
8589 (target_use_agent, target_can_use_agent): New macro.
8590 * target.c (update_current_target): Update.
8591 * remote.c: New enum `PACKET_QAgent'.
8592 (remote_protocol_features): Add a new element.
8593 (remote_use_agent, remote_can_use_agent): New.
8594 (init_remote_ops): Initialize field `can_use_agent' with
8595 remote_can_use_agent. Intiailize field `use_agent' with
8596 remote_use_agent.
8597 * common/agent.c (use_agent): New global.
8598 * common/agent.h: Declare it.
8599 * tracepoint.c (info_static_tracepoint_markers_command): Add
8600 comment.
8601 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8602 (COMMON_OBS): Add common/agent.o and agent.o
8603 (common-agent.o): New rule.
8604 * agent.c: New.
8605
2fa291ac
YQ
86062012-03-03 Yao Qi <yao@codesourcery.com>
8607
8608 * common/agent.c: New.
8609 * common/agent.h: New.
8610 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8611 AC_CHECK_HEADERS.
8612 * configure, configh.in: Regenerated.
8613
9fc05685
KB
86142012-03-02 Kevin Buettner <kevinb@redhat.com>
8615
8616 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8617 unless it exists for this architecture.
8618
a5ee536b
JB
86192012-03-02 Joel Brobecker <brobecker@adacore.com>
8620
8621 * language.h (struct language_defn): New "method" la_read_var_value.
8622 * findvar.c: #include "language.h".
8623 (default_read_var_value): Renames read_var_value. Rewrite
8624 function description.
8625 (read_var_value): New function.
8626 * value.h (default_read_var_value): Add prototype.
8627 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8628 New functions.
8629 (ada_language_defn): Add entry for la_read_var_value.
8630 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8631 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8632 language_defn structures to add entry for new la_read_var_value
8633 field.
8634
f59f708a
PA
86352012-03-02 Tom Tromey <tromey@redhat.com>
8636 Pedro Alves <palves@redhat.com>
8637
8638 PR breakpoints/13776:
8639 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8640 breakpoints.
8641 (delete_longjmp_breakpoint_at_next_stop): New.
8642 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8643 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8644 before deleting the inferior. Add comments.
8645 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8646 breakpoints immediately, but only on next stop. Move that code
8647 next to where we mark other breakpoints for deletion.
8648
44099a67
JB
86492012-03-02 Joel Brobecker <brobecker@adacore.com>
8650
8651 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8652 marker.
8653 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8654 violation.
8655
2a2ef594
PA
86562012-03-02 Pedro Alves <palves@redhat.com>
8657
8658 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8659
b261e0c5
UW
86602012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8661
8662 Fix -Wmissing-prototypes build.
8663 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8664 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8665 (gdbsim_has_memory): Likewise.
8666
a95babbf
YQ
86672012-03-02 Yao Qi <yao@codesourcery.com>
8668
8669 Fix -Wmissing-prototypes build.
8670 * charset.c (phony_iconv_open): Make static.
8671 (phony_iconv_close, phony_iconv): Likewise.
8672 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8673 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8674 prototype.
8675 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8676 * ser-mingw.c (create_select_thread): Make static.
8677 * windows-termcap.c (tgetent): New prototype.
8678 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8679
d603d4b3
JK
86802012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8681
8682 Fix -Wmissing-prototypes build.
8683 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8684 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8685 (_initialize_loadable): New prototypes.
8686
7fb3ad1f
DE
86872012-03-02 Doug Evans <dje@google.com>
8688
8689 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8690 abbrev table, read_comp_unit will do it.
8691
693be288
JK
86922012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8693
8694 Fix -Wmissing-prototypes build.
8695 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8696 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8697 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8698 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8699 (_initialize_arm_symbian_tdep): New prototype.
8700 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8701 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8702 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8703 static.
8704 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8705 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8706 prototype.
8707 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8708 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8709 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8710 static.
8711 * moxie-tdep.c (moxie_process_record): Likewise.
8712 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8713 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8714 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8715 (_initialize_rl78_tdep): New prototype.
8716 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8717 (_initialize_rx_tdep): New prototype.
8718 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8719 (_initialize_darwin_solib): New prototype.
8720 * solib-spu.c: Include solib-spu.h.
8721 (_initialize_spu_solib): New prototype.
8722 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8723 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8724 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8725 (tic6x_software_single_step): Make it static.
8726 (_initialize_tic6x_tdep): New prototype.
8727
638234e5
JK
87282012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8729
8730 Fix -Wmissing-prototypes build.
8731 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8732 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8733
f4a6f16d
JK
87342012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8735
8736 Fix -Wmissing-prototypes build.
8737 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8738 (frv_have_stopped_data_address): Remove.
8739
04dcf5fa
JK
87402012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8741
8742 Fix -Wmissing-prototypes build.
8743 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8744 * sh-tdep.c: Include sh64-tdep.h.
8745 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8746 * sh64-tdep.c: Include sh64-tdep.h.
8747 * sh64-tdep.h: New file.
8748
19080931
MR
87492012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8750
8751 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8752
9aac7884
MR
87532012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8754
8755 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8756 sp_regnum once the gdbarch_init_osabi hook has been called.
8757
a385295e
MR
87582012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8759
8760 * mips-tdep.c (mips32_bc1_pc): New function.
8761 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8762 BPOSGE32 and BPOSGE64 instructions.
8763 (deal_with_atomic_sequence): Likewise.
8764 (mips32_instruction_has_delay_slot): Likewise.
8765
1faeff08 87662012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8767 Chris Dearman <chris@mips.com>
8768 Maciej W. Rozycki <macro@codesourcery.com>
8769 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8770
8771 * features/mips-dsp.xml: New file.
8772 * features/mips64-dsp.xml: New file.
8773 * features/mips-dsp-linux.xml: New file.
8774 * features/mips64-dsp-linux.xml: New file.
8775 * features/Makefile (WHICH): Add mips-dsp-linux and
8776 mips64-dsp-linux.
8777 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8778 * features/mips-dsp-linux.c: New file.
8779 * features/mips64-dsp-linux.c: New file.
8780 * regformats/mips-dsp-linux.dat: New file.
8781 * regformats/mips64-dsp-linux.dat: New file.
8782 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8783 registers.
8784 (mips64_linux_register_addr): Likewise.
8785 (mips64_linux_regsets_fetch_registers): Likewise.
8786 (mips64_linux_regsets_store_registers): Likewise.
8787 (mips64_linux_fetch_registers): Update call to
8788 mips64_linux_regsets_fetch_registers.
8789 (mips64_linux_store_registers): Update call to
8790 mips64_linux_regsets_store_registers.
8791 (mips_linux_read_description): Probe for DSP registers.
8792 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8793 and initialize_tdesc_mips64_dsp_linux.
8794 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8795 Remove padding of no longer used embedded register slots.
8796 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8797 (MIPS_RESTART_REGNUM): Redefine enum value.
8798 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8799 strings.
8800 (mips_tx39_reg_names): Likewise.
8801 (mips_linux_reg_names): New array of register names for Linux
8802 targets.
8803 (mips_register_name): Check for a null pointer in
8804 mips_processor_reg_names and return an empty string.
8805 (mips_register_type): Exclude embedded registers for the IRIX
8806 and Linux ABIs.
8807 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8808 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8809 DSP registers.
8810 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8811 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8812 (mips_gdbarch_init): Likewise. Initialize internal register
8813 indices for the Linux ABI. Use dynamic numbers to refer to
8814 registers, as applicable, while parsing the target description.
8815 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8816
263689d8
JB
88172012-03-01 Joel Brobecker <brobecker@adacore.com>
8818
8819 * frame.h (read_frame_register_unsigned): Fix typo in function
8820 description.
8821
f3b4f45c
PA
88222012-03-01 Pedro Alves <palves@redhat.com>
8823
8824 * jit-reader.in [!__cplusplus]
8825 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8826
b03a2011
PA
88272012-03-01 Pedro Alves <palves@redhat.com>
8828
8829 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8830 * configure: Regenerate.
8831
70221824
PA
88322012-03-01 Pedro Alves <palves@redhat.com>
8833
8834 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8835 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8836 (ftrace_command, strace_command): Make static.
8837 * d-lang.c (_initialize_d_language): Declare.
8838 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8839 * dwarf2loc.c (_initialize_dwarf2loc):
8840 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8841 * exec.c (exec_get_section_table): Make static.
8842 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8843 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8844 * inferior.c (remove_inferior_command, add_inferior_command)
8845 (clone_inferior_command): Make static.
8846 * linux-nat.c (linux_nat_thread_address_space)
8847 (linux_nat_core_of_thread): Make static.
8848 * linux-tdep.c (_initialize_linux_tdep): Declare.
8849 * objc-lang.c (_initialize_objc_lang): Declare.
8850 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8851 Make static.
8852 (_initialize_opencl_language): Declare.
8853 * record.c (_initialize_record): Declare.
8854 * remote.c (demand_private_info, remote_get_tib_address)
8855 (remote_supports_cond_tracepoints)
8856 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8857 Make static.
8858 * skip.c (_initialize_step_skip): Declare.
8859 * symtab.c (skip_prologue_using_lineinfo): Make static.
8860 * tracepoint.c (delete_trace_state_variable)
8861 (trace_variable_command, delete_trace_variable_command)
8862 (get_uploaded_tsv, find_matching_tracepoint_location)
8863 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8864 Make static.
8865 * value.c (pack_unsigned_long): Make static.
8866 * varobj.c (varobj_ensure_python_env): Make static.
8867 * windows-tdep.c (_initialize_windows_tdep): Declare.
8868 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8869
33fbcbee
PA
88702012-03-01 Pedro Alves <palves@redhat.com>
8871
8872 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8873 gdbarch parameter.
8874 (linux_init_abi): Install it as has_shared_address_space gdbarch
8875 callback.
8876
44d0cd3b
PA
88772012-03-01 Pedro Alves <palves@redhat.com>
8878
8879 * observer.c (observer_test_first_notification_function)
8880 (observer_test_second_notification_function)
8881 (observer_test_third_notification_function): Add declarations.
8882
ed01b82c
PA
88832012-03-01 Pedro Alves <palves@redhat.com>
8884
8885 * common/signals.c (default_target_signal_to_host)
8886 (default_target_signal_from_host): Move ...
8887 * arch-utils.c: ... here.
8888 * arch-utils.h (default_target_signal_to_host)
8889 (default_target_signal_from_host): Declare.
8890
8891 * common/signals.c (target_signal_from_command): Move ...
8892 * infrun.c: ... here.
8893 * inferior.h (target_signal_from_command): Declare.
8894 * target.h (target_signal_from_command)
8895 (default_target_signal_from_host, default_target_signal_to_host):
8896 Delete declarations.
8897
8898 * common/signals.c (_initialize_signals): Delete.
8899
c9b87335
PA
89002012-03-01 Pedro Alves <palves@redhat.com>
8901
8902 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8903 both __cplusplus and !__cplusplus.
8904
9340a6c0
PA
89052012-03-01 Pedro Alves <palves@redhat.com>
8906
8907 * psymtab.c (find_and_open_source): Delete declaration.
8908 * source.c (find_and_open_source): Move comment ...
8909 * source.h (find_and_open_source): ... to this new declaration.
8910
e451c4a1
PA
89112012-03-01 Pedro Alves <palves@redhat.com>
8912
8913 * inline-frame.c: Include inline-frame.h.
8914
983fb104
PA
89152012-03-01 Pedro Alves <palves@redhat.com>
8916
8917 * tui/tui-data.c (set_gen_win_origin): Delete.
8918 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8919 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8920
5fbce5df
PA
89212012-03-01 Pedro Alves <palves@redhat.com>
8922
8923 * remote.c (encode_actions): Delete declaration.
8924 * tracepoint.c (encode_actions): Make extern.
8925 * tracepoint.h (encode_actions): Declare.
8926
49a8461d
PA
89272012-03-01 Pedro Alves <palves@redhat.com>
8928
8929 * python/py-breakpoint.c: Include python.h.
8930 * python/py-continueevent.c (create_continue_event_object): Make
8931 static.
8932 * python/py-lazy-string.c (stpy_get_type): Make static.
8933 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8934 Make static.
8935 * python/py-utils.c (unicode_to_target_python_string): Make
8936 static.
8937 * python/py-value.c: Include python.h.
8938
9079102f
PA
89392012-03-01 Pedro Alves <palves@redhat.com>
8940
8941 * inferior.c (delete_threads_of_inferior): Delete.
8942
a298c5e8
PA
89432012-03-01 Pedro Alves <palves@redhat.com>
8944
8945 Import fallback definitions from glibc.
8946
8947 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8948 ps_prochandle): Forward declare.
8949 (ps_err_e): Use glibc's comments.
8950 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8951 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8952 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8953 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8954 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8955 (struct ps_prochandle): Adjust comment.
8956
e3084549
PA
89572012-03-01 Pedro Alves <palves@redhat.com>
8958
8959 * ada-lang.c (ada_modulus_from_name): Delete.
8960 * ada-lex.l (lexer_init): Make static.
8961
ad5f7d6e
PA
89622012-03-01 Pedro Alves <palves@redhat.com>
8963
8964 PR gdb/13767
8965
8966 * frame.c (read_frame_register_unsigned): New.
8967 * frame.h (read_frame_register_unsigned): Declare.
8968 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8969 Handle it.
8970 (print_i387_control_word): New parameter `control_p'. Handle it.
8971 (i387_print_float_info): Handle unavailable float registers.
8972
e0a4d108
KS
89732012-03-01 Keith Seitz <keiths@redhat.com>
8974
8975 * linespec.c (decode_line_2): Sort the list of methods
8976 alphabetically before presenting the user with a selection
8977 menu.
8978
122d1940
DE
89792012-03-01 Doug Evans <dje@google.com>
8980
8981 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8982 has_namespace_info.
8983 (dwarf2_read_abbrevs): Remove corresponding initialization.
8984
7d74f244
DE
89852012-03-01 Scott J. Goldman <scottjg@vmware.com>
8986
8987 * NEWS: Mention new python command class gdb.COMMAND_USER.
8988 * cli/cli-cmds.c (show_user): Print error when used on a python
8989 command.
8990 (init_cli_cmds): Update documentation strings for "show user" and
8991 "set/show max-user-call-depth" to clarify that it does not apply to
8992 python commands.
8993 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8994 error check.
8995 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8996 gdb python api.
8997 * top.c (execute_command): Only execute a user-defined command as a
8998 legacy macro if c->user_commands is set.
8999
e88acd96
TT
90002012-03-01 Tom Tromey <tromey@redhat.com>
9001
9002 * valprint.h (struct generic_val_print_decorations): New.
9003 (generic_val_print): Declare.
9004 * valprint.c (generic_val_print): New function.
9005 * p-valprint.c (p_decorations): New global.
9006 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9007 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9008 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9009 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9010 * m2-valprint.c (m2_decorations): New global.
9011 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9012 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9013 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9014 TYPE_CODE_ERROR>: Call generic_val_print.
9015 * f-valprint.c (f_decorations): New global.
9016 (f_val_print): Use print_function_pointer_address.
9017 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9018 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9019 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9020 generic_val_print.
9021 * c-valprint.c (c_decorations): New global.
9022 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9023 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9024 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9025 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9026 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9027 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9028 case.
9029
d3eab38a
TT
90302012-03-01 Tom Tromey <tromey@redhat.com>
9031
9032 * valprint.c (val_print): Update.
9033 * p-valprint (pascal_val_print): Return void.
9034 * p-lang.h (pascal_val_print): Return void.
9035 * m2-valprint.c (m2_val_print): Return void.
9036 * m2-lang.h (m2_val_print): Return void.
9037 * language.h (struct language_defn) <la_val_print>: Return void.
9038 * language.c (unk_lang_val_print): Return void.
9039 * jv-valprint.c (java_val_print): Return void.
9040 * jv-lang.h (java_val_print): Return void.
9041 * f-valprint.c (f_val_print): Return void.
9042 * f-lang.h (f_val_print): Return void.
9043 * d-valprint.c (d_val_print): Return void.
9044 (dynamic_array_type): Update.
9045 * d-lang.h (d_val_print): Return void.
9046 * c-valprint.c (c_val_print): Return void.
9047 * c-lang.h (c_val_print): Return void.
9048 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9049 void.
9050 * ada-lang.h (ada_val_print): Return void.
9051
35c0084b
TT
90522012-03-01 Tom Tromey <tromey@redhat.com>
9053
9054 * value.h (val_print): Return void.
9055 * valprint.c (val_print): Return void.
9056
a1f5dd1b
TT
90572012-03-01 Tom Tromey <tromey@redhat.com>
9058
9059 * value.h (common_val_print): Return void.
9060 * valprint.c (common_val_print): Return void.
9061
8e069a98
TT
90622012-03-01 Tom Tromey <tromey@redhat.com>
9063
9064 * value.h (value_print): Return void.
9065 * valprint.c (value_print): Return void.
9066 * p-valprint.c (pascal_value_print): Return void.
9067 * p-lang.h (pascal_value_print): Return void.
9068 * language.h (struct language_defn) <la_value_print>: Return
9069 void.
9070 * language.c (unk_lang_value_print): Return void.
9071 * jv-valprint.c (java_value_print): Return void.
9072 * jv-lang.h (java_value_print): Return void.
9073 * f-valprint.c (c_value_print): Don't declare.
9074 Include c-lang.h.
9075 * c-valprint.c (c_value_print): Return void.
9076 * c-lang.h (c_value_print): Return void.
9077 * ada-valprint.c (ada_value_print): Return void.
9078 * ada-lang.h (ada_value_print): Return void.
9079
be335936
TT
90802012-03-01 Tom Tromey <tromey@redhat.com>
9081
9082 * value.c (value_primitive_field): Handle virtual base classes.
9083
b0db66a7
TT
90842012-03-01 Tom Tromey <tromey@redhat.com>
9085
9086 * gdbtypes.h (struct vbase): Remove.
9087
132c57b4
TT
90882012-03-01 Tom Tromey <tromey@redhat.com>
9089
9090 * c-valprint.c (print_function_pointer_address): Move...
9091 * valprint.c: ... here. Make non-static.
9092 * m2-valprint.c (print_function_pointer_address): Remove.
9093 * valprint.h (print_function_pointer_address): Declare.
9094
e41eec66
JB
90952012-03-01 Joel Brobecker <brobecker@adacore.com>
9096
9097 * NEWS: Document the fact that one can provide a condition when
9098 creating an Ada exception catchpoint.
9099
19c37f24
TT
91002012-03-01 Tom Tromey <tromey@redhat.com>
9101
9102 * valprint.c (val_print_type_code_flags): Fix placement of
9103 trailing brace.
9104
f0fed3a3
JB
91052012-03-01 Joel Brobecker <brobecker@adacore.com>
9106
9107 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9108 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9109 environment variable before calling update-copyright.
9110
8ba85d85
JB
91112012-03-01 Joel Brobecker <brobecker@adacore.com>
9112
9113 * gnulib/extra/update-copyright: Update to the latest from
9114 gnulib's git repository.
9115 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9116 variable to 2 instead of 1.
9117
8219b1e8
JB
91182012-02-29 Joel Brobecker <brobecker@adacore.com>
9119
9120 * varobj.c (c_value_of_variable): Remove dead code.
9121
718cb7da
JB
91222012-02-29 Joel Brobecker <brobecker@adacore.com>
9123
9124 * ada-lex.p (processId): Do not modify already encoded IDs.
9125 Update function documentation.
9126
739593e0
JB
91272012-02-29 Joel Brobecker <brobecker@adacore.com>
9128
9129 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9130 "name" with "struct symbol *name_sym".
9131 * ada-exp.y (write_var_or_type): Update call to
9132 ada_find_renaming_symbol.
9133 "name" with "struct symbol *name_sym". Adjust Implementation
9134 accordingly. Adjust the function documentation.
9135
852dff6c
JB
91362012-02-29 Joel Brobecker <brobecker@adacore.com>
9137
9138 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9139 * ada-lang.c (ada_find_any_type): Add advance declaration.
9140 Make static. Replace ada_find_any_symbol by
9141 ada_find_any_type_symbol.
9142 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9143 Improve function description. Make static.
9144 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9145 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9146
1b611343
JB
91472012-02-29 Joel Brobecker <brobecker@adacore.com>
9148
9149 * ada-lang.c (struct tag_args): Delete.
9150 (ada_get_tsd_type): Function body moved up in source file.
9151 (ada_tag_name_1, ada_tag_name_2): Delete.
9152 (ada_get_tsd_from_tag): New function.
9153 (ada_tag_name_from_tsd): New function.
9154 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9155 to determine the tag name.
9156
41246937
JB
91572012-02-29 Joel Brobecker <brobecker@adacore.com>
9158
9159 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9160 declaration.
9161 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9162 function.
9163
ffde82bf
JB
91642012-02-29 Joel Brobecker <brobecker@adacore.com>
9165
9166 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9167
2ad01556
JB
91682012-02-29 Joel Brobecker <brobecker@adacore.com>
9169
9170 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9171 full searches.
9172
99b1c762
JB
91732012-02-29 Joel Brobecker <brobecker@adacore.com>
9174
9175 * ada-lang.c (constrained_packed_array_type): If there is a
9176 parallel XA type, use it to determine the array index type.
9177
2d4a02ee
JB
91782012-02-29 Joel Brobecker <brobecker@adacore.com>
9179
9180 * ada-valprint.c (ada_val_print_1): If our value is a reference
9181 to an array descriptor, dereference it before converting it
9182 to a simple array.
9183
c48db5ca
JB
91842012-02-29 Joel Brobecker <brobecker@adacore.com>
9185
9186 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9187 creating fixed value.
9188 (ada_value_ind, ada_coerce_ref, assign_component)
9189 (ada_evaluate_subexp): Remove call to unwrap_value before
9190 call to ada_to_fixed_value.
9191
2e6fda7d
JB
91922012-02-29 Joel Brobecker <brobecker@adacore.com>
9193
9194 * ada-lang.c (to_fixed_array_type): Set result's type name.
9195
5845583d
JB
91962012-02-29 Joel Brobecker <brobecker@adacore.com>
9197
9198 * ada-lang.c (catch_ada_exception_command_split): Add new
9199 argument cond_string. Add support for condition at end of
9200 "catch exception" commands.
9201 (ada_decode_exception_location): Add new argument cond_string.
9202 Update call to catch_ada_exception_command_split.
9203 (create_ada_exception_catchpoint): Add new argument cond_string.
9204 Set the breakpoint condition if needed.
9205 (catch_ada_exception_command): Update call to
9206 ada_decode_exception_location.
9207 (ada_decode_assert_location): Add function documentation.
9208 Add support for condition at end of "catch assert" command.
9209 (catch_assert_command): Update calls to ada_decode_assert_location
9210 and create_ada_exception_catchpoint.
9211
9a7f938f
JK
92122012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9213
9214 Fix disp-step-syscall.exp: fork: single step over fork.
9215 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9216 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9217 comment, change parameters gdbarch and ptid to regcache. Remove
9218 parameter regcache, initialize gdbarch from regcache here.
9219 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9220 New functions.
9221 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9222 instead.
9223 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9224 'syscall'. Make the 'int' check more strict.
9225
ffdf6de5
JK
92262012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9227
9228 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9229 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9230 (i386_linux_intx80_sysenter_syscall_record): ... here.
9231 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9232 Use the renamed function name.
9233
c70a6932
JK
92342012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9235
9236 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9237 * breakpoint.c (until_break_command): Likewise.
9238 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9239 * infcall.c (call_function_by_hand): Likewise.
9240 * infcmd.c (finish_forward): Likewise.
9241 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9242
05b8a789 92432012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9244
d4cd3da9
JB
9245 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9246 avoid variable assignments inside condition.
9247
6425366c
JK
92482012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9249
9250 Fix static analysis issue found by cppcheck.
9251 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9252 uninitialized BUF for size 2.
9253
c8cef75f 92542012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9255 Nathan Froyd <froydnj@codesourcery.com>
9256 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9257
9258 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9259 (mips16_instruction_has_delay_slot): Likewise.
9260 (mips_segment_boundary): Likewise.
9261 (mips_adjust_breakpoint_address): Likewise.
9262 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9263
473347ad 92642012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9265 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9266
9267 * infrun.c (handle_inferior_event): Don't proceed through
9268 shared library trampolines if stepping at the machine
9269 instruction level.
9270
cf233303
MR
92712012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9272
9273 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9274 too.
9275
cb2cf4ce
TS
92762012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9277
9278 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9279 (sh_stub_unwind_sniffer): New functions.
9280 (sh_stub_unwind): New variable.
9281 (sh_gdbarch_init): Wire everything.
9282
644cebc9
PA
92832012-02-27 Pedro Alves <palves@redhat.com>
9284
9285 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9286 (linux_nat_post_attach_wait): Adjust to use
9287 linux_proc_pid_is_stopped.
9288 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9289 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9290 based on pid_is_stopped from both linux-nat.c and
9291 gdbserver/linux-low.c, and renamed.
9292
283002cf
MR
92932012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9294
9295 * remote.c (remote_watchpoint_addr_within_range): New function.
9296 (init_remote_ops): Use it.
9297
9b3e86b1
MR
92982012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9299
9300 * target.h (target_watchpoint_addr_within_range): Document macro.
9301
e36930bb
PA
93022012-02-24 Pedro Alves <palves@redhat.com>
9303
9304 * stack.c (set_last_displayed_sal): Issue internal_error instead
9305 of warning, and issue it after clearing the last displayed sal.
9306
883bc8d1
PA
93072012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9308 Pedro Alves <palves@redhat.com>
9309
9310 * breakpoint.c (until_break_command): Install breakpoints after
9311 all frame manipulations.
9312
b775012e
LM
93132012-02-24 Luis Machado <lgustavo@codesourcery.com>
9314
9315 * remote.c (remote_supports_cond_breakpoints): New forward
9316 declaration.
9317 (remote_add_target_side_condition): New function.
9318 (remote_insert_breakpoint): Add target-side breakpoint
9319 conditional if supported.
9320 (remote_insert_hw_breakpoint): Likewise.
9321 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9322 hook.
9323
9324 * target.c (update_current_target): Inherit
9325 to_supports_evaluation_of_breakpoint_conditions.
9326 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9327
9328 * target.h (struct target_ops)
9329 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9330 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9331
9332 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9333 (condition_evaluation_both, condition_evaluation_auto,
9334 condition_evaluation_host, condition_evaluation_target,
9335 condition_evaluation_enums, condition_evaluation_mode_1,
9336 condition_evaluation_mode): New static globals.
9337 (translate_condition_evaluation_mode): New function.
9338 (breakpoint_condition_evaluation_mode): New function.
9339 (gdb_evaluates_breakpoint_condition_p): New function.
9340 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9341 (mark_breakpoint_modified): New function.
9342 (mark_breakpoint_location_modified): New function.
9343 (set_condition_evaluation_mode): New function.
9344 (show_condition_evaluation_mode): New function.
9345 (bp_location_compare_addrs): New function.
9346 (get_first_location_gte_addr): New helper function.
9347 (set_breakpoint_condition): Free condition bytecode if locations
9348 has become unconditional. Call mark_breakpoint_modified (...).
9349 (condition_command): Call update_global_location_list (1) for
9350 breakpoints.
9351 (breakpoint_xfer_memory): Use is_breakpoint (...).
9352 (is_breakpoint): New function.
9353 (parse_cond_to_aexpr): New function.
9354 (build_target_condition_list): New function.
9355 (insert_bp_location): Handle target-side conditional
9356 breakpoints and call build_target_condition_list (...).
9357 (update_inserted_breakpoint_locations): New function.
9358 (insert_breakpoint_locations): Handle target-side conditional
9359 breakpoints.
9360 (bpstat_check_breakpoint_conditions): Add comment.
9361 (bp_condition_evaluator): New function.
9362 (bp_location_condition_evaluator): New function.
9363 (print_breakpoint_location): Print information on where the condition
9364 will be evaluated.
9365 (print_one_breakpoint_location): Likewise.
9366 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9367 breakpoint location.
9368 (force_breakpoint_reinsertion): New functions.
9369 (update_global_location_list): Handle target-side breakpoint
9370 conditions.
9371 Reinsert locations that are already inserted if conditions have
9372 changed.
9373 (bp_location_dtor): Free agent expression bytecode.
9374 (disable_breakpoint): Call mark_breakpoint_modified (...).
9375 Call update_global_location_list (...) with parameter 1 for breakpoints.
9376 (disable_command): Call mark_breakpoint_location_modified (...).
9377 Call update_global_location_list (...) with parameter 1 for breakpoints.
9378 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9379 (enable_command): mark_breakpoint_location_modified (...).
9380 (_initialize_breakpoint): Update documentation and add
9381 condition-evaluation breakpoint subcommand.
9382
9383 * breakpoint.h: Include ax.h.
9384 (condition_list): New data structure.
9385 (condition_status): New enum.
9386 (bp_target_info) <cond_list>: New field.
9387 (bp_location) <condition_changed, cond_bytecode>: New fields.
9388 (is_breakpoint): New prototype.
9389
3788aec7
LM
93902012-02-24 Luis Machado <lgustavo@codesourcery.com>
9391
9392 * remote.c (remote_state) <cond_breakpoints>: New field.
9393 (PACKET_ConditionalBreakpoints): New enum.
9394 (remote_cond_breakpoint_feature): New function.
9395 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9396 (remote_supports_cond_breakpoints): New function.
9397 (_initialize_remote): Add new packet configuration for
9398 target-side conditional breakpoints.
9399
72895ff6
LM
94002012-02-24 Luis Machado <lgustavo@codesourcery.com>
9401
9402 * NEWS: Mention target-side conditional breakpoint support,
9403 new condition-evaluation breakpoint subcommand and remote
9404 packet extensions.
9405
dea2aa5f
LM
94062012-02-24 Luis Machado <lgustavo@codesourcery.com>
9407
9408 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9409 number.
9410
8a8bc27f
TS
94112012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9412
9413 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9414 (after_prologue): Remove.
9415
6b446fdf
TT
94162012-02-23 Tom Tromey <tromey@redhat.com>
9417
9418 * jv-valprint.c (java_val_print): Remove dead code.
9419
ef59abfb
TG
94202012-02-23 Tristan Gingold <gingold@adacore.com>
9421
a09130f9
PA
9422 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9423 known_tasks_element and known_tasks_length fields.
9424 (read_known_tasks_array): Change argument type. Use pointer type
9425 and number of elements from DATA. Adjust.
9426 (read_known_tasks_list): Likewise.
9427 (get_known_tasks_addr): Remove.
9428 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9429 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9430 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9431
def166f6
JK
94322012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9433
9434 PR backtrace/13716
9435 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9436 it after set_momentary_breakpoint.
9437
aeaa2474
SA
94382012-02-22 Sterling Augustine <saugustine@google.com>
9439
9440 PR 13689:
9441 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9442
feea76c2
GB
94432012-02-22 Gary Benson <gbenson@redhat.com>
9444
9445 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9446 (find_slot_in_mapped_hash): Likewise.
9447
f06e05e0
JK
94482012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9449
9450 PR build/13638
9451 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9452 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9453 * configure: Regenerate.
9454
b54a8fd7
PA
94552012-02-21 Tristan Gingold <gingold@adacore.com>
9456 Pedro Alves <palves@redhat.com>
9457
9458 * ia64-tdep.c: Do not include libunwind-ia64.h.
9459 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9460 Include libunwind-ia64.h instead of libunwind.h.
9461 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9462 for libunwind.h existence.
9463 * configure, config.in: Regenerate.
9464
dfcee124
AG
94652012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9466
9467 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9468 instead of value_rtti_target_type.
9469 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9470 instead of value_rtti_target_type.
9471 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9472 value_rtti_target_type.
9473 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9474 (value_rtti_target_type): Rename to ...
9475 (value_rtti_indirect_type): ... here and make it indirect. Update
9476 function comment.
9477 * value.c (readjust_indirect_value_type): New function.
9478 (coerce_ref): Support for enclosing type setting for references
9479 with readjust_indirect_value_type.
9480 * value.h (readjust_value_type): New declaration.
9481 (value_rtti_target_type): Rename to ...
9482 (value_rtti_indirect_type): ... here.
9483
02568277
AG
94842012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9485
9486 * MAINTAINERS (Write After Approval): Add myself to the list.
9487
10c07b7e 94882012-02-20 Doug Evans <dje@google.com>
28ee876a 9489
d82ea6a8
DE
9490 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9491 Rename objfile_p_char parameter to objfilep.
9492 (build_objfile_section_table): Result is now void. All callers
9493 updated.
9494 * objfiles.h (struct objfile): Tweak comments, whitespace.
9495 (build_objfile_section_table): Update.
9496
28ee876a
DE
9497 * elfread.c (elf_symfile_segments): Fix warning text.
9498
24c79950
TT
94992012-02-20 Tom Tromey <tromey@redhat.com>
9500
9501 PR gdb/13498:
9502 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9503 particular set of file names once.
9504 (dw2_map_symbol_filenames): Likewise.
9505
3a9b40b6
JK
95062012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9507
9508 Code cleanup.
9509 * main.c (write_files): Remove the declaration.
9510 (external_editor_command): Move the declaration ...
9511 [GDBTK] (external_editor_command): ... here. Fix the comment.
9512
4d0795ca
TT
95132012-02-20 Tom Tromey <tromey@redhat.com>
9514
9515 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9516 extraneous block.
9517
637fd620
TG
95182012-02-20 Tristan Gingold <gingold@adacore.com>
9519
9520 * darwin-nat.h (enum darwin_msg_state): Add comments.
9521
6f124894
TG
95222012-02-20 Tristan Gingold <gingold@adacore.com>
9523
9524 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9525 value.
9526
2e6e3d9c
JB
95272012-20-18 Joel Brobecker <brobecker@adacore.com>
9528
9529 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9530 between function description and implementation.
9531
2e8265fd
TT
95322012-02-17 Tom Tromey <tromey@redhat.com>
9533
9534 PR python/12070:
9535 * python/py-event.c (event_object_getset): New global.
9536 (event_object_type): Reference it.
9537 * python/py-type.c (field_object_getset): New global.
9538 (field_object_type): Reference it.
9539 * python/python-internal.h (gdb_py_generic_dict): Declare.
9540 * python/py-utils.c (gdb_py_generic_dict): New function.
9541
8544a150 95422012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9543
8544a150 9544 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9545
ca193e27
TS
95462012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9547
9548 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9549 TYPE_CALLING_CONVENTION annotation.
9550
e5586183
KB
95512012-02-16 Kevin Buettner <kevinb@redhat.com>
9552
9553 * MAINTAINERS: Add rx to target ISA section.
9554 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9555 (ALLDEPFILES): Add rx-tdep.c.
9556
7dcd53a0
TT
95572012-02-16 Tom Tromey <tromey@redhat.com>
9558
9559 * symfile.c (symbol_file_add_main_1): Use inferior's
9560 symfile_flags.
9561 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9562 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9563 inferior.
9564 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9565 inferior.
9566 (follow_exec): Use inferior's symfile_flags.
9567 * inferior.h (struct inferior) <symfile_flags>: New field.
9568
ddd60447
MF
95692012-02-16 Mike Frysinger <vapier@gentoo.org>
9570
9571 PR gdb/9734:
9572 * remote-sim.c (gdbsim_create_inferior): Call error() when
9573 sim_create_inferior() fails.
9574
b0d32fb6
TG
95752012-02-16 Josh Matthews <josh@joshmatthews.net>
9576
9577 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9578
9addecb9
TT
95792012-02-16 Tom Tromey <tromey@redhat.com>
9580
9581 PR c++/13653:
9582 * thread.c (struct current_thread_cleanup) <was_removable>: New
9583 field.
9584 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9585 (make_cleanup_restore_current_thread): Initialize new field.
9586
a58b110a
KB
95872012-02-15 Kevin Buettner <kevinb@redhat.com>
9588
9589 * MAINTAINERS: Add rl78 to target ISA section.
9590 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9591 (ALLDEPFILES): Add rl78-tdep.c.
9592 * NEWS: Mention rl78 as a new target.
9593
4cb6da1c
AR
95942012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9595
9596 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9597 data.
9598 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9599
3af2590d
TT
96002012-02-15 Tom Tromey <tromey@redhat.com>
9601
9602 PR gdb/12659:
9603 * infcmd.c (registers_info): Print just the current register's
9604 name.
9605
c6910659
TT
96062012-02-15 Tom Tromey <tromey@redhat.com>
9607
9608 * python/py-symbol.c (sympy_value): Use _().
9609
7cee1e54
PA
96102012-02-15 Pedro Alves <palves@redhat.com>
9611
9612 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9613 output to be like native targets'.
9614 (remote_pid_to_str): Special case the null ptid.
9615
816338b5
SS
96162012-02-14 Stan Shebs <stan@codesourcery.com>
9617
9618 * NEWS: Mention enable count command.
9619 * breakpoint.h (struct breakpoint): New field enable_count.
9620 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9621 (enable_breakpoint): Add arg to call.
9622 (struct disp_data): New struct.
9623 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9624 (do_map_enable_once_breakpoint): Create a struct and pass it.
9625 (do_map_enable_delete_breakpoint): Ditto.
9626 (do_map_enable_count_breakpoint): New function.
9627 (enable_count_command): New function.
9628 (bpstat_stop_status): Decrement enable_count.
9629 (print_one_breakpoint_location): Report enable count.
9630 (_initialize_breakpoint): Add enable count command.
9631
c47a44f4
KB
96322012-02-14 Kevin Buettner <kevinb@redhat.com>
9633
9634 * rl78-tdep.c (reggroups.h): Include.
9635 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9636 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9637 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9638 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9639 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9640 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9641 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9642 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9643 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9644 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9645 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9646 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9647 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9648 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9649 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9650 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9651 beginning of register list.
9652 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9653 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9654 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9655 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9656 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9657 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9658 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9659 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9660 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9661 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9662 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9663 the pseudo registers. Rearrange other pseudo registers too so
9664 that the bank registers appear at the end.
9665 (rl78_register_type): Account for the fact that the byte sized
9666 bank registers are now pseudo-registers.
9667 (rl78_register_name): Rearrange the register name array. Make
9668 initial set of raw banked registers inaccessible.
9669 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9670 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9671 case for copying bytes back and forth between raw and pseudo
9672 versions of the banked registers. Update other cases to reflect
9673 the changed names.
9674 (rl78_return_value): Update to account for changed names of
9675 raw registers.
9676 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9677 rl78_register_sim_regno().
9678
e4569f1e
KB
96792012-02-14 Kevin Buettner <kevinb@redhat.com>
9680
9681 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9682 the name parameter being passed to find_pc_partial_function().
9683
7a05aae7
JK
96842012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9685
9686 * MAINTAINERS: Step down from being ia64 target maintainer.
9687
11fde611
JK
96882012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9689
9690 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9691 compilation warning.
9692
57008375
JK
96932012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9694
9695 Fix crash on loaded shlibs without loaded exec_bfd.
9696 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9697 (set_section_command): Replace exec_bfd by p->bfd.
9698
ff3c9849
TT
96992012-02-10 Tom Tromey <tromey@redhat.com>
9700
9701 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9702 when we have a C++ qualified name.
9703
db2b9fdd
PA
97042012-02-10 Pedro Alves <palves@redhat.com>
9705
9706 * inferior.c (inferior_pid_to_str): New.
9707 (print_inferior, inferior_command): Use it.
9708
12cd34f3
PA
97092012-02-10 Pedro Alves <palves@redhat.com>
9710
9711 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9712 the test CFLAGS.
9713 * configure: Regenerate.
9714
e871429d
JK
97152012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9716
9717 * linespec.c (decode_line_internal): Fix comment correctness.
9718
1916efaf
PA
97192012-02-09 Valery Khromov <valery.khromov@gmail.com>
9720
9721 PR gdb/12953
9722 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9723 * amd64bsd-nat.c: Add support for debug registers (adapted from
9724 i386bsd-nat.c).
9725 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9726 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9727 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9728 (amd64bsd_dr_get_control): New functions.
9729 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9730 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9731 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9732 watchpoints initialization.
9733 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9734
f4859d94
JK
97352012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9736
9737 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9738 flds_bnds.fields.
9739 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9740
c56a97f9
JK
97412012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9742
9743 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9744
1a119f36
JB
97452012-02-08 Joel Brobecker <brobecker@adacore.com>
9746
9747 * language.h (symbol_name_cmp_ftype): Renames
9748 symbol_name_match_p_ftype.
9749 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9750 la_get_symbol_name_match_p.
9751 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9752 ada_get_symbol_name_match_p. Update comment.
9753 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9754 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9755 Renames symbol_name_match_p. Update field type.
9756 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9757 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9758 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9759 "la_get_symbol_name_cmp" in comments.
9760 * language.c: Likewise.
9761
c71bb1cf
RO
97622012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9763
9764 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9765 %eflags offset.
9766 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9767 (amd64_sol2_gregset32_reg_offs): Likewise.
9768
4b2d20a5
TG
97692012-02-08 Joel Brobecker <brobecker@adacore.com>
9770
9771 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9772 of the returned BFD is allocated by GDB.
9773
f0823d2c
TT
97742012-02-07 Tom Tromey <tromey@redhat.com>
9775
9776 PR python/12027:
9777 * python/python-internal.h (frame_object_type): Declare.
9778 * python/py-symbol.c (sympy_needs_frame): New function.
9779 (sympy_value): New function.
9780 (symbol_object_getset): Add "needs_frame".
9781 (symbol_object_methods): Add "value".
9782 * python/py-frame.c (frame_object_type): No longer static.
9783
64e7d9dd
TT
97842012-02-07 Tom Tromey <tromey@redhat.com>
9785
9786 PR python/13599:
9787 * python/py-symbol.c (sympy_line): New function.
9788 (symbol_object_getset): Add "line".
9789
1d6b2d2b
TT
97902012-02-07 Tom Tromey <tromey@redhat.com>
9791
9792 * charset.c (find_charset_names): Check 'in' against NULL.
9793
0d5cff50
DE
97942012-02-06 Doug Evans <dje@google.com>
9795
9796 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9797 and fields.name members from char * to const char *. All uses updated.
9798 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9799 from char * to const char *. All uses updated.
9800 (type_name_no_tag): Update.
9801 (lookup_unsigned_typename, lookup_signed_typename): Update.
9802 * gdbtypes.c (type_name_no_tag): Change result type
9803 from char * to const char *. All callers updated.
9804 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9805 name parameter from char * to const char *.
9806 * symtab.h (struct cplus_specific): Change type of demangled_name
9807 member from char * to const char *. All uses updated.
9808 (struct general_symbol_info): Change type of name and
9809 mangled_lang.demangled_name members from char * to const char *.
9810 All uses updated.
9811 (symbol_get_demangled_name, symbol_natural_name): Update.
9812 (symbol_demangled_name, symbol_search_name): Update.
9813 * symtab.c (symbol_get_demangled_name): Change result type
9814 from char * to const char *. All callers updated.
9815 (symbol_natural_name, symbol_demangled_name): Ditto.
9816 (symbol_search_name): Ditto.
9817 (completion_list_add_name): Change type of symname,sym_text,
9818 text,word parameters from char * to const char *.
9819 (completion_list_objc_symbol): Change type of sym_text,
9820 text,word parameters from char * to const char *.
9821 * ada-lang.c (find_struct_field): Change type of name parameter
9822 from char * to const char *.
9823 (encoded_ordered_before): Similarly for N0,N1 parameters.
9824 (old_renaming_is_invisible): Similarly for function_name parameter.
9825 (ada_type_name): Change result type from char * to const char *.
9826 All callers updated.
9827 * ada-lang.h (ada_type_name): Update.
9828 * buildsym.c (hashname): Change type of name parameter
9829 from char * to const char *.
9830 * buildsym.h (hashname): Update.
9831 * dbxread.c (end_psymtab): Change type of include_list parameter
9832 from char ** to const char **.
9833 * dwarf2read.c (determine_prefix): Change result type
9834 from char * to const char *. All callers updated.
9835 * f-lang.c (find_common_for_function): Change type of name, funcname
9836 parameters from char * to const char *.
9837 * f-lang.c (find_common_for_function): Update.
9838 * f-valprint.c (list_all_visible_commons): Change type of funcname
9839 parameters from char * to const char *.
9840 * gdbarch.sh (static_transform_name): Change type of name parameter
9841 and result from char * to const char *.
9842 * gdbarch.c: Regenerate.
9843 * gdbarch.h: Regenerate.
9844 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9845 of name parameter from char * to const char *.
9846 * jv-lang.c (java_primitive_type_from_name): Ditto.
9847 (java_demangled_signature_length): Similarly for signature parameter.
9848 (java_demangled_signature_copy): Ditto.
9849 (java_demangle_type_signature): Ditto.
9850 * jv-lang.h (java_primitive_type_from_name): Update.
9851 (java_demangle_type_signature): Update.
9852 * objc-lang.c (specialcmp): Change type of a,b parameters
9853 from char * to const char *.
9854 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9855 from char * to const char *. All callers updated.
9856 * p-lang.h (is_pascal_string_type): Update.
9857 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9858 of name parameter from char * to const char *.
9859 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9860 * utils.c (fprintf_symbol_filtered): Ditto.
9861 * defs.h (fprintf_symbol_filtered): Update.
9862 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9863 * stabsread.h (end_psymtab): Update.
9864 * stack.c (find_frame_funname): Change type of funname parameter
9865 from char ** to const char **.
9866 * stack.h (find_frame_funname): Update.
9867 * typeprint.c (type_print): Change type of varstring parameter
9868 from char * to const char *.
9869 * value.h (type_print): Update.
9870 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9871 from char * to const char *. All callers updated.
9872 (xcoff_end_psymtab): Change type of include_list parameter
9873 from char ** to const char **. All callers updated.
9874 (swap_sym): Similarly for name parameter. All callers updated.
9875 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9876 Use xstrdup.
9877 (process_coff_symbol): Use xstrdup.
9878 * stabsread.c (stabs_method_name_from_physname): Renamed from
9879 update_method_name_from_physname. Change result type from void
9880 to char *. All callers updated.
9881 (read_member_functions): In has_destructor case, store name in objfile
9882 obstack instead of malloc space. In !has_stub case, fix mem leak.
9883
5579a92e
TT
98842012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9885
9886 * configure: Rebuild.
9887 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9888 LDFLAGS.
9889
9058f767
KB
98902012-02-03 Kevin Buettner <kevinb@redhat.com>
9891
9892 * configure.tgt (rl78-*-elf): New target.
9893 * rl78-tdep.c: New file.
9894
5b37825d
PW
98952012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9896
9897 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9898 and continue the loop. Add QUIT statement.
9899
e009ee71
TT
99002012-02-03 Tom Tromey <tromey@redhat.com>
9901
9902 PR gdb/13596:
9903 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9904 bfd_lookup_symbol_from_symtab.
9905 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9906 gdb_bfd_lookup_symbol_from_symtab.
9907
f7e44f65
JB
99082012-02-03 Joel Brobecker <brobecker@adacore.com>
9909
9910 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9911 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9912 symbol. Add assertion that sym2 is never NULL.
9913
2c02bd72
DE
99142012-02-02 Doug Evans <dje@google.com>
9915
9916 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9917 "name" parameter to const char ** from char **. All callers updated.
9918 (find_pc_partial_function): Ditto.
9919 (cache_pc_function_name): Change type to const char * from char *.
9920 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9921 (find_pc_partial_function): Update.
9922 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9923 type of "name" parameter to const char * from char *.
9924 All uses updated.
9925 * arch-utils.c (generic_in_solib_return_trampoline): Change
9926 type of "name" parameter to const char * from char *.
9927 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9928 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9929 type of "name" parameter to const char * from char *.
9930 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9931 * gdbarch.c: Regenerate.
9932 * gdbarch.h: Regenerate.
9933 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9934 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9935 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9936 type of "name" parameter to const char * from char *.
9937 * skip.c (skip_function_pc): Ditto.
9938 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9939 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9940 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9941 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9942 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9943 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9944 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9945 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9946 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9947
e886a173
PA
99482012-02-02 Pedro Alves <palves@redhat.com>
9949
9950 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9951 the current inferior has no execution. Make sure the current
9952 remote process matches gdb's current inferior.
9953
c709a7c2
TT
99542012-02-02 Tom Tromey <tromey@redhat.com>
9955
9956 PR gdb/13405:
9957 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9958 read-only memory.
9959
f149aabd
TT
99602012-02-02 Tom Tromey <tromey@redhat.com>
9961
9962 PR gdb/9307:
9963 * symtab.c (lookup_language_this): Set block_found.
9964
03bef283
TT
99652012-02-01 Tom Tromey <tromey@redhat.com>
9966
9967 PR gdb/13431:
9968 * jit.c (struct jit_inferior_data): Rewrite.
9969 (struct jit_objfile_data): New.
9970 (get_jit_objfile_data): New function.
9971 (add_objfile_entry): Update.
9972 (jit_read_descriptor): Return int. Replace descriptor_addr
9973 argument with inf_data. Update. Don't call error.
9974 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9975 descriptor here.
9976 (jit_inferior_init): Don't look up descriptor. Don't call error.
9977 (jit_reset_inferior_data_and_breakpoints)
9978 (jit_inferior_created_observer): Remove.
9979 (jit_inferior_exit_hook): Update.
9980 (jit_executable_changed_observer): Remove.
9981 (jit_event_handler): Update.
9982 (free_objfile_data): Reset inferior data if needed.
9983 (_initialize_jit): Update.
9984
f0bbc364
TT
99852012-02-01 Tom Tromey <tromey@redhat.com>
9986
9987 * jit.c (bfd_open_from_target_memory): Move higher in file.
9988
47c1316c
TG
99892012-02-01 Tristan Gingold <gingold@adacore.com>
9990
9991 * libunwind-frame.c (libunwind_load): Display message if dlopen
9992 failed.
9993
8e704927
GB
99942012-02-01 Gary Benson <gbenson@redhat.com>
9995
09c7a31f 9996 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9997 (iterate_over_symbols): Use the above.
9998 * symtab.c (iterate_over_symbols): Likewise.
9999 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10000 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10001 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10002 (iterate_name_matcher): Document return values.
10003 (collect_one_symbol): Likewise.
10004 (collect_function_symbols): Likewise.
10005 (collect_symbols): Likewise.
10006
d9680e73
TT
100072012-02-01 Tom Tromey <tromey@redhat.com>
10008
10009 * ada-lang.c (resolve_subexp): Update.
10010 (ada_lookup_symbol_list): Add 'full_search' argument.
10011 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10012 ada_lookup_symbol_list.
10013 (ada_lookup_encoded_symbol): Update.
10014 (get_var_value): Update.
10015 * ada-exp.y (block_lookup): Update.
10016 (write_var_or_type): Update.
10017 (write_name_assoc): Update.
10018 * ada-lang.h (ada_lookup_symbol_list): Update.
10019
72e1143f
TT
100202012-01-31 Tom Tromey <tromey@redhat.com>
10021
10022 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10023 comment.
10024
ab2d2ad3
DE
100252012-01-31 Doug Evans <dje@google.com>
10026
10027 * symtab.h: Remove outdated comment.
e9111bf7 10028 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10029
bc884eba
JB
100302012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10031
10032 Fix build error in Darwin port.
10033 * i386-darwin-nat.c: Include i386-nat.h.
10034
8fc3fc34
TT
100352012-01-30 Tom Tromey <tromey@redhat.com>
10036
10037 PR breakpoints/13568:
10038 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10039 argument. Check for recursive includes.
10040 (dwarf_decode_macros): Create an include hash.
10041
5d853008
ME
100422012-01-30 Michael Eager <eager@eagercon.com>
10043
10044 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10045 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10046 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10047 (powerpc_linux_in_plt_stub): New function.
10048 (powerpc_linux_in_dynsym_resolve_code): New function.
10049 (ppc_skip_trampoline_code): New function.
10050 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10051 Use glibc_skip_solib_resolver.
10052
40478521
JK
100532012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10054
10055 Code cleanup: Make 1440 bytes of data segment read-only.
10056 * arch-utils.c (endian_enum): Make it const char *const [].
10057 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10058 Likewise.
10059 * breakpoint.c (always_inserted_enums): Likewise.
10060 * cli/cli-cmds.c (script_ext_enums): Likewise.
10061 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10062 enumlist parameter const char *const *.
10063 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10064 const char *const *.
10065 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10066 parameter const char *const *.
10067 * cris-tdep.c (cris_modes): Make it const char *const [].
10068 * filesystem.c (target_file_system_kinds): Likewise.
10069 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10070 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10071 (can_use_displaced_stepping_enum, scheduler_enums)
10072 (exec_direction_names): Likewise.
10073 * language.c (_initialize_language): Make the type_or_range_names and
10074 case_sensitive_names variables const char *const [].
10075 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10076 * python/python.c (python_excp_enums): Likewise.
10077 * remote.c (interrupt_sequence_modes): Likewise.
10078 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10079 * serial.c (logbase_enums): Likewise.
10080 * sh-tdep.c (sh_cc_enum): Likewise.
10081 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10082 Likewise.
10083 * symtab.c (multiple_symbols_modes): Likewise.
10084 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10085 Likewise.
10086 * utils.c (internal_problem_modes): Likewise.
10087
b3b8b934
JK
100882012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10089
10090 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10091 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10092 result.
10093
8c85a4e2
DE
100942012-01-27 Doug Evans <dje@google.com>
10095
10096 * configure.ac (with_python): Fix absolute path handling for win32.
10097 * configure: Regenerate.
10098
78d8b4d7
DE
100992012-01-26 Doug Evans <dje@google.com>
10100
eca864fe
DE
10101 * symtab.c: Whitespace cleanup, no code changes.
10102
7e082072
DE
10103 * symtab.c (lookup_symbol_in_language): Improve comment.
10104 (lookup_symbol_aux): Fix comment.
10105
7dc25483
DE
10106 * psymtab.c (add_psymbol_to_list): Result is now "void".
10107 * psympriv.h (add_psymbol_to_list): Update.
10108
78d8b4d7
DE
10109 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10110
4c63965b
JK
101112012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10112
10113 Do not open script filenames twice.
10114 * cli/cli-cmds.c (source_script_from_stream): Pass to
10115 source_python_script also STREAM.
10116 * python/py-auto-load.c (source_section_scripts): Pass to
10117 source_python_script_for_objfile also STREAM.
10118 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10119 also INPUT.
10120 * python/python-internal.h (source_python_script_for_objfile): New
10121 parameter file, rename parameter file to filename.
10122 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10123 instead if !_WIN32. Update the function comment.
10124 (source_python_script, source_python_script_for_objfile)
10125 (source_python_script): New parameter file, rename parameter file to
10126 filename. Pass FILENAME to python_run_simple_file.
10127 * python/python.h (source_python_script): New parameter file, rename
10128 parameter file to filename.
10129
88f38a04
PA
101302012-01-26 Pedro Alves <palves@redhat.com>
10131
10132 * corelow.c (core_has_fake_pid): Delete.
10133 (core_close): Delete references to `core_has_fake_pid'.
10134 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10135 (core_open): Delete references to `core_has_fake_pid'.
10136 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10137 the removed global.
10138
e078317b
JB
101392012-01-26 Joel Brobecker <brobecker@adacore.com>
10140
10141 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10142 Remove language parameter from name_matcher. Adjust the comment.
10143 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10144 Remove language parameter.
10145 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10146 * linespec.c (iterate_name_matcher): Likewise.
10147 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10148 name_matcher. Adjust call accordingly.
10149 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10150 (maintenance_check_symtabs): Adjust type of parameter "fun".
10151 * psymtab.h (maintenance_check_symtabs): Likewise.
10152
74ccd7f5
JB
101532012-01-26 Joel Brobecker <brobecker@adacore.com>
10154
10155 * language.h (symbol_name_match_p_ftype): New typedef.
10156 (struct language_defn): Replace field la_symbol_name_compare
10157 by la_get_symbol_name_match_p.
10158 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10159 (ada_language_defn): Use it.
10160 * linespec.c (struct symbol_matcher_data): New type.
10161 (iterate_name_matcher): Rewrite.
10162 (iterate_over_all_matching_symtabs): Pass a pointer to
10163 a symbol_matcher_data struct to expand_symtabs_matching
10164 instead of just the lookup name.
10165 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10166 opencl-lang.c, p-lang.c, language.c: Delete field
10167 la_symbol_name_compare, and replace by NULL for new field
10168 la_get_symbol_name_match_p.
10169 * symfile.h (struct quick_symbol_functions): Update comment.
10170
5d268276
TT
101712012-01-25 Tom Tromey <tromey@redhat.com>
10172
10173 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10174 dereferencing.
10175
edcc5120
TT
101762012-01-24 Tom Tromey <tromey@redhat.com>
10177
10178 PR symtab/12406:
10179 * solib.c (update_solib_list): Update the program space's
10180 added_solibs and deleted_solibs fields.
10181 * progspace.h (struct program_space) <added_solibs,
10182 deleted_solibs>: New fields.
10183 (clear_program_space_solib_cache): Declare.
10184 * progspace.c (release_program_space): Call
10185 clear_program_space_solib_cache.
10186 (clear_program_space_solib_cache): New function.
10187 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10188 bpstat_stop_status. Use handle_solib_event.
10189 * breakpoint.c: Include gdb_regex.h.
10190 (print_solib_event): New function.
10191 (bpstat_print): Use print_solib_event.
10192 (bpstat_stop_status): Add special case for bp_shlib_event.
10193 (handle_solib_event): New function.
10194 (bpstat_what): Use handle_solib_event.
10195 (struct solib_catchpoint): New.
10196 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10197 (breakpoint_hit_catch_solib, check_status_catch_solib)
10198 (print_it_catch_solib, print_one_catch_solib)
10199 (print_mention_catch_solib, print_recreate_catch_solib): New
10200 functions.
10201 (catch_solib_breakpoint_ops): New global.
10202 (catch_load_or_unload, catch_load_command_1)
10203 (catch_unload_command_1): New functions.
10204 (internal_bkpt_check_status): Add special case for
10205 bp_shlib_event.
10206 (internal_bkpt_print_it): Use print_solib_event.
10207 (initialize_breakpoint_ops): Initialize
10208 catch_solib_breakpoint_ops.
10209 (_initialize_breakpoint): Register "catch load" and "catch
10210 unload".
10211 * breakpoint.h (handle_solib_event): Declare.
10212 * NEWS: Add entry for "catch load" and "catch unload".
10213
fa864999
TT
102142012-01-24 Tom Tromey <tromey@redhat.com>
10215
10216 * ada-lang.c: Include gdb_vecs.h.
10217 * charset.c: Include gdb_vecs.h.
10218 * tracepoint.h: Include gdb_vecs.h.
10219 * gdb_vecs.h: New file.
10220
f90263c1
TT
102212012-01-24 Pedro Alves <pedro@codesourcery.com>
10222
10223 * breakpoint.c (breakpoint_hit_catch_fork)
10224 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10225 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10226 * infrun.c (inferior_has_forked, inferior_has_vforked)
10227 (inferior_has_execd, inferior_has_called_syscall): Delete.
10228 (handle_syscall_event): Get syscall_number from the execution
10229 control state's wait status.
10230 (wait_for_inferior): Don't clear syscall_number.
10231
09ac7c10
TT
102322012-01-24 Pedro Alves <palves@redhat.com>
10233
10234 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10235 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10236 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10237 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10238 `ws' parameter.
10239 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10240 false for events other than TARGET_SIGNAL_TRAP.
10241 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10242 Add `ws' parameter.
10243 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10244 events other than TARGET_SIGNAL_TRAP.
10245 (tracepoint_breakpoint_hit): Add `ws' parameter.
10246 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10247 parameter.
10248 (bpstat_stop_status): Same.
10249 (pc_at_non_inline_function): Same.
10250 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10251 to pass the current event's waitstatus to bpstat_stop_status
10252 and pc_at_non_inline_function.
10253
86eb7e95
JK
102542012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10255
10256 Code cleanup.
10257 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10258 Update the function comment for it.
10259 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10260 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10261 for STREAM.
10262
a9b3a50f
PA
102632012-01-24 Pedro Alves <palves@redhat.com>
10264
10265 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10266 outside `bs->stop' block.
10267 (bpstat_what): Rework bp_shlib_event handling.
10268 (internal_bkpt_check_status): If the breakpoint is a
10269 bp_shlib_event, then set bs->stop and bs->print if
10270 stop_on_solib_events is set.
10271
53fe1783
GB
102722012-01-24 Gary Benson <gbenson@redhat.com>
10273
10274 Delete #if 0'd out code.
10275 * stack.c (print_frame_label_vars): Remove.
10276 (catch_info): Likewise.
10277 (_initialize_stack): Remove "info catch" command.
10278 * NEWS: Mention the above.
10279
49c62f2e
PA
102802012-01-24 Pedro Alves <palves@redhat.com>
10281
10282 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10283 it.
10284 (remote_notice_new_inferior): If the remote end doesn't support
10285 the multiprocess extensions, then the PID is fake.
10286 (add_current_inferior_and_thread): New.
10287 (remote_start_remote): Use it.
10288 (extended_remote_attach_1): Adjust.
10289 (extended_remote_create_inferior_1): Use
10290 add_current_inferior_and_thread.
10291
d0d8b0c6
JK
102922012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10293
10294 Fix watchpoints to be specific for each inferior.
10295 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10296 current_program_space.
10297 * i386-nat.c (i386_inferior_data_cleanup): New.
10298 (i386_inferior_data_get): Replace variable inf_data_local by an
10299 inferior_data call.
10300 (i386_use_watchpoints): Initialize i386_inferior_data.
10301 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10302 specific iterate_over_lwps.
10303
4403d8e9
JK
103042012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10305
10306 Fix watchpoints across inferior fork.
10307 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10308 comment for linux_nat_iterate_watchpoint_lwps.
10309 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10310 linux_nat_iterate_watchpoint_lwps.
10311 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10312 * i386-linux-nat.c (update_debug_registers_callback): Update the
10313 comment for linux_nat_iterate_watchpoint_lwps.
10314 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10315 linux_nat_iterate_watchpoint_lwps.
10316 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10317 * i386-nat.c: Include inferior.h.
10318 (dr_mirror): Remove.
10319 (i386_inferior_data, struct i386_inferior_data)
10320 (i386_inferior_data_get): New.
10321 (i386_debug_reg_state): Use i386_inferior_data_get.
10322 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10323 (i386_insert_watchpoint, i386_remove_watchpoint)
10324 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10325 (i386_remove_hw_breakpoint): New variable state, use
10326 i386_debug_reg_state instead of DR_MIRROR.
10327 * linux-nat.c (delete_lwp): New declaration.
10328 (num_lwps): Move here from downwards.
10329 (delete_lwp_cleanup): New.
10330 (linux_child_follow_fork): Create new child_lp, call
10331 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10332 PTRACE_DETACH.
10333 (num_lwps): Move upwards.
10334 (linux_nat_iterate_watchpoint_lwps): New.
10335 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10336 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10337
2992c9a7 103382012-01-24 Joel Brobecker <brobecker@adacore.com>
10339
10340 GDB 7.4 released.
10341
e360902b
PA
103422012-01-23 Pedro Alves <palves@redhat.com>
10343
10344 * top.c (caution): Rename to ...
10345 (confirm): ... this.
10346 (show_caution): Rename to ...
10347 (show_confirm): ... this.
10348 (quit_cover): Adjust.
10349 (init_main): Adjust.
10350 * top.h (caution): Rename to ...
10351 (confirm): ... this.
10352 * utils.c (internal_vproblem, defaulted_query): Adjust.
10353
050a2e1d
PA
103542012-01-23 Pedro Alves <palves@redhat.com>
10355
10356 * top.c (caution): Update comment.
10357 (execute_command): Don't consider the current value of `caution'.
10358
77a35dd8
JK
103592012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10360
10361 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10362
a71b5a38
UW
103632012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10364
10365 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10366 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10367 * target.c (target_fileio_pwrite): Remove buffer address from
10368 debug output.
10369 (target_fileio_pread): Likewise.
10370
d99bd577
UW
103712012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10372
10373 * NEWS: Document remote "info proc" and "generate-core-file".
10374
35c2fab7
UW
103752012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10376
10377 * gdbarch.sh (find_memory_regions): New callback.
10378 * gdbarch.c, gdbarch.h: Regenerate.
10379
10380 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10381 callback before falling back to target method.
10382
10383 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10384 (linux_target_install_ops): No longer install it.
10385
10386 * linux-tdep.c (linux_find_memory_regions): New function.
10387 (linux_init_abi): Install it.
10388
6432734d
UW
103892012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10390
10391 * gdbarch.sh (make_corefile_notes): New architecture callback.
10392 * gdbarch.c: Regenerate.
10393 * gdbarch.h: Likewise.
10394
10395 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10396 before target_make_corefile_notes. If NULL is returned, the
10397 target does not support core file generation.
10398
10399 * linux-nat.c: Include "linux-tdep.h".
10400 (find_signalled_thread, find_stop_signal): Remove.
10401 (linux_nat_do_thread_registers): Likewise.
10402 (struct linux_nat_corefile_thread_data): Likewise.
10403 (linux_nat_corefile_thread_callback): Likewise.
10404 (iterate_over_spus): Likewise.
10405 (struct linux_spu_corefile_data): Likewise.
10406 (linux_spu_corefile_callback): Likewise.
10407 (linux_spu_make_corefile_notes): Likewise.
10408 (linux_nat_collect_thread_registers): New function.
10409 (linux_nat_make_corefile_notes): Replace contents by call to
10410 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10411 as native-only callback.
10412
10413 * linux-tdep.h: Include "bfd.h".
10414 (struct regcache): Add forward declaration.
10415 (linux_collect_thread_registers_ftype): New typedef.
10416 (linux_make_corefile_notes): Add prototype.
10417 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10418 "regset.h", and "elf-bfd.h".
10419 (find_signalled_thread, find_stop_signal): New functions.
10420 (linux_spu_make_corefile_notes): Likewise.
10421 (linux_collect_thread_registers): Likewise.
10422 (struct linux_corefile_thread_data): New data structure.
10423 (linux_corefile_thread_callback): New funcion.
10424 (linux_make_corefile_notes): Likewise.
10425 (linux_make_corefile_notes_1): Likewise.
10426 (linux_init_abi): Install it.
10427
3030c96e
UW
104282012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10429
10430 * gdbarch.sh (info_proc): New callback.
10431 * gdbarch.c, gdbarch.h: Regenerate.
10432
10433 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10434 before falling back to the target info_proc callback.
10435
10436 * linux-nat.c: Do not include "cli/cli-utils.h".
10437 (linux_nat_info_proc): Remove.
10438 (linux_target_install_ops): No longer install it.
10439
10440 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10441 (read_mapping): New function.
10442 (linux_info_proc): Likewise.
10443 (linux_init_abi): Install it.
10444
145b16a9
UW
104452012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10446
10447 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10448 * infcmd.c: (info_proc_cmd_1): New function.
10449 (info_proc_cmd): New function, moved here from equivalent routine
10450 orignally in linux-nat.c.
10451 (info_proc_cmd_mappings): Likewise.
10452 (info_proc_cmd_stat): Likewise.
10453 (info_proc_cmd_status): Likewise.
10454 (info_proc_cmd_cwd): Likewise.
10455 (info_proc_cmd_cmdline): Likewise.
10456 (info_proc_cmd_exe): Likewise.
10457 (info_proc_cmd_all): Likewise.
10458 (_initialize_infcmd): Install "info proc" command and subcommands.
10459
10460 * target.h (struct target_ops): Add to_info_proc.
10461 (target_info_proc): Add prototype.
10462 * target.c (target_info_proc): New function.
10463
10464 * procfs.c (procfs_info_proc): Add prototype.
10465 (info_proc_cmd): Rename into ...
10466 (procfs_info_proc): ... this. Update argument types as appropriate
10467 for a to_info_proc implementation. Handle "what" argument.
10468 (procfs_target): Install procfs_info_proc.
10469 (_initialize_procfs): No longer install "info proc" command.
10470
10471 * linux-nat.c: (enum info_proc_what): Remove.
10472 (linux_nat_info_proc_cmd_1): Rename into ...
10473 (linux_nat_info_proc): ... this. Update argument types as appropriate
10474 for a to_info_proc implementation.
10475 (linux_nat_info_proc_cmd): Remove.
10476 (linux_nat_info_proc_cmd_mappings): Likewise.
10477 (linux_nat_info_proc_cmd_stat): Likewise.
10478 (linux_nat_info_proc_cmd_status): Likewise.
10479 (linux_nat_info_proc_cmd_cwd): Likewise.
10480 (linux_nat_info_proc_cmd_cmdline): Likewise.
10481 (linux_nat_info_proc_cmd_exe): Likewise.
10482 (linux_nat_info_proc_cmd_all): Likewise.
10483 (linux_target_install_ops): Install linux_nat_info_proc.
10484 (_initialize_linux_nat): No longer install "info proc" command
10485 and subcommands.
10486
b9e7b9c3
UW
104872012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10488
10489 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10490 * config.in, configure: Regenerate.
10491
10492 * target.h (struct target_ops): Add to_fileio_readlink.
10493 (target_fileio_readlink): Add prototype.
10494 * target.c (target_fileio_readlink): New function.
10495
10496 * inf-child.c: Conditionally include <sys/param.h>.
10497 (inf_child_fileio_readlink): New function.
10498 (inf_child_target): Install it.
10499
10500 * remote.c (PACKET_vFile_readlink): New enum value.
10501 (remote_hostio_readlink): New function.
10502 (init_remote_ops): Install it.
10503 (_initialize_remote): Handle vFile:readlink packet type.
10504
7313baad
UW
105052012-01-20 Pedro Alves <palves@redhat.com>
10506 Ulrich Weigand <ulrich.weigand@linaro.org>
10507
10508 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10509 * config.in, configure: Regenerate.
10510
10511 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10512 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10513 (target_fileio_open): Add prototype.
10514 (target_fileio_pwrite): Likewise.
10515 (target_fileio_pread): Likewise.
10516 (target_fileio_close): Likewise.
10517 (target_fileio_unlink): Likewise.
10518 (target_fileio_read_alloc): Likewise.
10519 (target_fileio_read_stralloc): Likewise.
10520
10521 * target.c: Include "gdb/fileio.h".
10522 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10523 (default_fileio_target): New function.
10524 (target_fileio_open): Likewise.
10525 (target_fileio_pwrite): Likewise.
10526 (target_fileio_pread): Likewise.
10527 (target_fileio_close): Likewise.
10528 (target_fileio_unlink): Likewise.
10529 (target_fileio_close_cleanup): Likewise.
10530 (target_fileio_read_alloc_1): Likewise.
10531 (target_fileio_read_alloc): Likewise.
10532 (target_fileio_read_stralloc): Likewise.
10533
10534 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10535 <fcntl.h>, and <unistd.h>.
10536 (inf_child_fileio_open_flags_to_host): New function.
10537 (inf_child_errno_to_fileio_error): Likewise.
10538 (inf_child_fileio_open): Likewise.
10539 (inf_child_fileio_pwrite): Likewise.
10540 (inf_child_fileio_pread): Likewise.
10541 (inf_child_fileio_close): Likewise.
10542 (inf_child_fileio_unlink): Likewise.
10543 (inf_child_target): Install to_fileio routines.
10544
10545 * remote.c (init_remote_ops): Install to_fileio routines.
10546
901f9912
UW
105472012-01-20 Pedro Alves <palves@redhat.com>
10548 Ulrich Weigand <ulrich.weigand@linaro.org>
10549
10550 * remote.c (remote_multi_process_p): Only check for multi-process
10551 protocol feature, do not check for extended protocol.
10552 (remote_supports_multi_process): Check for extended protocol here.
10553 (set_general_process): Likewise.
10554 (extended_remote_kill): Likewise.
10555 (remote_pid_to_str): Likewise.
10556 (remote_query_supported): Always query multiprocess mode.
10557
e714e1bf
UW
105582012-01-20 Pedro Alves <palves@redhat.com>
10559 Ulrich Weigand <ulrich.weigand@linaro.org>
10560
10561 * inferior.h (struct inferior): Add fake_pid_p.
10562 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10563 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10564 magic_null_ptid since the remote side doesn't provide a real PID.
10565
50897289
TT
105662012-01-19 Tom Tromey <tromey@redhat.com>
10567
10568 * NEWS: Combine the two Python sections.
10569
1afc2033
JK
105702012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10571
10572 * target.h (target_close): Update comment on the target's unpush state.
10573
305436e0
PA
105742012-01-19 Pedro Alves <palves@redhat.com>
10575
10576 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10577 linux_nat_async directly instead of going through the target
10578 vector.
10579 * target.c (unpush_target): Close target after unpushing it, not
10580 before.
10581
49323895
GB
105822012-01-19 Gary Benson <gbenson@redhat.com>
10583
10584 * mdebugread.c (sort_blocks): Replace integer constants with ones
10585 derived from FIRST_LOCAL_BLOCK.
10586
1db33378
PP
105872012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10588 Jan Kratochvil <jan.kratochvil@redhat.com>
10589
10590 PR gdb/9538
10591 * symfile.c (find_separate_debug_file): New function.
10592 (terminate_after_last_dir_separator): Likewise.
10593 (find_separate_debug_file_by_debuglink): Also try realpath.
10594 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10595 * configure: Regenerate.
10596 * config.in: Regenerate.
10597
f83d8a90
DE
105982012-01-18 Doug Evans <dje@google.com>
10599
10600 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10601 (main.o): Remove rule.
10602 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10603 (--with-sysroot): Rewrite.
10604 * configure: Regenerate.
10605 * config.in: Regenerate.
10606
2dbca4d6
SDJ
106072012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10608
10609 * parse.c (initialize_expout): New function.
10610 (reallocate_expout): Likewise.
10611 (parse_exp_in_context): Use `initialize_expout' and
10612 `reallocate_expout' when appropriate.
10613
0695b514
PA
106142012-01-18 Pedro Alves <palves@redhat.com>
10615
10616 * record.c (struct record_breakpoint, record_breakpoint_p)
10617 (record_breakpoints): New.
10618 (record_insert_breakpoint, record_remove_breakpoint): Manage
10619 record breakpoints list. Only remove breakpoints from the
10620 inferior if they had been inserted there in the first place.
10621
136e1c30
DE
106222012-01-17 Doug Evans <dje@google.com>
10623
10624 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10625 if we know we don't have a file name to look for.
10626
c0bf857d
PA
106272012-01-17 Pedro Alves <palves@redhat.com>
10628
10629 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10630 the frame's stop reason is UNWIND_UNAVAILABLE.
10631
b486de60
JK
106322012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10633
10634 Fix compilation error.
10635 * m2-exp.y (yyerror): Use ANSI C prototype.
10636
d04550a6
SDJ
106372012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10638
10639 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10640 (growbuf_by_size): Likewise.
10641 (yyerror): Likewise.
10642 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10643 (modblock): Remove variable (was #if 0'ed).
10644 (parse_number): Convert prototype from K&R to ANSI C.
10645 (yyerror): Likewise.
10646 * objc-exp.y (parse_number): Likewise.
10647 (yyerror): Likewise.
10648 (yylex): Remove #if 0'ed code.
10649 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10650 (yyerror): Likewise.
10651
4aac40c8
TT
106522012-01-16 Tom Tromey <tromey@redhat.com>
10653
10654 * NEWS: Add item.
10655 * symtab.h (compare_filenames_for_search): Declare.
10656 * symtab.c (compare_filenames_for_search): New function.
10657 (iterate_over_some_symtabs): Use it.
10658 * symfile.h (struct quick_symbol_functions)
10659 <map_symtabs_matching_filename>: Change spec.
10660 * psymtab.c (partial_map_symtabs_matching_filename): Use
10661 compare_filenames_for_search. Update for new spec.
10662 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10663 compare_filenames_for_search. Update for new spec.
10664 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10665
cafec441
TT
106662012-01-16 Tom Tromey <tromey@redhat.com>
10667
10668 PR python/13281:
10669 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10670 (struct main_type) <flag_flag_enum>: New field.
10671 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10672 * NEWS: Add entries.
10673 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10674 enums.
10675 * python/lib/gdb/printing.py (_EnumInstance): New class.
10676 (FlagEnumerationPrinter): Likewise.
10677
983af33b
SDJ
106782012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10679
10680 * breakpoint.c (create_sals_from_address_default): New function.
10681 (create_breakpoints_sal_default): Likewise.
10682 (decode_linespec_default): Likewise.
10683 (is_marker_spec): Removed.
10684 (strace_marker_p): New function.
10685 (init_breakpoint_sal): Using `strace_marker_p' instead of
10686 `is_marker_spec'.
10687 (create_breakpoint): Call method `create_sals_from_address' from
10688 breakpoint_ops, replacing code that created SALs conditionally
10689 on the type of the breakpoint. Call method `create_breakpoints_sal',
10690 replacing code that created breakpoints conditionally on the type
10691 wanted.
10692 (base_breakpoint_create_sals_from_address): New function.
10693 (base_breakpoint_create_breakpoints_sal): Likewise.
10694 (base_breakpoint_decode_linespec): Likewise.
10695 (base_breakpoint_ops): Add methods
10696 `base_breakpoint_create_sals_from_address',
10697 `base_breakpoint_create_breakpoints_sal' and
10698 `base_breakpoint_decode_linespec'.
10699 (bkpt_create_sals_from_address): New function.
10700 (bkpt_create_breakpoints_sal): Likewise.
10701 (bkpt_decode_linespec): Likewise.
10702 (tracepoint_create_sals_from_address): Likewise.
10703 (tracepoint_create_breakpoints_sal): Likewise.
10704 (tracepoint_decode_linespec): Likewise.
10705 (strace_marker_create_sals_from_address): Likewise.
10706 (strace_marker_create_breakpoints_sal): Likewise.
10707 (strace_marker_decode_linespec): Likewise.
10708 (strace_marker_breakpoint_ops): New variable.
10709 (addr_string_to_sals): Remove `marker_spec'. Call method
10710 `decode_linespec' from breakpoint_ops, replacing code that decoded
10711 an address string into a SAL. Use `strace_marker_p' instead of
10712 `marker_spec'.
10713 (strace_command): Decide whether we are dealing with a static
10714 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10715 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10716 * breakpoint.h (linespec_result, linespec_sals): New forward
10717 declarations.
10718 (breakpoint_ops) <create_sals_from_address>,
10719 <create_breakpoints_sal>, <decode_linespec>: New methods.
10720
4795f398
DE
107212012-01-14 Doug Evans <dje@google.com>
10722
10723 * NEWS: Update text for "maint set python print-stack".
10724 It is deprecated in gdb 7.4 and deleted in 7.5.
10725
ee5106fe
EZ
107262012-01-13 Eli Zaretskii <eliz@gnu.org>
10727
10728 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10729 including curses.h.
10730
b161e06f
JK
107312012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10732
10733 * configure: Regenerate.
10734 * config.in: Regenerate.
10735
85254831
KS
107362012-01-12 Keith Seitz <keiths@redhat.com>
10737
10738 PR mi/10586
10739 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10740 (ANONYMOUS_UNION_NAME): Define.
10741 (is_path_expr_parent): New function.
10742 (get_path_expr_parent): New function.
10743 (is_anonymous_child): New function.
10744 (create_child_with_value): If the child is anonymous and without
10745 a name, assign an object name to it.
10746 (c_describe_child): Use get_path_expr_parent to determine
10747 the parent expression.
10748 If there field represents an anonymous struct or union and
10749 has no name, set an appropriate display name and expression.
10750 (cplus_describe_child): Likewise.
10751
620fa63a
PA
107522012-01-12 Pedro Alves <palves@redhat.com>
10753
10754 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10755 available when %ebp is found to be zero (outermost).
10756
2efa2c79
AT
107572012-01-11 Andreas Tobler <andreast@fgznet.ch>
10758
10759 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10760 an internal gdb_static_assert.
10761 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10762
88e7d25d
TT
107632012-01-11 Tom Tromey <tromey@redhat.com>
10764
10765 PR gdb/9598:
10766 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10767 catch" and "catch throw".
10768
72384ba3
PH
107692012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10770
10771 * blockframe.c (block_innermost_frame): Start search from selected
10772 frame, if present, or otherwise the current frame.
10773
10774 * c-exp.y (variable): Update innermost_block for
10775 'block COLONCOLON NAME' clause.
10776 * m2-exp.y (variable): Ditto.
10777 * objc-exp.y (variable): Ditto.
10778
065a711f
TT
107792012-01-10 Tom Tromey <tromey@redhat.com>
10780
10781 PR python/13199:
10782 * python/python.c (finish_python_initialization): Set sys.argv.
10783
f3f5162e
DE
107842012-01-10 Doug Evans <dje@google.com>
10785
10786 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10787 "want_line_info". All callers updated.
10788 (dwarf_decode_lines_1): New function.
10789 (handle_DW_AT_stmt_list): Add function comment.
10790 New arg "want_line_info". All callers updated.
10791 (read_file_scope,read_type_unit_scope): Move comment from
10792 handle_DW_AT_stmt_list to here.
10793
9934703b
JK
107942012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10795
10796 Fix regression after libiberty/ update for GCC PR 6057 and others.
10797 * c-exp.y (operator) <OPERATOR DELETE>
10798 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10799 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10800 (make_builtin_type, make_name): New variable i, add gdb_assert.
10801 (operator) <OPERATOR NEW>: Update ARGS to 3.
10802 (operator) <OPERATOR DELETE>: Add trailing space.
10803 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10804 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10805 * cp-support.c (cp_canonicalize_string): Check NULL from
10806 cp_comp_to_string, call warning and return.
10807
06b9f45f
JK
108082012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10809
10810 Fix duplicate .o files after omitting libbfd.a.
10811 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10812 (SFILES): Add corelow.c.
10813 (COMMON_OBS): Add corelow.o.
10814 (ALLDEPFILES): Remove corelow.c.
10815 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10816 * config/alpha/alpha-osf3.mh: Likewise.
10817 * config/alpha/fbsd.mh: Likewise.
10818 * config/arm/nbsdaout.mh: Likewise.
10819 * config/arm/nbsdelf.mh: Likewise.
10820 * config/i386/i386gnu.mh: Likewise.
10821 * config/ia64/hpux.mh: Likewise.
10822 * config/ia64/linux.mh: Likewise.
10823 * config/m32r/linux.mh: Likewise.
10824 * config/m68k/linux.mh: Likewise.
10825 * config/mips/irix5.mh: Likewise.
10826 * config/mips/irix6.mh: Likewise.
10827 * config/pa/hpux.mh: Likewise.
10828 * config/pa/linux.mh: Likewise.
10829 * config/powerpc/aix.mh: Likewise.
10830 * config/sparc/linux.mh: Likewise.
10831 * config/sparc/linux64.mh: Likewise.
10832 * config/sparc/sol2.mh: Likewise.
10833 * config/vax/vax.mh: Likewise.
10834 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10835 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10836 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10837 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10838 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10839 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10840 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10841 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10842 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10843 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10844 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10845 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10846 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10847 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10848 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10849 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10850 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10851 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10852 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10853 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10854 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10855 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10856 corelow.o from gdb_target_obs.
10857 * corefile.c (core_target): Update the comment on NULL value.
10858 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10859 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10860 MATCHES. Drop YUMMY set on NULL.
10861 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10862 reclaim CORE_DATA if it is already NULL.
10863
34365054
DE
108642012-01-09 Doug Evans <dje@google.com>
10865
10866 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10867 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10868
696166a3
KS
108692012-01-09 Keith Seitz <keiths@redhat.com>
10870
10871 * breakpoint.c (wrapper.h): Don't include.
10872
8e7b59a5
KS
108732012-01-09 Keith Seitz <keiths@redhat.com>
10874
10875 * Makefile.in (SFILES): Remove wrapper.c.
10876 (HFILES_NO_SRCDIR): Remove wrapper.h.
10877 (COMMON_OBS): Remove wrapper.o.
10878 * cli/cli-interp.c: Don't inlude wrapper.h.
10879 * corelow.c: Likewise.
10880 (core_open): Replace gdb_target_find_new_threads with
10881 TRY_CATCH around target_find_new_threads.
10882 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10883 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10884 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10885 evaluate_expression.
10886 (varobj_set_value): Likewise for evaluate_expression and
10887 value_assign.
10888 (install_new_variable): Likewise for value_fetch_lazy.
10889 (adjust_value_for_child_access): Likewise for value_ind.
10890 (c_describe_child): Likewise for value_subscript and
10891 value_ind.
10892 (c_value_of_root): Likewise for evaluate_expression.
10893 * wrapper.c: Remove.
10894 * wrapper.h: Remove.
10895
1a4eeb98
DE
108962012-01-09 Doug Evans <dje@google.com>
10897
9ff913ba
DE
10898 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10899 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10900 "abfd" args with "section". All callers updated.
10901 Error checking code moved ...
10902 (error_check_comp_unit_head): ... here. New function.
10903 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10904 Delete arg "abfd". New arg "type_offset". All callers updated.
10905 (create_debug_types_hash_table): Simplify by using
10906 read_and_check_type_unit_head.
10907
1a4eeb98
DE
10908 * parser-defs.h (namecopy): Delete.
10909 * parse.c (namecopy, namecopy_size): Move into copy_name.
10910
2e6af8c0
JK
109112012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10912
10913 Partially fix duplicate .o files after omitting libbfd.a.
10914 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10915 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10916 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10917 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10918 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10919 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10920 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10921
9f2f828a
PA
109222012-01-09 Pedro Alves <palves@redhat.com>
10923
10924 * MAINTAINERS: Update my email address.
10925
4d72c0bc
DE
109262012-01-08 Doug Evans <dje@google.com>
10927
d467dd73
DE
10928 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10929 n_type_units. Rename type_comp_units to all_type_units.
10930 All uses updated.
10931 (add_signatured_type_cu_to_table): Renamed from
10932 add_signatured_type_cu_to_list. All callers updated.
10933
4d72c0bc
DE
10934 * gdbtypes.h (struct cplus_struct_type): Delete member
10935 nfn_fields_total. All uses removed.
10936
21b2bd31
DE
109372012-01-06 Doug Evans <dje@google.com>
10938
10939 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10940 to top of file.
10941 (dwarf2_find_comp_unit): Delete.
10942 (process_psymtab_comp_unit): Make result "void".
10943 Delete args buffer, info_ptr, buffer_size, and replace with
10944 "section". All callers updated.
10945 (dwarf2_build_psymtabs_hard): Simplify.
10946
bfd189b1
SDJ
109472012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10948 Thiago Jung Bauermann <bauerman@br.ibm.com>
10949
10950 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10951 before `struct gdb_exception'.
10952 * breakpoint.c (update_global_location_list_nothrow)
10953 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10954 * cp-abi.c (value_rtti_type): Likewise.
10955 * cp-support.c (cp_validate_operator): Likewise.
10956 * infrun.c (insert_exception_resume_breakpoint)
10957 (check_exception_resume, keep_going): Likewise.
10958 * mi-interp.c (mi_breakpoint_created)
10959 (mi_breakpoint_modified): Likewise.
10960 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10961 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10962 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10963
6b07635f
DE
109642012-01-05 Doug Evans <dje@google.com>
10965
0b30b85c
DE
10966 * dwarf2read.c (statement_prologue): Delete, unused.
10967
98714339
DE
10968 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10969 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10970
6b07635f
DE
10971 * dwarf2read.c (comp_unit_header): Delete, unused.
10972
761f4555
UW
109732012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10974
10975 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10976 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10977
2ca0b532
PA
109782012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10979
10980 * infrun.c (normal_stop): Don't skip calling the normal_stop
10981 observers if the thread was doing a multi-step, but stopped for
10982 some reason other than stepping.
10983
50aeff07
PA
109842012-01-05 Pedro Alves <alves.ped@gmail.com>
10985
10986 * cli/cli-decode.h: Add comments.
10987 (CMD_LIST_AMBIGUOUS): Moved to command.h
10988 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10989 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10990 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10991 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10992 (add_com, add_com_alias, add_info, add_info_alias)
10993 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10994 declarations.
10995 * command.h: Add and adjust comments.
10996 (CMD_LIST_AMBIGUOUS): Moved here.
10997 (help_cmd, help_cmd_list): Delete declarations.
10998
5953832c
DE
109992012-01-04 Doug Evans <dje@google.com>
11000
e5fe5e75
DE
11001 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11002 All callers updated.
11003 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11004 Replace all arguments with "per_cu". All callers updated.
11005
28dee7f5
DE
11006 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11007
23745b47
DE
11008 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11009 New arg "per_cu". All callers updated.
11010
5953832c
DE
11011 Delete #if 0'd out code.
11012 * language.c (binop_result_type): Delete.
11013 (simple_type, ordered_type, same_type, integral_type): Delete.
11014 (numeric_type, character_type, string_type, boolean_type): Delete.
11015 (float_type, structured_type): Delete.
11016 * language.h: Update.
11017
0f5b7562
TT
110182012-01-04 Tom Tromey <tromey@redhat.com>
11019
11020 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11021
78218f56
JB
110222012-01-04 Joel Brobecker <brobecker@adacore.com>
11023
11024 * corefile.c (close_exec_file): Delete.
11025 (reopen_exec_file): Remove commented out code that seems related
11026 to close_exec_file, which is being deleted here.
11027 * inferior.h (close_exec_file): Delete.
11028 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11029
0fcd72ba
JB
110302012-01-04 Joel Brobecker <brobecker@adacore.com>
11031
11032 * ada-lang.c: #include "cli/cli-utils.h".
11033 (get_selections): Use skip_spaces.
11034 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11035 (catch_ada_exception_command_split): Use skip_spaces.
11036 (ada_decode_assert_location): Likewise.
11037
1dabb4c4
JB
110382012-01-04 Joel Brobecker <brobecker@adacore.com>
11039
11040 * linespec.c (decode_line_internal): Check for C++ or Java
11041 compound constructs only if the current language is C, C++
11042 or Java.
11043
5931a2fa
JK
110442012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11045
11046 Revert:
11047 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11048 Joel Brobecker <brobecker@adacore.com>
11049 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11050 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11051 3 times.
11052 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11053 fall through into AT_ENTRY_POINT.
11054 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11055 DUMMY_ADDR with it.
11056 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11057 PPC_INSN_SIZE skip to 3 times.
11058
1a2da5ee
JB
110592012-01-04 Joel Brobecker <brobecker@adacore.com>
11060
11061 * linespec.c (add_minsym): Preserve function descriptors.
11062
8645ff69
UW
110632012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11064
11065 * breakpoint.c (all_locations_are_pending): Consider locations
11066 in program spaces executing during startup pending as well.
11067
0b302171
JB
110682012-01-04 Joel Brobecker <brobecker@adacore.com>
11069
11070 Copyright year update in most files of the GDB Project.
11071
8ba098ad
JB
110722012-01-04 Joel Brobecker <brobecker@adacore.com>
11073
11074 * copyright.sh: Delete.
11075 * copyright.py: Rewrite.
11076
09c01c30
JB
110772012-01-04 Joel Brobecker <brobecker@adacore.com>
11078
11079 * gnulib/extra/update-copyright: New file, imported from gnulib.
11080
3c36c0af
JB
110812012-01-04 Joel Brobecker <brobecker@adacore.com>
11082
11083 * README (Copyright and License Notices): New section.
11084
888fe1e1
TT
110852012-01-03 Tom Tromey <tromey@redhat.com>
11086
11087 PR python/12533:
11088 * python/py-value.c (valpy_dereference, valpy_get_address
11089 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11090 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11091 (valpy_absolute, valpy_richcompare): Free intermediate values.
11092
6e681866
JB
110932011-01-03 Joel Brobecker <brobecker@adacore.com>
11094
11095 * ada-lang.c: Reformat the copyright notice.
11096
0cd09acb
JK
110972012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11098
11099 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11100 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11101 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11102 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11103 Revert this part of:
11104 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11105 Build gdb directly from *.o files not using libgdb.a.
11106 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11107
12c3e59c
JB
111082012-01-02 Joel Brobecker <brobecker@adacore.com>
11109
11110 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11111 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11112 Reformat the copyright header.
11113
11bf1490
JK
111142012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11115
11116 Revert this part of:
11117 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11118 Remove the gdbtui binary.
11119 * gdb.c (main): Remove args.interpreter_p initialization.
11120 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11121 * main.h (struct captured_main_args): Remove interpreter_p.
11122
1fef196f
JB
111232012-01-02 Joel Brobecker <brobecker@adacore.com>
11124
11125 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11126
67827812
JB
111272012-01-02 Joel Brobecker <brobecker@adacore.com>
11128
11129 * top.c (print_gdb_version): Update copyright year.
11130
a4d0b831
YQ
111312012-01-02 Yao Qi <yao@codesourcery.com>
11132
11133 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11134
b5914469
JK
111352012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11136 Joel Brobecker <brobecker@adacore.com>
11137
11138 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11139 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11140 3 times.
11141 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11142 fall through into AT_ENTRY_POINT.
11143 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11144 DUMMY_ADDR with it.
11145 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11146 PPC_INSN_SIZE skip to 3 times.
11147
8da828f7
JK
111482012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11149
11150 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11151 the return value.
11152 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11153
8574e74b
JK
111542012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11155
11156 Build gdb directly from *.o files not using libgdb.a.
11157 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11158 (COMMON_OBS): Remove solib-target.o.
11159 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11160 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11161 (LIBGDB_OBS, libgdb.a): Move it above.
11162 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11163 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11164 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11165 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11166 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11167 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11168 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11169 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11170 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11171 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11172 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11173 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11174 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11175 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11176 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11177 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11178 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11179 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11180 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11181 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11182 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11183 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11184 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11185 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11186 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11187 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11188 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11189
217bff3e
JK
111902012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11191
11192 Remove the gdbtui binary.
11193 * .gitignore (/gdbtui): Remove.
11194 * Makefile.in (TUI): Remove.
11195 (SUBDIR_TUI_OBS): Remove tui-main.o.
11196 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11197 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11198 (tui-main.o): Remove.
11199 (all_object_files): Remove tui-main.o.
11200 * NEWS: New note for the gdbtui removal.
11201 * configure: Rebuilt.
11202 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11203 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11204 CONFIG_UNINSTALL respectively.
11205 * gdb.c (main): Remove args.interpreter_p initialization.
11206 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11207 * main.h (struct captured_main_args): Remove interpreter_p.
11208 * tui/tui-main.c: Remove.
11209
9cdd5dbd
DE
112102012-01-01 Doug Evans <dje@google.com>
11211
bb5ed363
DE
11212 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11213 (dwarf2_physname, read_import_statement): Ditto.
11214 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11215 (process_structure_scope read_subroutine_type): Ditto.
11216 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11217 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11218 (dwarf2_fetch_die_location_block): Ditto.
11219 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11220
a0f42c21
DE
11221 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11222 All callers updated.
11223 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11224 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11225 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11226
2dc860c0
DE
11227 * dwarf2read.c (load_cu): Move assert to more useful location.
11228
68dc6402
DE
11229 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11230 All callers updated.
11231
9cdd5dbd
DE
11232 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11233 (dwarf2_elf_names): Minor reformat.
11234 (dwarf2_per_cu_data): Tweak comment.
11235 (dwarf2_read_section): Fix comment.
11236 (create_all_comp_units): Fix comment.
11237 (load_full_comp_unit): Fix comment.
11238 (process_full_comp_unit): Fix comment.
11239 (read_signatured_type): Fix comment.
11240
0c10e53e 11241For older changes see ChangeLog-2011.
c906108c
SS
11242\f
11243Local Variables:
11244mode: change-log
11245left-margin: 8
11246fill-column: 74
11247version-control: never
57da7796 11248coding: utf-8
c906108c 11249End:
This page took 1.942885 seconds and 4 git commands to generate.